Public Methods | |
TAbstractConnectionManager () | |
void | terminate () throws SQLException |
Destroys the instance. | |
void | bindConnection (final String kyCONNECTION_NAME, TConnectionData tCONNECTION_DATA) throws SQLException |
void | bindCursor (final String kyCURSOR_NAME, ResultSet tRESULT_SET) |
void | commitCurrent () |
void | connect (final String kyCONNECTION_NAME) |
Connects to current database, host and user login. | |
void | connect (final String kyCONNECTION_NAME, final String kySCHEMA_NAME) |
void | connect (final String kyCONNECTION_NAME, final String kyHOST_NAME, final String kySCHEMA_NAME, final String kyUSER_LOGIN) |
abstract void | connect (final String kyCONNECTION_NAME, final String kyHOST_NAME, final String kySCHEMA_NAME, final String kyUSER_NAME, final String kyUSER_PASSWORD) |
void | rollbackCurrent () |
void | unbindAllConnections () |
Unbinds all connections. | |
void | unbindConnection (final String kyCONNECTION_NAME) |
void | unbindCurrentConnection () |
Unbinds current connection (if any). | |
void | unbindCursor (final String kyCURSOR_NAME) |
void | clearQueues () |
ResultSet | execute (final String kySTATEMENT) |
void | executeClean (final String kySTATEMENT) |
ResultSet | executeSingleRow (final String kySTATEMENT) |
void | finish () throws SQLException |
Finishes all managed issues. | |
IType | getFromOutputQueue (final int kiINDEX) |
void | initialize () |
Initializes the default connection. | |
String | instantiate (final String kySTATEMENT) |
IType | popFromOutputQueue () |
void | pushOnInputQueue (final IType ktVALUE) |
void | pushOnOutputQueue (IType tVARIABLE) |
void | resetStatus () |
Resets SQL status variables. | |
void | setCurrentConnection (final String kyCONNECTION_NAME) |
final String | currentConnectionName () |
ResultSet | getCursor (final String kyCURSOR_NAME) |
boolean | isConnected () |
boolean | isConnected (final String kyCONNECTION_NAME) |
boolean | isNotFoundCondition () |
boolean | isSqlerrorCondition () |
Public Attributes | |
Logger | tLogger |
Logger instance. | |
Protected Methods | |
Statement | createStatement () throws SQLException |
Protected Attributes | |
Hashtable | tConnectionDataHashtable |
Map that binds connection names to connections. | |
TConnectionData | tCurrentConnectionData |
Current connection data (from tConnectionDataHashtable). | |
Vector | tInputEmbeddedVariableVector |
Input embedded variable string values queue. | |
Vector | tOutputEmbeddedVariableVector |
Output embedded variable string pointers vector. | |
String | yCurrentConnection |
String with the identifier of the current connection. |
Definition at line 41 of file TAbstractConnectionManager.java.
|
Builds a new instance. It uses a logger in the subsystem 'org.uesqlc' but it is deactivated by default. Definition at line 71 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::initialize(), uesqlc::TAbstractConnectionManager::tConnectionDataHashtable, uesqlc::TAbstractConnectionManager::tInputEmbeddedVariableVector, uesqlc::TAbstractConnectionManager::tLogger, uesqlc::TAbstractConnectionManager::tOutputEmbeddedVariableVector, and uesqlc::TAbstractConnectionManager::yCurrentConnection. |
|
Binds in the connection map, a connection named kyCONNECTION_NAME to tCONNECTION_DATA.
Definition at line 103 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::tConnectionDataHashtable. |
|
Binds in the cursor map for the current connection, a cursor named kyCURSOR_NAME to tRESULT_SET.
Definition at line 116 of file TAbstractConnectionManager.java. References uesqlc::TConnectionData::bind(). |
|
Clears embedded variable containers. It must be called at the beginning of each new instruction. Definition at line 340 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::tInputEmbeddedVariableVector, and uesqlc::TAbstractConnectionManager::tOutputEmbeddedVariableVector. Referenced by uesqlc::TAbstractConnectionManager::finish(). |
|
Commits current connection.
Definition at line 125 of file TAbstractConnectionManager.java. References uesqlc::TConnectionData::getConnection(). |
|
Connects to a database.
|
|
Connects to a database.
Definition at line 205 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::connect(). |
|
Connects to current host and user login.
Definition at line 174 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::connect(), uesqlc::TConnectionData::yHostName, uesqlc::TConnectionData::yUserName, and uesqlc::TConnectionData::yUserPassword. |
|
Creates a new statement for the current connection.
Definition at line 689 of file TAbstractConnectionManager.java. References uesqlc::TConnectionData::getConnection(). Referenced by uesqlc::TAbstractConnectionManager::execute(), uesqlc::TAbstractConnectionManager::executeClean(), and uesqlc::TAbstractConnectionManager::executeSingleRow(). |
|
Returns the connection name for the current connection.
Definition at line 698 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::yCurrentConnection. |
|
Executes the statement kySTATEMENT instantiating the input embedded variables (tagged with '$z') in the statement tSTATEMENT.
Definition at line 352 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::createStatement(), uesqlc::TAbstractConnectionManager::instantiate(), uesqlc::TAbstractConnectionManager::resetStatus(), uesqlc::TAbstractConnectionManager::rollbackCurrent(), and uesqlc::TAbstractConnectionManager::tLogger. |
|
Executes the statement kySTATEMENT instantiating the input embedded variables (tagged with '$z'). The result of the execution is omitted.
Definition at line 416 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::createStatement(), uesqlc::TAbstractConnectionManager::instantiate(), uesqlc::TAbstractConnectionManager::resetStatus(), and uesqlc::TAbstractConnectionManager::tLogger. |
|
Executes the statement kySTATEMENT instantiating the input embedded variables (tagged with '$z') in the statement tSTATEMENT. The statement can not return more than one tuple.
Definition at line 451 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::createStatement(), uesqlc::TAbstractConnectionManager::instantiate(), uesqlc::TAbstractConnectionManager::resetStatus(), uesqlc::TAbstractConnectionManager::rollbackCurrent(), and uesqlc::TAbstractConnectionManager::tLogger. |
|
Gets cursor named kyCURSOR_NAME.
Definition at line 708 of file TAbstractConnectionManager.java. References uesqlc::TConnectionData::getCursor(). |
|
Gets a pointer to the SQL data type of the output embedded variable at position kiINDEX in the output embedded variable vector. It must be called for writing results on output embedded variables.
Definition at line 564 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::tOutputEmbeddedVariableVector. |
|
Returns a string that is result of instanting the input embedded variables (if any).
Definition at line 585 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::tInputEmbeddedVariableVector. Referenced by uesqlc::TAbstractConnectionManager::execute(), uesqlc::TAbstractConnectionManager::executeClean(), and uesqlc::TAbstractConnectionManager::executeSingleRow(). |
|
Returns true if there is an active connection.
Definition at line 727 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::tConnectionDataHashtable. |
|
Returns true if there is a default connection.
Definition at line 717 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::yCurrentConnection. Referenced by uesqlc::TAbstractConnectionManager::unbindCurrentConnection(). |
|
Checks if a NOT FOUND condition has happened.
Definition at line 736 of file TAbstractConnectionManager.java. |
|
Checks if a SQLERROR condition has happened.
Definition at line 745 of file TAbstractConnectionManager.java. Referenced by uesqlc::TAbstractConnectionManager::initialize(). |
|
Pops from the output embedded variable queue the last entered variable and returns it.
Definition at line 615 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::tOutputEmbeddedVariableVector. |
|
Pushes on the input embedded variable queue the variable value ktVALUE.
Definition at line 625 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::tInputEmbeddedVariableVector. |
|
Pushes on the output embedded variable vector the variable reference tVARIABLE.
Definition at line 635 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::tOutputEmbeddedVariableVector. |
|
Undoes all changes made in the current transaction and in the current connection.
Definition at line 252 of file TAbstractConnectionManager.java. References uesqlc::TConnectionData::getConnection(). Referenced by uesqlc::TAbstractConnectionManager::execute(), and uesqlc::TAbstractConnectionManager::executeSingleRow(). |
|
Sets current connection to connection named kyCONNECTION_NAME.
Definition at line 655 of file TAbstractConnectionManager.java. References uesqlc::TAbstractConnectionManager::resetStatus(), uesqlc::TAbstractConnectionManager::tConnectionDataHashtable, uesqlc::TAbstractConnectionManager::tLogger, and uesqlc::TAbstractConnectionManager::yCurrentConnection. Referenced by uesqlc::TAbstractConnectionManager::initialize(). |
|
Unbinds connection named kyCONNECTION_NAME.
Definition at line 289 of file TAbstractConnectionManager.java. References uesqlc::TConnectionData::getConnection(), uesqlc::TAbstractConnectionManager::tConnectionDataHashtable, and uesqlc::TAbstractConnectionManager::yCurrentConnection. Referenced by uesqlc::TAbstractConnectionManager::unbindAllConnections(), and uesqlc::TAbstractConnectionManager::unbindCurrentConnection(). |
|
Unbinds cursor kyCURSOR_NAME from current connection.
Definition at line 331 of file TAbstractConnectionManager.java. References uesqlc::TConnectionData::unbind(). |