Package org.teiid.olingo.service
Class LocalClient
- java.lang.Object
-
- org.teiid.olingo.service.LocalClient
-
-
Field Summary
Fields Modifier and Type Field Description protected ConnectionImplconnection-
Fields inherited from interface org.teiid.odata.api.Client
BATCH_SIZE, CHARSET, INVALID_CHARACTER_REPLACEMENT, SKIPTOKEN_TIME
-
-
Constructor Summary
Constructors Constructor Description LocalClient(String vdbName, String vdbVersion, Properties properties, Map<Object,Future<Boolean>> loading)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConnectionImplbuildConnection(TeiidDriver driver, String vdbName, String version, Properties props)voidclose()voidcommit(String txnId)voidexecuteCall(String sql, List<SQLParameter> parameters, ProcedureReturnType returnType, OperationResponse response)CountResponseexecuteCount(Query query, List<SQLParameter> parameters)voidexecuteSQL(Query query, List<SQLParameter> parameters, boolean calculateTotalSize, Integer skipOption, Integer topOption, String nextOption, int pageSize, QueryResponse response)UpdateResponseexecuteUpdate(Command query, List<SQLParameter> parameters)ConnectionImplgetConnection()MetadataStoregetMetadataStore()StringgetProperty(String key)VDBMetaDatagetVDB()Connectionopen()voidrollback(String txnId)StringstartTransaction()
-
-
-
Field Detail
-
connection
protected ConnectionImpl connection
-
-
Method Detail
-
open
public Connection open() throws SQLException, TeiidProcessingException
- Specified by:
openin interfaceClient- Throws:
SQLExceptionTeiidProcessingException
-
close
public void close() throws SQLException- Specified by:
closein interfaceClient- Throws:
SQLException
-
getConnection
public ConnectionImpl getConnection()
-
buildConnection
public static ConnectionImpl buildConnection(TeiidDriver driver, String vdbName, String version, Properties props) throws SQLException
- Throws:
SQLException
-
getVDB
public VDBMetaData getVDB()
-
executeCall
public void executeCall(String sql, List<SQLParameter> parameters, ProcedureReturnType returnType, OperationResponse response) throws SQLException
- Specified by:
executeCallin interfaceClient- Throws:
SQLException
-
getMetadataStore
public MetadataStore getMetadataStore()
- Specified by:
getMetadataStorein interfaceClient
-
executeSQL
public void executeSQL(Query query, List<SQLParameter> parameters, boolean calculateTotalSize, Integer skipOption, Integer topOption, String nextOption, int pageSize, QueryResponse response) throws SQLException
- Specified by:
executeSQLin interfaceClient- Throws:
SQLException
-
executeCount
public CountResponse executeCount(Query query, List<SQLParameter> parameters) throws SQLException
- Specified by:
executeCountin interfaceClient- Throws:
SQLException
-
executeUpdate
public UpdateResponse executeUpdate(Command query, List<SQLParameter> parameters) throws SQLException
- Specified by:
executeUpdatein interfaceClient- Throws:
SQLException
-
getProperty
public String getProperty(String key)
- Specified by:
getPropertyin interfaceClient
-
startTransaction
public String startTransaction() throws SQLException
- Specified by:
startTransactionin interfaceClient- Throws:
SQLException
-
commit
public void commit(String txnId) throws SQLException
- Specified by:
commitin interfaceClient- Throws:
SQLException
-
rollback
public void rollback(String txnId) throws SQLException
- Specified by:
rollbackin interfaceClient- Throws:
SQLException
-
-