railo.runtime.orm
Class ORMDatasourceConnection

java.lang.Object
  extended by railo.runtime.orm.ORMDatasourceConnection
All Implemented Interfaces:
DatasourceConnection, DatasourceConnectionPro

public class ORMDatasourceConnection
extends Object
implements DatasourceConnectionPro


Constructor Summary
ORMDatasourceConnection(PageContext pc, ORMSession session)
           
 
Method Summary
 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 isTimeout()
           
 boolean supportsGetGeneratedKeys()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ORMDatasourceConnection

public ORMDatasourceConnection(PageContext pc,
                               ORMSession session)
Method Detail

getConnection

public Connection getConnection()
Specified by:
getConnection in interface DatasourceConnection
Returns:
Returns the connection.

getDatasource

public DataSource getDatasource()
Specified by:
getDatasource in interface DatasourceConnection
Returns:
Returns the datasource.
See Also:
DatasourceConnection.getDatasource()

getPassword

public String getPassword()
Specified by:
getPassword in interface DatasourceConnection
Returns:
the password
See Also:
DatasourceConnection.getPassword()

getUsername

public String getUsername()
Specified by:
getUsername in interface DatasourceConnection
Returns:
the username
See Also:
DatasourceConnection.getUsername()

isTimeout

public boolean isTimeout()
Specified by:
isTimeout in interface DatasourceConnection
Returns:
is timeout or not
See Also:
DatasourceConnection.isTimeout()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

supportsGetGeneratedKeys

public boolean supportsGetGeneratedKeys()
Specified by:
supportsGetGeneratedKeys in interface DatasourceConnectionPro

getPreparedStatement

public PreparedStatement getPreparedStatement(SQL sql,
                                              boolean createGeneratedKeys,
                                              boolean allowCaching)
                                       throws SQLException
Specified by:
getPreparedStatement in interface DatasourceConnectionPro
Throws:
SQLException

getPreparedStatement

public PreparedStatement getPreparedStatement(SQL sql,
                                              int resultSetType,
                                              int resultSetConcurrency)
                                       throws SQLException
Specified by:
getPreparedStatement in interface DatasourceConnectionPro
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in interface DatasourceConnectionPro
Throws:
SQLException


Copyright © 2012 Railo