railo.runtime.orm
Class ORMDatasourceConnection

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

public class ORMDatasourceConnection
extends Object
implements DatasourceConnection


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.

getPassword

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

getUsername

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

isTimeout

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

supportsGetGeneratedKeys

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

getPreparedStatement

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

getPreparedStatement

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

close

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


Copyright © 2012 Railo