public interface XStore extends AutoCloseable
Provides a level of abstraction above pure JDBC access.
Modifier and Type | Method and Description |
---|---|
void |
close()
Commits the connection and releases it.
|
void |
commit()
Commit the operations on this XStore.
|
int |
executeStatement(String statement,
Object... bindVars)
Execute a SQL statement.
|
Connection |
getConnection()
Get a connection to the external database.
|
String |
getDescription()
Get the description.
|
String |
getId()
Get the unique id.
|
List<DataRow> |
getList(String query,
Object... bindVars)
Execute a SQL query which returns a list of rows.
|
DataRow |
getRow(String query,
Object... bindVars)
Execute a SQL query which returns one row.
|
int |
getTimeout()
Get the Query timeout
|
Object |
getValue(int sqlType,
String query,
Object... bindVars)
Execute a SQL query which returns one value.
|
Object |
getValue(String query,
Object... bindVars)
Execute a SQL query which returns one value.
|
void |
rollback()
Roll back the operations on this XStore.
|
String getId()
String getDescription()
int getTimeout()
Connection getConnection()
If such a connection has not been used in the current UserTransaction, a new one is created, else the existing connection is reused.
Autocommit is off for the connection and the transaction isolation level is set to RECD_COMMITTED.
void commit()
void rollback()
void close()
close
in interface AutoCloseable
Object getValue(String query, Object... bindVars)
query
- the SQL query text.bindVars
- if the query contains placeholders for binding variables this parameter should contain the valuesObject getValue(int sqlType, String query, Object... bindVars)
sqlType
- if a special mapping of the database type to java type is needed, the type (java.sql.Types)
can be specified here.query
- the SQL statement text.bindVars
- if the query contains placeholders for binding variables, this should contain the valuesDataRow getRow(String query, Object... bindVars)
query
- the SQL statement text.bindVars
- if the query contains placeholders for binding variables, this should contain the valuesList<DataRow> getList(String query, Object... bindVars)
query
- the SQL statement text.bindVars
- if the query contains placeholders for binding variables, this should contain the values@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.