bwLehrpool Masterserver
Manages authentication and sharing of virtual machines between participating institutions
Public Member Functions | Package Functions | Private Attributes | Static Private Attributes | List of all members
org.openslx.imagemaster.db.MysqlConnection Class Reference
+ Inheritance diagram for org.openslx.imagemaster.db.MysqlConnection:
+ Collaboration diagram for org.openslx.imagemaster.db.MysqlConnection:

Public Member Functions

MysqlStatement prepareStatement (String sql) throws SQLException
 
void commit () throws SQLException
 
void rollback () throws SQLException
 
void close ()
 

Package Functions

 MysqlConnection (Connection rawConnection)
 
boolean isValid ()
 
void release ()
 
void setAutoCommit (boolean b) throws SQLException
 

Private Attributes

final long deadline = System.currentTimeMillis() + CONNECTION_TIMEOUT_MS
 
final Connection rawConnection
 
boolean hasPendingQueries = false
 
List< MysqlStatementopenStatements = new ArrayList<>()
 

Static Private Attributes

static final Logger LOGGER = LogManager.getLogger( MysqlConnection.class )
 
static final int CONNECTION_TIMEOUT_MS = 5 * 60 * 1000
 

Detailed Description

Definition at line 11 of file MysqlConnection.java.

Constructor & Destructor Documentation

org.openslx.imagemaster.db.MysqlConnection.MysqlConnection ( Connection  rawConnection)
package

Definition at line 26 of file MysqlConnection.java.

Member Function Documentation

void org.openslx.imagemaster.db.MysqlConnection.close ( )

Definition at line 59 of file MysqlConnection.java.

+ Here is the call graph for this function:

void org.openslx.imagemaster.db.MysqlConnection.commit ( ) throws SQLException

Definition at line 41 of file MysqlConnection.java.

boolean org.openslx.imagemaster.db.MysqlConnection.isValid ( )
package

Definition at line 53 of file MysqlConnection.java.

+ Here is the caller graph for this function:

MysqlStatement org.openslx.imagemaster.db.MysqlConnection.prepareStatement ( String  sql) throws SQLException

Definition at line 31 of file MysqlConnection.java.

void org.openslx.imagemaster.db.MysqlConnection.release ( )
package

Definition at line 89 of file MysqlConnection.java.

+ Here is the caller graph for this function:

void org.openslx.imagemaster.db.MysqlConnection.rollback ( ) throws SQLException

Definition at line 47 of file MysqlConnection.java.

void org.openslx.imagemaster.db.MysqlConnection.setAutoCommit ( boolean  b) throws SQLException
package

Definition at line 98 of file MysqlConnection.java.

+ Here is the caller graph for this function:

Member Data Documentation

final int org.openslx.imagemaster.db.MysqlConnection.CONNECTION_TIMEOUT_MS = 5 * 60 * 1000
staticprivate

Definition at line 16 of file MysqlConnection.java.

final long org.openslx.imagemaster.db.MysqlConnection.deadline = System.currentTimeMillis() + CONNECTION_TIMEOUT_MS
private

Definition at line 18 of file MysqlConnection.java.

boolean org.openslx.imagemaster.db.MysqlConnection.hasPendingQueries = false
private

Definition at line 22 of file MysqlConnection.java.

final Logger org.openslx.imagemaster.db.MysqlConnection.LOGGER = LogManager.getLogger( MysqlConnection.class )
staticprivate

Definition at line 14 of file MysqlConnection.java.

List<MysqlStatement> org.openslx.imagemaster.db.MysqlConnection.openStatements = new ArrayList<>()
private

Definition at line 24 of file MysqlConnection.java.

final Connection org.openslx.imagemaster.db.MysqlConnection.rawConnection
private

Definition at line 20 of file MysqlConnection.java.


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