Public Member Functions | |
LSDDbSession (Connection connext, boolean isReadOnly) | |
LSDDbSession (String server, String user, String passwd, boolean isReadOnly) | |
boolean | disconnect () |
boolean | commit () |
boolean | rollback (Savepoint savepoint) |
Savepoint | savepoint () |
boolean | releaseSavepoint (Savepoint savepoint) |
Static Public Member Functions | |
static void | error (SQLException ex) |
Public Attributes | |
Connection | conn = null |
boolean | isReadOnly = true |
openlsd.database.session.LSDDbSession.LSDDbSession | ( | Connection | connext, | |
boolean | isReadOnly | |||
) |
Create a session and connect the current object to the connext object given as parameter.
The database access use no auto commit.
If the initialize is not call before, call it with the default value.
connext | ||
isReadOnly |
openlsd.database.session.LSDDbSession.LSDDbSession | ( | String | server, | |
String | user, | |||
String | passwd, | |||
boolean | isReadOnly | |||
) |
Create a session and connect the current object to the server using the string with the form for mysql jdbc:type://[host:port],[failoverhost:port].../[database][?propertyName1][=propertyValue1][&propertyName2][=propertyValue2]...
By default (if server = null) : "jdbc:mysql://localhost/lsd user=lsd password=lsd"
The database access use no auto commit.
If the initialize is not call before, call it with the default value.
server | ||
user | ||
passwd | ||
isReadOnly |
static void openlsd.database.session.LSDDbSession.error | ( | SQLException | ex | ) | [static] |
Print the error from SQLException
ex |
boolean openlsd.database.session.LSDDbSession.disconnect | ( | ) |
Close the connexion
boolean openlsd.database.session.LSDDbSession.commit | ( | ) |
Commit everything
boolean openlsd.database.session.LSDDbSession.rollback | ( | Savepoint | savepoint | ) |
Rollback from the savepoint or the last set if null
savepoint |
Savepoint openlsd.database.session.LSDDbSession.savepoint | ( | ) |
Make a savepoint
boolean openlsd.database.session.LSDDbSession.releaseSavepoint | ( | Savepoint | savepoint | ) |
Release the savepoint
savepoint |
Connection openlsd.database.session.LSDDbSession.conn = null |
The internal connection
boolean openlsd.database.session.LSDDbSession.isReadOnly = true |
Is this connection Read Only