Class JDBCConnection
java.lang.Object
org.nuxeo.ecm.core.storage.sql.jdbc.JDBCConnection
- Direct Known Subclasses:
JDBCRowMapper
Holds a connection to a JDBC database.
-
Field Summary
Modifier and TypeFieldDescriptionThe actual connection.boolean
protected final Dialect
The dialect.int
final JDBCLogger
protected final Model
The model used to do the mapping.protected boolean
protected final SQLInfo
The SQL information.protected boolean
-
Constructor Summary
ConstructorDescriptionfor tests onlyJDBCConnection
(Model model, SQLInfo sqlInfo) Creates a new Mapper. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Checks the SQL error we got and determine if a concurrent update happened.void
void
connect()
protected void
static String
getDataSourceName
(String repositoryName) Gets the datasource to use for the given repository.
-
Field Details
-
model
The model used to do the mapping. -
sqlInfo
The SQL information. -
dialect
The dialect. -
connection
The actual connection. -
supportsBatchUpdates
protected boolean supportsBatchUpdates -
countExecutes
public boolean countExecutes -
executeCount
public int executeCount -
logger
-
setClientInfo
protected boolean setClientInfo
-
-
Constructor Details
-
JDBCConnection
Creates a new Mapper.- Parameters:
model
- the modelsqlInfo
- the sql info
-
JDBCConnection
public JDBCConnection()for tests only- Since:
- 5.9.3
-
-
Method Details
-
getRepositoryName
-
getIdentification
-
countExecute
protected void countExecute() -
getDataSourceName
Gets the datasource to use for the given repository.- Since:
- 8.4
-
connect
public void connect() -
closeConnection
public void closeConnection() -
checkConcurrentUpdate
Checks the SQL error we got and determine if a concurrent update happened. Throws if that's the case.- Parameters:
e
- the exception- Throws:
ConcurrentUpdateException
- Since:
- 5.8
-