Package org.teiid.olingo.service
Class LocalClient
- java.lang.Object
-
- org.teiid.olingo.service.LocalClient
-
-
Field Summary
Fields Modifier and Type Field Description protected ConnectionImpl
connection
-
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 ConnectionImpl
buildConnection(TeiidDriver driver, String vdbName, String version, Properties props)
void
close()
void
commit(String txnId)
void
executeCall(String sql, List<SQLParameter> parameters, ProcedureReturnType returnType, OperationResponse response)
CountResponse
executeCount(Query query, List<SQLParameter> parameters)
void
executeSQL(Query query, List<SQLParameter> parameters, boolean calculateTotalSize, Integer skipOption, Integer topOption, String nextOption, int pageSize, QueryResponse response)
UpdateResponse
executeUpdate(Command query, List<SQLParameter> parameters)
ConnectionImpl
getConnection()
MetadataStore
getMetadataStore()
String
getProperty(String key)
VDBMetaData
getVDB()
Connection
open()
void
rollback(String txnId)
String
startTransaction()
-
-
-
Field Detail
-
connection
protected ConnectionImpl connection
-
-
Method Detail
-
open
public Connection open() throws SQLException, TeiidProcessingException
- Specified by:
open
in interfaceClient
- Throws:
SQLException
TeiidProcessingException
-
close
public void close() throws SQLException
- Specified by:
close
in 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:
executeCall
in interfaceClient
- Throws:
SQLException
-
getMetadataStore
public MetadataStore getMetadataStore()
- Specified by:
getMetadataStore
in 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:
executeSQL
in interfaceClient
- Throws:
SQLException
-
executeCount
public CountResponse executeCount(Query query, List<SQLParameter> parameters) throws SQLException
- Specified by:
executeCount
in interfaceClient
- Throws:
SQLException
-
executeUpdate
public UpdateResponse executeUpdate(Command query, List<SQLParameter> parameters) throws SQLException
- Specified by:
executeUpdate
in interfaceClient
- Throws:
SQLException
-
getProperty
public String getProperty(String key)
- Specified by:
getProperty
in interfaceClient
-
startTransaction
public String startTransaction() throws SQLException
- Specified by:
startTransaction
in interfaceClient
- Throws:
SQLException
-
commit
public void commit(String txnId) throws SQLException
- Specified by:
commit
in interfaceClient
- Throws:
SQLException
-
rollback
public void rollback(String txnId) throws SQLException
- Specified by:
rollback
in interfaceClient
- Throws:
SQLException
-
-