public final class CastorConnection extends Object
Constructor and Description |
---|
CastorConnection(Connection connection,
PersistenceFactory factory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CastorStatement |
createStatement()
Method to create new CastorStatement using local instances of
Connection & PersistenceFactory.
|
Connection |
getConnection()
Getter returning current _connection.
|
public CastorConnection(Connection connection, PersistenceFactory factory)
connection
- Instance of the connection to be used to create CastorStatements.factory
- Instance of PersistenceFactory to be used to create CastorStatements.public CastorStatement createStatement()
public Connection getConnection()
Copyright © 2018. All rights reserved.