public class JDBCConnection extends Object
Modifier and Type | Field and Description |
---|---|
Connection |
connection
The actual connection.
|
boolean |
countExecutes |
protected Dialect |
dialect
The dialect.
|
int |
executeCount |
JDBCLogger |
logger |
protected Model |
model
The model used to do the mapping.
|
protected boolean |
noSharing
Whether this connection must never be shared (long-lived).
|
protected boolean |
setClientInfo |
protected SQLInfo |
sqlInfo
The SQL information.
|
protected boolean |
supportsBatchUpdates |
protected XADataSource |
xadatasource
The xa datasource.
|
protected XAResource |
xaresource |
Constructor and Description |
---|
JDBCConnection()
for tests only
|
JDBCConnection(Model model,
SQLInfo sqlInfo,
XADataSource xadatasource,
boolean noSharing)
Creates a new Mapper.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkConcurrentUpdate(Throwable e)
Checks the SQL error we got and determine if a concurrent update happened.
|
void |
close() |
void |
closeConnections() |
protected void |
closeStatement(Statement s) |
protected void |
closeStatement(Statement s,
ResultSet r) |
protected void |
countExecute() |
Mapper.Identification |
getIdentification() |
String |
getRepositoryName() |
protected void |
openBaseConnection() |
protected void |
openConnections() |
protected final XADataSource xadatasource
public Connection connection
protected boolean supportsBatchUpdates
protected XAResource xaresource
protected final boolean noSharing
public boolean countExecutes
public int executeCount
public final JDBCLogger logger
protected boolean setClientInfo
public JDBCConnection(Model model, SQLInfo sqlInfo, XADataSource xadatasource, boolean noSharing)
model
- the modelsqlInfo
- the sql infoxadatasource
- the XA datasource to use to get connectionspublic JDBCConnection()
public String getRepositoryName()
public Mapper.Identification getIdentification()
protected void countExecute()
protected void openConnections()
protected void openBaseConnection() throws SQLException
SQLException
public void close()
public void closeConnections()
protected void checkConcurrentUpdate(Throwable e) throws ConcurrentUpdateException
e
- the exceptionConcurrentUpdateException
protected void closeStatement(Statement s) throws SQLException
SQLException
protected void closeStatement(Statement s, ResultSet r) throws SQLException
SQLException
Copyright © 2015 Nuxeo SA. All rights reserved.