public class ORMDatasourceConnection extends Object implements DatasourceConnection
Constructor and Description |
---|
ORMDatasourceConnection(PageContext pc,
ORMSession session,
DataSource ds) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(Object obj) |
Connection |
getConnection() |
DataSource |
getDatasource() |
String |
getPassword() |
PreparedStatement |
getPreparedStatement(SQL sql,
boolean createGeneratedKeys,
boolean allowCaching) |
PreparedStatement |
getPreparedStatement(SQL sql,
int resultSetType,
int resultSetConcurrency) |
String |
getUsername() |
boolean |
isAutoCommit() |
boolean |
isTimeout() |
void |
setAutoCommit(boolean setting) |
boolean |
supportsGetGeneratedKeys() |
public ORMDatasourceConnection(PageContext pc, ORMSession session, DataSource ds) throws PageException
PageException
public Connection getConnection()
getConnection
in interface DatasourceConnection
public boolean isAutoCommit() throws SQLException
SQLException
public void setAutoCommit(boolean setting) throws SQLException
SQLException
public DataSource getDatasource()
getDatasource
in interface DatasourceConnection
public String getPassword()
getPassword
in interface DatasourceConnection
public String getUsername()
getUsername
in interface DatasourceConnection
public boolean isTimeout()
isTimeout
in interface DatasourceConnection
public boolean supportsGetGeneratedKeys()
supportsGetGeneratedKeys
in interface DatasourceConnection
public PreparedStatement getPreparedStatement(SQL sql, boolean createGeneratedKeys, boolean allowCaching) throws SQLException
getPreparedStatement
in interface DatasourceConnection
SQLException
public PreparedStatement getPreparedStatement(SQL sql, int resultSetType, int resultSetConcurrency) throws SQLException
getPreparedStatement
in interface DatasourceConnection
SQLException
public void close() throws SQLException
close
in interface DatasourceConnection
SQLException
Copyright © 2015 Lucee