| java.lang.Object com.lutris.appserver.server.sessionEnhydra.persistent.DBUtil
Method Summary | |
static DBQuery | createQuery(String dbName) Creates a query for the specified DB name.
Parameters: dbName - the database name. | static DBTransaction | createTransaction(String dbName) Creates a transaction for the specified DB name.
Parameters: dbName - the database name. | static void | dbDelete(String sessionKey, String dbName) Deletes a session from the database.
Parameters: sessionKey - the key that identifies the session that will be deleted. Parameters: dbName - the database that should be accessed. | static void | dbInsert(PersistentSession session, String dbName) Inserts a session into the database.
Parameters: session - the session that will be inserted. Parameters: dbName - the database that should be accessed. | static Object | dbQuery(Query query, String dbName) Executes a query of the database.
Parameters: query - the object containg the query statement. Parameters: dbName - the database that should be queried. | static int | dbUpdate(PersistentSession session, String dbName) Saves a session to the database.
Parameters: session - the session to save. Parameters: dbName - the database that should be accessed. |
dbDelete | static void dbDelete(String sessionKey, String dbName) throws SessionException(Code) | | Deletes a session from the database.
Parameters: sessionKey - the key that identifies the session that will be deleted. Parameters: dbName - the database that should be accessed. May benull in which case the default database is used. exception: SessionException - if an error occurs. |
dbInsert | static void dbInsert(PersistentSession session, String dbName) throws SessionException(Code) | | Inserts a session into the database.
Parameters: session - the session that will be inserted. Parameters: dbName - the database that should be accessed. May benull in which case the default database is used. exception: SessionException - if an error occurs. |
dbQuery | static Object dbQuery(Query query, String dbName) throws SessionException(Code) | | Executes a query of the database.
Parameters: query - the object containg the query statement. Parameters: dbName - the database that should be queried. May benull in which case the default database is used. exception: SessionException - if an erro occurs. |
dbUpdate | static int dbUpdate(PersistentSession session, String dbName) throws SessionException(Code) | | Saves a session to the database.
Parameters: session - the session to save. Parameters: dbName - the database that should be accessed. May benull in which case the default database is used. the number of rows that were affectedby this update. exception: SessionException - if an error occurs. |
|
|