com.scooterframework.orm.sqldataexpress.connection
Interface UserDatabaseConnection

All Known Implementing Classes:
DataSourceConnection, JdbcConnection, UserDatabaseConnectionImpl

public interface UserDatabaseConnection

UserDatabaseConnection interface allows access to both connection and connection context.


Field Summary
static java.lang.String DATASOURCE_CONNECTION
           
static java.lang.String JDBC_CONNECTION
           
 
Method Summary
 boolean getAutoCommit()
          Retrieves the current auto-commit mode for this Connection object.
 java.sql.Connection getConnection()
          Return the underlying connection.
 java.lang.String getConnectionName()
          Return the connection name.
 java.lang.String getConnectionType()
          Return the connection type.
 DatabaseConnectionContext getDatabaseConnectionContext()
          Return the underlying DatabaseConnectionContext.
 void setAutoCommit(boolean autoCommit)
          Sets this connection's auto-commit mode to the given state.
 

Field Detail

JDBC_CONNECTION

static final java.lang.String JDBC_CONNECTION
See Also:
Constant Field Values

DATASOURCE_CONNECTION

static final java.lang.String DATASOURCE_CONNECTION
See Also:
Constant Field Values
Method Detail

getConnectionName

java.lang.String getConnectionName()
Return the connection name.


getConnectionType

java.lang.String getConnectionType()
Return the connection type.


getConnection

java.sql.Connection getConnection()
Return the underlying connection.


getDatabaseConnectionContext

DatabaseConnectionContext getDatabaseConnectionContext()
Return the underlying DatabaseConnectionContext.


getAutoCommit

boolean getAutoCommit()
Retrieves the current auto-commit mode for this Connection object.

Returns:
the current state of this Connection object's auto-commit mode

setAutoCommit

void setAutoCommit(boolean autoCommit)
                   throws java.sql.SQLException
Sets this connection's auto-commit mode to the given state.

Parameters:
autoCommit - true to enable auto-commit mode; false to disable it
Throws:
java.sql.SQLException - if a database access error occurs
See Also:
getAutoCommit()