Class CastorConnection
java.lang.Object
org.castor.cpa.persistence.sql.engine.CastorConnection
CastorConnection class holding connection and factory parameters to encapsulate
their usage in case of creation of CastorStatements.
- Version:
- $Revision: 8469 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Dennis Butterstein, Ralf Joachim
-
Constructor Summary
ConstructorsConstructorDescriptionCastorConnection
(Connection connection, PersistenceFactory factory) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionMethod to create new CastorStatement using local instances of Connection invalid input: '&' PersistenceFactory.Getter returning current _connection.
-
Constructor Details
-
CastorConnection
Constructor.- Parameters:
connection
- Instance of the connection to be used to create CastorStatements.factory
- Instance of PersistenceFactory to be used to create CastorStatements.
-
-
Method Details
-
createStatement
Method to create new CastorStatement using local instances of Connection invalid input: '&' PersistenceFactory.- Returns:
- New instance of CastorStatement.
-
getConnection
Getter returning current _connection.- Returns:
- Connection currently set.
-