![]() |
Qore jni Module 2.3.1
|
Java wrapper for the Qore::SQL::DatasourcePool class in Qore. More...
Public Member Methods | |
DatasourcePool (QoreObject ds) | |
creates the object from the Qore object | |
DatasourcePool (String config) throws Throwable | |
creates the object from the config string (ex: "pgsql:user/pass@db" ) | |
![]() | |
AbstractDatasource (QoreObject ds) | |
creates the object | |
void | commit () throws Throwable |
Commits the current transaction and releases any thread resources associated with the transaction. More... | |
void | rollback () throws Throwable |
Rolls the current transaction back and releases any thread resources associated with the transaction. More... | |
Object | exec (String sql) throws Throwable |
Executes an SQL command on the server and returns either the integer row count (for example, for updates, inserts, and deletes) or the data retrieved (for example, if a stored procedure is executed that returns values) More... | |
Object | exec (String sql, Object... args) throws Throwable |
Executes an SQL command on the server and returns either the integer row count (for example, for updates, inserts, and deletes) or the data retrieved (for example, if a stored procedure is executed that returns values) More... | |
Object | vexec (String sql, Object[] vargs) throws Throwable |
Executes an SQL command on the server and returns either the integer row count (for example, for updates, inserts, and deletes) or the data retrieved (for example, if a stored procedure is executed that returns values), taking a list for all bind arguments. More... | |
Object | execRaw (String sql) throws Throwable |
Executes an SQL command on the server and returns either the row count (for example, for updates and inserts) or the data retrieved (for example, if a stored procedure is executed that returns values) More... | |
Object | select (String sql) throws Throwable |
Executes an SQL select statement on the server and (normally) returns the result as a hash (column names) of lists (column values per row) More... | |
Object | select (String sql, Object... args) throws Throwable |
Executes an SQL select statement on the server and (normally) returns the result as a hash (column names) of lists (column values per row) More... | |
Object | selectRow (String sql) throws Throwable |
Executes an SQL select statement on the server and returns the first row as a hash (the column values) More... | |
Object | selectRow (String sql, Object... args) throws Throwable |
Executes an SQL select statement on the server and returns the first row as a hash (the column values) More... | |
Object | selectRows (String sql) throws Throwable |
Executes an SQL select statement on the server and returns the result as a list (rows) of hashes (the column values) More... | |
Object | selectRows (String sql, Object... args) throws Throwable |
Executes an SQL select statement on the server and returns the result as a list (rows) of hashes (the column values) More... | |
Object | vselect (String sql, Object[] vargs) throws Throwable |
Executes a select statement on the server and returns the results in a hash (column names) of lists (column values per row), taking a list for all bind arguments. More... | |
Object | vselectRow (String sql, Object[] vargs) throws Throwable |
Executes a select statement on the server and returns the first row as a hash (column names and values), taking a list for all bind arguments. More... | |
Object | vselectRows (String sql, Object[] vargs) throws Throwable |
Executes a select statement on the server and returns the results in a list (rows) of hashes (column names and values), taking a list for all bind arguments. More... | |
void | beginTransaction () throws Throwable |
Manually signals the start of transaction management on the AbstractDatasource. More... | |
String | getUserName () throws Throwable |
Returns the username parameter as a string or null if none is set. More... | |
String | getPassword () throws Throwable |
Returns the password parameter as a string or null if none is set. More... | |
String | getDBName () throws Throwable |
Returns the database name parameter as a string or null if none is set. More... | |
String | getDBEncoding () throws Throwable |
Retrieves the database-specific charset set encoding for the object. More... | |
String | getOSEncoding () throws Throwable |
Returns the Qore character encoding name for the object as a string or null if none is set. More... | |
String | getHostName () throws Throwable |
Returns the hostname parameter as a string or null if none is set. More... | |
Integer | getPort () throws Throwable |
Gets the port number that will be used for the next connection to the server. More... | |
String | getDriverName () throws Throwable |
Returns the name of the driver used for the object. More... | |
Object | getServerVersion () throws Throwable |
Returns the driver-specific server version data for the current connection. More... | |
Object | getClientVersion () throws Throwable |
Retrieves the driver-specific client library version information. More... | |
boolean | inTransaction () throws Throwable |
Returns True if a transaction is currently in progress. More... | |
HashMap< String, Object > | getConfigHash () throws Throwable |
Returns a datasource hash describing the configuration of the current object. More... | |
String | getConfigString () throws Throwable |
Returns a string giving the configuration of the current object in a format that can be parsed by parse_datasource() More... | |
boolean | currentThreadInTransaction () throws Throwable |
Should return true if the current thread is in a transaction with this object, must be re-implemented in subclasses to provide the desired functionality. More... | |
AbstractSQLStatement | getSQLStatement () throws Throwable |
Returns an AbstractSQLStatement object based on the current database connection object. More... | |
![]() | |
QoreObjectWrapper (QoreObject obj) | |
creates the wrapper object with the Qore object | |
void | release () |
releases the Qore object; do not call any further methods on the object after this call | |
QoreObject | getQoreObject () |
returns the Qore object | |
String | className () |
returns the class name for the Qore object | |
boolean | instanceOf (String class_name) |
returns true if the object is an instance of the given class | |
Additional Inherited Members | |
![]() | |
QoreObject | obj |
the wrapper Qore object | |
Java wrapper for the Qore::SQL::DatasourcePool class in Qore.
loads and initializes the Qore library and the jni module in static initialization if necessary
import qore.Qore.SQL.DatasourcePool;