Package org.teiid.olingo.service
Class LocalClient
- java.lang.Object
-
- org.teiid.olingo.service.LocalClient
-
-
Field Summary
Fields Modifier and Type Field Description protected org.teiid.jdbc.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 org.teiid.jdbc.ConnectionImplbuildConnection(org.teiid.jdbc.TeiidDriver driver, String vdbName, String version, Properties props)voidclose()voidcommit(String txnId)voidexecuteCall(String sql, List<SQLParameter> parameters, ProcedureReturnType returnType, OperationResponse response)CountResponseexecuteCount(org.teiid.query.sql.lang.Query query, List<SQLParameter> parameters)voidexecuteSQL(org.teiid.query.sql.lang.Query query, List<SQLParameter> parameters, boolean calculateTotalSize, Integer skipOption, Integer topOption, String nextOption, int pageSize, QueryResponse response)UpdateResponseexecuteUpdate(org.teiid.query.sql.lang.Command query, List<SQLParameter> parameters)org.teiid.jdbc.ConnectionImplgetConnection()org.teiid.metadata.MetadataStoregetMetadataStore()StringgetProperty(String key)org.teiid.adminapi.impl.VDBMetaDatagetVDB()Connectionopen()voidrollback(String txnId)StringstartTransaction()
-
-
-
Method Detail
-
open
public Connection open() throws SQLException, org.teiid.core.TeiidProcessingException
- Specified by:
openin interfaceClient- Throws:
SQLExceptionorg.teiid.core.TeiidProcessingException
-
close
public void close() throws SQLException- Specified by:
closein interfaceClient- Throws:
SQLException
-
getConnection
public org.teiid.jdbc.ConnectionImpl getConnection()
-
buildConnection
public static org.teiid.jdbc.ConnectionImpl buildConnection(org.teiid.jdbc.TeiidDriver driver, String vdbName, String version, Properties props) throws SQLException- Throws:
SQLException
-
executeCall
public void executeCall(String sql, List<SQLParameter> parameters, ProcedureReturnType returnType, OperationResponse response) throws SQLException
- Specified by:
executeCallin interfaceClient- Throws:
SQLException
-
getMetadataStore
public org.teiid.metadata.MetadataStore getMetadataStore()
- Specified by:
getMetadataStorein interfaceClient
-
executeSQL
public void executeSQL(org.teiid.query.sql.lang.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(org.teiid.query.sql.lang.Query query, List<SQLParameter> parameters) throws SQLException
- Specified by:
executeCountin interfaceClient- Throws:
SQLException
-
executeUpdate
public UpdateResponse executeUpdate(org.teiid.query.sql.lang.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
-
-