AnyLogic
Expand
Font size
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.
Author:
AnyLogic North America, LLC https://anylogic.com

Field Summary

Modifier and TypeFieldDescription
static final StringAL_DB_OBJECTS 
static final StringAL_ID_COLUMN_NAME 
static final StringAL_LOG_TYPE_TABLE 
static final StringAL_LOG_TYPE_VIEW 
static final StringAL_OBJECT_NAME 
static final StringAL_OBJECT_TYPE 
static final StringAL_OBJECT_USAGE 
static final StringAL_OBJECT_USAGE_LOG 
static final StringAL_SELECTED_LOG_OBJECT_NAME 
static final StringAL_SELECTED_LOG_OBJECT_TYPE 
static final StringAL_SELECTED_LOG_OBJECTS 
static final StringAL_VIEW_DEFINITION 
static final StringAL_VIEW_NAME 
static final StringAL_VIEWS_TABLE_NAME 
static final StringCREATE_VIEW_SQL 
static final StringCURRENT_VERSION 
static final StringDATABASE_DB_PATH 
static final StringDATABASE_DIRECTORY 
static final StringDROP_SQL_OBJECT 
static final StringLOG_OBJECT_SUFFIX 
static final StringPUBLIC_SCHEMA_NAME 
static final StringSQL_FUNCTION 
static final StringUNIQUE_AUTOINC_COLUMN_NAME
Deprecated.

Constructor Summary

ConstructorDescription
ModelDBConnectivity() 

Method Summary

Modifier and TypeMethodDescription
voiddisconnect()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
final ConnectiongetConnection() 
static StringgetCreateTableSQL(String tableName, String tableContent, boolean cached)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
com.querydsl.sql.ConfigurationgetDSLConfiguration()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
DatabaseLogStatementsgetLogStatements()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
QuerySupportgetQuerySupport()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
ModelDBConfigurationinitConfiguration()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
voidsetConfiguration(ModelDBConfiguration configuration)
There are 2 ways to define configuration: Call setConfiguration(ModelDBConfiguration) once before using getConnection() Override initConfiguration() and it will be lazily invoked during getConnection()

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

CURRENT_VERSION

@AnyLogicInternalAPI
public static final String CURRENT_VERSION
See Also:
Constant Field Values

DATABASE_DIRECTORY

@AnyLogicInternalAPI
public static final String DATABASE_DIRECTORY
See Also:
Constant Field Values

DATABASE_DB_PATH

@AnyLogicInternalAPI
public static final String DATABASE_DB_PATH

PUBLIC_SCHEMA_NAME

@AnyLogicInternalAPI
public static final String PUBLIC_SCHEMA_NAME
See Also:
Constant Field Values

DROP_SQL_OBJECT

@AnyLogicInternalAPI
public static final String DROP_SQL_OBJECT
See Also:
Constant Field Values

LOG_OBJECT_SUFFIX

@AnyLogicInternalAPI
public static final String LOG_OBJECT_SUFFIX
See Also:
Constant Field Values

AL_ID_COLUMN_NAME

@AnyLogicInternalAPI
public static final String AL_ID_COLUMN_NAME
See Also:
Constant Field Values

UNIQUE_AUTOINC_COLUMN_NAME

@Deprecated(since="8.9.x")
@AnyLogicInternalAPI
public static final String UNIQUE_AUTOINC_COLUMN_NAME
Deprecated.
See Also:
Constant Field Values

AL_SELECTED_LOG_OBJECTS

@AnyLogicInternalAPI
public static final String AL_SELECTED_LOG_OBJECTS
See Also:
Constant Field Values

AL_SELECTED_LOG_OBJECT_NAME

@AnyLogicInternalAPI
public static final String AL_SELECTED_LOG_OBJECT_NAME
See Also:
Constant Field Values

AL_SELECTED_LOG_OBJECT_TYPE

@AnyLogicInternalAPI
public static final String AL_SELECTED_LOG_OBJECT_TYPE
See Also:
Constant Field Values

AL_LOG_TYPE_TABLE

@AnyLogicInternalAPI
public static final String AL_LOG_TYPE_TABLE
See Also:
Constant Field Values

AL_LOG_TYPE_VIEW

@AnyLogicInternalAPI
public static final String AL_LOG_TYPE_VIEW
See Also:
Constant Field Values

AL_VIEWS_TABLE_NAME

@AnyLogicInternalAPI
public static final String AL_VIEWS_TABLE_NAME
See Also:
Constant Field Values

AL_VIEW_NAME

@AnyLogicInternalAPI
public static final String AL_VIEW_NAME
See Also:
Constant Field Values

AL_VIEW_DEFINITION

@AnyLogicInternalAPI
public static final String AL_VIEW_DEFINITION
See Also:
Constant Field Values

SQL_FUNCTION

@AnyLogicInternalAPI
public static final String SQL_FUNCTION
See Also:
Constant Field Values

AL_DB_OBJECTS

@AnyLogicInternalAPI
public static final String AL_DB_OBJECTS
See Also:
Constant Field Values

AL_OBJECT_NAME

@AnyLogicInternalAPI
public static final String AL_OBJECT_NAME
See Also:
Constant Field Values

AL_OBJECT_TYPE

@AnyLogicInternalAPI
public static final String AL_OBJECT_TYPE
See Also:
Constant Field Values

AL_OBJECT_USAGE

@AnyLogicInternalAPI
public static final String AL_OBJECT_USAGE
See Also:
Constant Field Values

AL_OBJECT_USAGE_LOG

@AnyLogicInternalAPI
public static final String AL_OBJECT_USAGE_LOG
See Also:
Constant Field Values

CREATE_VIEW_SQL

public static final String CREATE_VIEW_SQL
See Also:
Constant Field Values

Constructor Details

ModelDBConnectivity

public ModelDBConnectivity()

Method Details

getDSLConfiguration

@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.

getConnection

@AnyLogicInternalAPI
public final Connection getConnection()

getLogStatements

@AnyLogicInternalAPI
public DatabaseLogStatements getLogStatements()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

disconnect

@AnyLogicInternalAPI
public void disconnect()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

initConfiguration

@AnyLogicInternalAPI
public ModelDBConfiguration initConfiguration()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Returns:
default implementation does nothing and returns null
See Also:

setConfiguration

@AnyLogicInternalAPI
public void setConfiguration(ModelDBConfiguration configuration)
There are 2 ways to define configuration:
Parameters:
configuration -

getCreateTableSQL

@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.

getQuerySupport

@AnyLogicInternalAPI
public QuerySupport getQuerySupport()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.