Class DbAdaptorFactory
java.lang.Object
ru.curs.celesta.dbutils.adaptors.configuration.DbAdaptorFactory
DB adaptor builder.
Depending on DB type the following descendants of
Depending on DB type the following descendants of
DBAdaptor are returned:
- H2 -
H2Adaptor - Postgre SQL -
PostgresAdaptor - MS SQL -
MSSQLAdaptor - Oracle -
OraAdaptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuilds DB adaptor for concrete DB type.setConnectionPool(ConnectionPool connectionPool) Sets Connection pool.Sets DB type.setDdlConsumer(DdlConsumer ddlConsumer) Sets DDL Consumer.setH2ReferentialIntegrity(boolean h2ReferentialIntegrity) Whether referential integrity for H2 DB has to be switched on/off.
-
Constructor Details
-
DbAdaptorFactory
public DbAdaptorFactory()
-
-
Method Details
-
setDbType
Sets DB type.- Parameters:
dbType- DB type- Returns:
this
-
setDdlConsumer
Sets DDL Consumer.- Parameters:
ddlConsumer- DDL consumer- Returns:
- @return
this
-
setConnectionPool
Sets Connection pool.- Parameters:
connectionPool- connection pool- Returns:
- @return
this
-
setH2ReferentialIntegrity
Whether referential integrity for H2 DB has to be switched on/off.- Parameters:
h2ReferentialIntegrity-true- switch on,false- switch off. Defaul value isfalse.- Returns:
-
createDbAdaptor
Builds DB adaptor for concrete DB type.- Returns:
-