Qore jni Module  1.1.3
org.qore.lang.DatasourcePool Class Reference

The main class with common definitions, equivalent to the OMQ namespace in Qorus. More...

Inheritance diagram for org.qore.lang.DatasourcePool:
org.qore.lang.AbstractDatasource org.qore.jni.QoreObjectWrapper

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")
 
- Public Member Methods inherited from org.qore.lang.AbstractDatasource
 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...
 
- Public Member Methods inherited from org.qore.jni.QoreObjectWrapper
 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

- Private Attributes inherited from org.qore.jni.QoreObjectWrapper
QoreObject obj
 the wrapper Qore object
 

Detailed Description

The main class with common definitions, equivalent to the OMQ namespace in Qorus.

loads and initializes the Qore library and the jni module in static initialization if necessary


The documentation for this class was generated from the following file: