|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.db.MultiConnectionManager
| Field Summary | |
static java.lang.String |
AUTONUMERICAL_PROPERTIES
Configuration XML Tag |
static java.lang.String |
CONNECTION_INFO
Configuration XML Tag |
static java.lang.String |
CONNECTION_MANAGER
Configuration XML Tag |
static java.lang.String |
CONNECTION_MANAGERS
Configuration XML Tag |
protected static java.util.ArrayList[] |
connectionManagerEntities
|
protected static java.lang.String[] |
connectionManagerId
|
protected static DatabaseConnectionManager[] |
connectionManagers
|
protected static java.util.Hashtable |
connectionManagerStore
|
protected static java.lang.Number[] |
connectionMangerNumId
|
protected static java.util.Vector |
connectionsGroup
|
static java.lang.String |
DATABASE_MULTICONNECTION_MANAGER
COnfiguration XML Tag |
static java.lang.String |
DB_PROPERTIES
Configuration XML Tag |
protected static DatabaseMultiConnectionManager |
dbMCManager
|
protected static DatabaseConnectionManager |
defaultConnectionManager
|
static java.lang.String |
ENTITY
Configuration XML Tag |
static java.lang.String |
ID
|
static java.lang.String |
INITIAL_CONNECTIONS
Configuration XML Tag |
protected static EntityReferenceLocator |
locator
|
protected static java.lang.String |
NAME_ELEMENT
|
protected static java.lang.String |
PARAM_ELEMENT
|
protected static java.lang.String |
VALUE_ELEMENT
|
| Constructor Summary | |
MultiConnectionManager()
|
|
| Method Summary | |
protected static void |
_removeConnectionManager(java.lang.Number id)
|
protected static void |
_removeConnectionManager(java.lang.String id)
|
void |
clearConnectionManager()
|
static void |
commit(java.sql.Connection con)
This method makes one commit operation of all the connections which are related to the entry parameter except the connections which belong to the standard manager. |
protected static void |
configureDatabaseMultiConnectionManager(org.w3c.dom.NodeList dbMCManagerList)
|
static boolean |
configureMultiConnectionManager(java.lang.String multiConnectionManagerPath)
|
static void |
disconnect(java.sql.Connection con)
All connections that are related to the entry parameter except the standard one will be disconnected |
static java.sql.Connection |
getConnection(java.lang.String entity,
java.sql.Connection con,
int id)
Checks if the specified connection belongs to the entity connection manager. |
static DatabaseConnectionManager |
getConnectionManager(java.lang.Number numericId)
Gets the connection manager with the specified numeric identifier 'numericId'. |
static DatabaseConnectionManager |
getConnectionManager(java.lang.String id)
Gets the connection manager with the specified identifier 'id'. |
static DatabaseConnectionManager |
getConnectionManagerForEntity(java.lang.String entity)
Return the connection manager assigned to the specified entity |
static java.lang.String[] |
getConnectionManagerIds()
Gets all connection manager identifiers |
protected static int |
getDatabaseConnectionManagerListIndex(java.lang.Object id)
|
static DatabaseConnectionManager |
getDefaultConnectionManager()
Return default connection manager. |
static java.util.List |
getGroupConnections(java.sql.Connection con)
Gets a list with all related connections |
static OntimizeConnection |
getOntimizeConnection(java.sql.Connection con,
DatabaseConnectionManager connectionManager)
Gets the Ontimize connection that contains the connection entry parameter. |
static java.lang.String |
getTextValue(org.w3c.dom.Node son)
|
protected static boolean |
isOwnerConnectionManager(java.sql.Connection con,
DatabaseConnectionManager dbcm)
Checks if the specified connection belongs to the connection manager 'dbcm' |
static void |
removeConnectionManager(java.lang.Object id)
|
static void |
rollback(java.sql.Connection con)
This method makes one rollback operation of all the connections which are related to the entry parameter except these that are in the standard manager. |
static void |
setAutoCommit(java.sql.Connection con,
boolean autocommit)
This method makes one commit operation of all the connections which are related to the entry parameter except the connections which belong to the standard manager. |
static void |
setConnectionManager(java.lang.Number numId,
java.lang.String id,
DatabaseConnectionManager cm,
java.util.ArrayList entities)
Adds a new connection manager to the managers list |
static void |
setConnectionManager(java.lang.String id,
DatabaseConnectionManager cm,
java.util.ArrayList entities)
Adds a new connection manager to the managers list |
static void |
setDefaultConnectionManager(DatabaseConnectionManager gC)
|
static void |
setLocator(EntityReferenceLocator loc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CONNECTION_MANAGERS
public static final java.lang.String DATABASE_MULTICONNECTION_MANAGER
public static final java.lang.String CONNECTION_MANAGER
public static final java.lang.String DB_PROPERTIES
public static final java.lang.String AUTONUMERICAL_PROPERTIES
public static final java.lang.String INITIAL_CONNECTIONS
public static final java.lang.String CONNECTION_INFO
public static final java.lang.String ENTITY
public static final java.lang.String ID
protected static DatabaseConnectionManager defaultConnectionManager
protected static DatabaseConnectionManager[] connectionManagers
protected static java.util.ArrayList[] connectionManagerEntities
protected static java.lang.Number[] connectionMangerNumId
protected static java.lang.String[] connectionManagerId
protected static java.util.Vector connectionsGroup
protected static java.util.Hashtable connectionManagerStore
protected static EntityReferenceLocator locator
protected static final java.lang.String PARAM_ELEMENT
protected static final java.lang.String NAME_ELEMENT
protected static final java.lang.String VALUE_ELEMENT
protected static DatabaseMultiConnectionManager dbMCManager
| Constructor Detail |
public MultiConnectionManager()
| Method Detail |
public static java.lang.String[] getConnectionManagerIds()
public static DatabaseConnectionManager getConnectionManager(java.lang.String id)
id -
public static DatabaseConnectionManager getConnectionManager(java.lang.Number numericId)
numericId -
public static void setDefaultConnectionManager(DatabaseConnectionManager gC)
public static void setConnectionManager(java.lang.Number numId,
java.lang.String id,
DatabaseConnectionManager cm,
java.util.ArrayList entities)
throws java.lang.IllegalArgumentException
numId - Numeric connection manager identifier.id - Connection manager identifiercm - Connection Manager Objectentities - Entity list that use this connection manager
java.lang.IllegalArgumentException
public static void setConnectionManager(java.lang.String id,
DatabaseConnectionManager cm,
java.util.ArrayList entities)
throws java.lang.IllegalArgumentException
id - Connection manager identifiercm - Connection Manager Objectentities - Entity list that use this connection manager
java.lang.IllegalArgumentExceptionpublic static DatabaseConnectionManager getDefaultConnectionManager()
public void clearConnectionManager()
public static void removeConnectionManager(java.lang.Object id)
throws java.lang.Exception
java.lang.Exceptionprotected static void _removeConnectionManager(java.lang.Number id)
protected static void _removeConnectionManager(java.lang.String id)
protected static int getDatabaseConnectionManagerListIndex(java.lang.Object id)
public static DatabaseConnectionManager getConnectionManagerForEntity(java.lang.String entity)
throws java.lang.IllegalArgumentException
entity -
java.lang.IllegalArgumentException
protected static boolean isOwnerConnectionManager(java.sql.Connection con,
DatabaseConnectionManager dbcm)
con - dbcm -
public static OntimizeConnection getOntimizeConnection(java.sql.Connection con,
DatabaseConnectionManager connectionManager)
con - connectionManager -
public static java.sql.Connection getConnection(java.lang.String entity,
java.sql.Connection con,
int id)
Checks if the specified connection belongs to the entity connection
manager. If this is true return the same connection, in other case return
a connection to the entity connection manager and relates them. To see all
related connections @see getGroupConnections(Connection)
entity - Entity namecon - Connectionid -
public static java.util.List getGroupConnections(java.sql.Connection con)
con -
public static void disconnect(java.sql.Connection con)
All connections that are related to the entry parameter except the standard one will be disconnected
con -
public static void setAutoCommit(java.sql.Connection con,
boolean autocommit)
throws java.lang.Exception
This method makes one commit operation of all the connections which are
related to the entry parameter except the connections which belong to the
standard manager.
Warning: If one connection throws one exception during the commit
operation, it is possible that there are connections without realizing the
commit operation.
con -
java.lang.Exception
public static void commit(java.sql.Connection con)
throws java.lang.Exception
This method makes one commit operation of all the connections which are
related to the entry parameter except the connections which belong to the
standard manager.
Warning: If one connection throws one exception during the commit
operation, it is possible that there are connections without realizing the
commit operation.
con -
java.lang.Exception
public static void rollback(java.sql.Connection con)
throws java.lang.Exception
This method makes one rollback operation of all the connections which are related to the entry parameter except these that are in the standard manager.
con -
java.lang.Exceptionpublic static void setLocator(EntityReferenceLocator loc)
public static boolean configureMultiConnectionManager(java.lang.String multiConnectionManagerPath)
protected static void configureDatabaseMultiConnectionManager(org.w3c.dom.NodeList dbMCManagerList)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String getTextValue(org.w3c.dom.Node son)
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||