public final class DbAdaptorFactory extends Object
DBAdaptor are returned:
H2AdaptorPostgresAdaptorMSSQLAdaptorOraAdaptor| Constructor and Description |
|---|
DbAdaptorFactory() |
| Modifier and Type | Method and Description |
|---|---|
DBAdaptor |
createDbAdaptor()
Builds DB adaptor for concrete DB type.
|
DbAdaptorFactory |
setConnectionPool(ConnectionPool connectionPool)
Sets Connection pool.
|
DbAdaptorFactory |
setDbType(DBType dbType)
Sets DB type.
|
DbAdaptorFactory |
setDdlConsumer(DdlConsumer ddlConsumer)
Sets DDL Consumer.
|
DbAdaptorFactory |
setH2ReferentialIntegrity(boolean h2ReferentialIntegrity)
Whether referential integrity for H2 DB has to be switched on/off.
|
public DbAdaptorFactory setDbType(DBType dbType)
dbType - DB typethispublic DbAdaptorFactory setDdlConsumer(DdlConsumer ddlConsumer)
ddlConsumer - DDL consumerthispublic DbAdaptorFactory setConnectionPool(ConnectionPool connectionPool)
connectionPool - connection poolthispublic DbAdaptorFactory setH2ReferentialIntegrity(boolean h2ReferentialIntegrity)
h2ReferentialIntegrity - true - switch on, false - switch off.
Defaul value is false.public DBAdaptor createDbAdaptor()
Copyright © 2020 CURS. All rights reserved.