Package com.anylogic.engine.database
- Field Summary
- Constructor Summary
- Method Summary
- Field Details
- CURRENT_VERSION
- DATABASE_DIRECTORY
- DATABASE_DB_PATH
- PUBLIC_SCHEMA_NAME
- DROP_SQL_OBJECT
- LOG_OBJECT_SUFFIX
- AL_ID_COLUMN_NAME
- UNIQUE_AUTOINC_COLUMN_NAME
- AL_SELECTED_LOG_OBJECTS
- AL_SELECTED_LOG_OBJECT_NAME
- AL_SELECTED_LOG_OBJECT_TYPE
- AL_LOG_TYPE_TABLE
- AL_LOG_TYPE_VIEW
- AL_VIEWS_TABLE_NAME
- AL_VIEW_NAME
- AL_VIEW_DEFINITION
- SQL_FUNCTION
- AL_DB_OBJECTS
- AL_OBJECT_NAME
- AL_OBJECT_TYPE
- AL_OBJECT_USAGE
- AL_OBJECT_USAGE_LOG
- CREATE_VIEW_SQL
- Constructor Details
- Method Details
- java.lang.Object
- com.anylogic.engine.database.ModelDBConnectivity
- Direct Known Subclasses:
ModelDatabase
@AnyLogicInternalAPI public abstract class ModelDBConnectivity extends Object
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
Base class for built-in model database connectivity.
it may be removed/renamed in future.
Base class for built-in model database connectivity.
- Author:
- AnyLogic North America, LLC https://anylogic.com
Modifier and Type | Field | Description |
---|---|---|
static final String | AL_DB_OBJECTS | |
static final String | AL_ID_COLUMN_NAME | |
static final String | AL_LOG_TYPE_TABLE | |
static final String | AL_LOG_TYPE_VIEW | |
static final String | AL_OBJECT_NAME | |
static final String | AL_OBJECT_TYPE | |
static final String | AL_OBJECT_USAGE | |
static final String | AL_OBJECT_USAGE_LOG | |
static final String | AL_SELECTED_LOG_OBJECT_NAME | |
static final String | AL_SELECTED_LOG_OBJECT_TYPE | |
static final String | AL_SELECTED_LOG_OBJECTS | |
static final String | AL_VIEW_DEFINITION | |
static final String | AL_VIEW_NAME | |
static final String | AL_VIEWS_TABLE_NAME | |
static final String | CREATE_VIEW_SQL | |
static final String | CURRENT_VERSION | |
static final String | DATABASE_DB_PATH | |
static final String | DATABASE_DIRECTORY | |
static final String | DROP_SQL_OBJECT | |
static final String | LOG_OBJECT_SUFFIX | |
static final String | PUBLIC_SCHEMA_NAME | |
static final String | SQL_FUNCTION | |
static final String | UNIQUE_AUTOINC_COLUMN_NAME |
Deprecated.
|
Constructor | Description |
---|---|
ModelDBConnectivity() |
Modifier and Type | Method | Description |
---|---|---|
void | disconnect() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
final Connection | getConnection() | |
static String | getCreateTableSQL |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
com.querydsl.sql.Configuration | getDSLConfiguration() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
DatabaseLogStatements | getLogStatements() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
QuerySupport | getQuerySupport() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
ModelDBConfiguration | initConfiguration() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
void | setConfiguration |
There are 2 ways to define configuration:
Call
setConfiguration(ModelDBConfiguration) once before using getConnection()
Override initConfiguration() and it will be lazily invoked during getConnection()
|
@AnyLogicInternalAPI public static final String CURRENT_VERSION
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String DATABASE_DIRECTORY
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String DATABASE_DB_PATH
@AnyLogicInternalAPI public static final String PUBLIC_SCHEMA_NAME
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String DROP_SQL_OBJECT
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String LOG_OBJECT_SUFFIX
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_ID_COLUMN_NAME
- See Also:
- Constant Field Values
@Deprecated(since="8.9.x") @AnyLogicInternalAPI public static final String UNIQUE_AUTOINC_COLUMN_NAME
Deprecated.
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_SELECTED_LOG_OBJECTS
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_SELECTED_LOG_OBJECT_NAME
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_SELECTED_LOG_OBJECT_TYPE
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_LOG_TYPE_TABLE
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_LOG_TYPE_VIEW
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_VIEWS_TABLE_NAME
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_VIEW_NAME
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_VIEW_DEFINITION
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String SQL_FUNCTION
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_DB_OBJECTS
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_OBJECT_NAME
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_OBJECT_TYPE
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_OBJECT_USAGE
- See Also:
- Constant Field Values
@AnyLogicInternalAPI public static final String AL_OBJECT_USAGE_LOG
- See Also:
- Constant Field Values
public static final String CREATE_VIEW_SQL
- See Also:
- Constant Field Values
public ModelDBConnectivity()
@AnyLogicInternalAPI public com.querydsl.sql.Configuration getDSLConfiguration()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
@AnyLogicInternalAPI public final Connection getConnection()
@AnyLogicInternalAPI public DatabaseLogStatements getLogStatements()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
@AnyLogicInternalAPI public void disconnect()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
@AnyLogicInternalAPI public ModelDBConfiguration initConfiguration()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Returns:
- default implementation does nothing and returns
null
- See Also:
@AnyLogicInternalAPI public void setConfiguration(ModelDBConfiguration configuration)
There are 2 ways to define configuration:
- Call
setConfiguration(ModelDBConfiguration)
once before usinggetConnection()
- Override
initConfiguration()
and it will be lazily invoked duringgetConnection()
- Parameters:
configuration
-
@AnyLogicInternalAPI public static String getCreateTableSQL(String tableName, String tableContent, boolean cached)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
@AnyLogicInternalAPI public QuerySupport getQuerySupport()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.