public class JDBCConnection extends Object
Modifier and Type | Field and Description |
---|---|
Connection |
connection
The actual connection.
|
boolean |
countExecutes |
int |
executeCount |
JDBCLogger |
logger |
static int |
MAX_CONNECTION_TRIES
Maximum number of time we retry a connection if the server says it's overloaded.
|
Constructor and Description |
---|
JDBCConnection()
for tests only
|
JDBCConnection(Model model,
SQLInfo sqlInfo,
XADataSource xadatasource,
JDBCConnectionPropagator connectionPropagator,
boolean noSharing)
Creates a new Mapper.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeConnections() |
Mapper.Identification |
getIdentification() |
public static final int MAX_CONNECTION_TRIES
public Connection connection
public boolean countExecutes
public int executeCount
public final JDBCLogger logger
public JDBCConnection(Model model, SQLInfo sqlInfo, XADataSource xadatasource, JDBCConnectionPropagator connectionPropagator, boolean noSharing) throws StorageException
model
- the modelsqlInfo
- the sql infoxadatasource
- the XA datasource to use to get connectionsStorageException
public JDBCConnection()
public Mapper.Identification getIdentification()
public void close()
public void closeConnections()
Copyright © 2015 Nuxeo SA. All rights reserved.