public final class Celesta extends Object implements ICelesta
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Stops working of Celesta.
|
static Celesta |
createInstance()
Creates Celesta instance with properties specified in celesta.properties
file.
|
static Celesta |
createInstance(Properties properties)
Creates Celesta instance with the specified properties and internal connection pool.
|
static Celesta |
createInstance(Properties properties,
ConnectionPool connectionPool)
Creates Celesta instance with specified properties and ConnectionPool.
|
static Celesta |
createInstance(Properties properties,
DataSource dataSource)
Creates Celesta instance with specified properties and
DataSource. |
ConnectionPool |
getConnectionPool() |
ru.curs.celesta.dbutils.adaptors.DBAdaptor |
getDBAdaptor() |
ILoggingManager |
getLoggingManager() |
IPermissionManager |
getPermissionManager() |
IProfiler |
getProfiler() |
Score |
getScore() |
Properties |
getSetupProperties() |
TriggerDispatcher |
getTriggerDispatcher() |
boolean |
isProfilemode()
Returns if profiling mode is set (whether the time of method calls
is written to 'calllog' table).
|
static Properties |
loadPropertiesDynamically()
Reads and returns properties from celesta.properties file.
|
boolean |
nullsFirst()
Returns the behavior
NULLS FIRST of current database. |
void |
setProfilemode(boolean profilemode)
Sets profiling mode.
|
public static final String VERSION
CelestaVersionpublic Properties getSetupProperties()
getSetupProperties in interface ICelestapublic IPermissionManager getPermissionManager()
getPermissionManager in interface ICelestapublic ILoggingManager getLoggingManager()
getLoggingManager in interface ICelestapublic ConnectionPool getConnectionPool()
getConnectionPool in interface ICelestapublic IProfiler getProfiler()
getProfiler in interface ICelestapublic ru.curs.celesta.dbutils.adaptors.DBAdaptor getDBAdaptor()
getDBAdaptor in interface ICelestapublic TriggerDispatcher getTriggerDispatcher()
getTriggerDispatcher in interface ICelestapublic void close()
close in interface AutoCloseablepublic static Celesta createInstance(Properties properties, DataSource dataSource)
DataSource.properties - Celesta initialization properties. All the properties regarding db connection will be ignored,
but rdbms.connection.url is still required in order for
Celesta to define the database type (you may pass only the
prefix, e. g. jdbc:postgresql)dataSource - Provided data source.public static Celesta createInstance(Properties properties, ConnectionPool connectionPool)
properties - Celesta initialization properties. All the properties regarding db connection
will be ignored, but rdbms.connection.url is still required in order for
Celesta to define the database type (you may pass only the
prefix, e. g. jdbc:postgresql)connectionPool - Provided connection pool (either DatasourceConnectionPool or
InternalConnectionPool).public static Celesta createInstance(Properties properties)
properties - Celesta initialization propertiespublic static Celesta createInstance()
public static Properties loadPropertiesDynamically()
public boolean isProfilemode()
public boolean nullsFirst()
NULLS FIRST of current database.public void setProfilemode(boolean profilemode)
profilemode - profiling modeCopyright © 2023 CURS. All rights reserved.