public interface Layer
Modifier and Type | Interface and Description |
---|---|
static class |
Layer.TransactionIsolationLevel
Isolation level, see
Connection.setTransactionIsolation(int) . |
Modifier and Type | Field and Description |
---|---|
static int |
DEF_MAX_POOL_SIZE
Default maximum pool size.
|
static int |
DEF_MAX_STRING_LENGTH
Default maximum length for strings.
|
static int |
DEF_MIN_POOL_SIZE
Default minimum pool size.
|
static long |
DEF_POOL_CHECK_INTERVAL
Default check interval for pool access.
|
static long |
DEF_POOL_TIMEOUT
Default timeout for pool access.
|
static String |
PROP_CATALOG
Property name for storing the JDBC catalog name.
|
static String |
PROP_CHECK_STATEMENT
Property name for storing the check statement.
|
static String |
PROP_CONNECTION_TIMEOUT
Property name for storing the timout for connection response.
|
static String |
PROP_CREATE_PAUSE_ON_ERROR
Property name for storing the time to pause before retry when a connection error occurred.
|
static String |
PROP_CREATE_RETRY_ON_ERROR
Property name for storing the number of retries when a connection error occurred.
|
static String |
PROP_DRIVER
Property name for storing the JDBC driver.
|
static String |
PROP_FETCH_CONNECTION_TIMEOUT
Maximum time to wait on a connection becoming available.
|
static String |
PROP_ISOLATION
Property for transaction isolation, supported values are READ_COMMITTED, REPEATABLE_READ, and SERIALIZABLE.
|
static String |
PROP_JNDI
Property name for storing the JDBC JNDI definition.
|
static String |
PROP_LAYERCLASS
Property name for storing the layer class.
|
static String |
PROP_MAX_POOL_SIZE
Property name for storing the maximum pool size.
|
static String |
PROP_MAX_STRING_LENGTH
Property name for storing the maximum length for strings.
|
static String |
PROP_MIN_POOL_SIZE
Property name for storing the minimum pool size.
|
static String |
PROP_PASSWORD
Property name for storing the user's password.
|
static String |
PROP_POOL_CHECK_INTERVAL
Property name for storing the interval in which to check the pool constraints.
|
static String |
PROP_POOL_TIMEOUT
Property name for storing the timeout for pool access.
|
static String |
PROP_SCHEMA
Property name for storing the JDBC schema name.
|
static String |
PROP_URL
Property name for storing the JDBC URL.
|
static String |
PROP_USER
Property name for storing the user.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
convertConfiguration(ConnectionConfiguration config)
Converts the given configuration to a map of properties.
|
ConnectionConfiguration |
convertConfiguration(Map<String,String> properties)
Converts the given properties toa configuration object.
|
de.espirit.or.CounterGenerator |
createIdGenerator(String schemaName,
boolean useLowerCase,
de.espirit.or.ConnectionManager connectionManager)
Create a new id generator for this layer.
|
de.espirit.or.SchemaSynchronizer |
createSchemaSynchronizer()
Creates a schema synchronizer.
|
CaseMode |
getCaseMode()
Provides the mode for letter case handling.
|
CaseMode |
getCaseModeForDbName()
Case mode for database name.
|
String |
getCatalog()
Return the catalog (database) assigned with this layer.
|
Map<String,String> |
getDefaultParameters(String name)
Return a map of jdbc parameters to default values for this layer based on
name . |
Layer.TransactionIsolationLevel |
getDefaultTransactionIsolationLevel()
Get the default isolation level of this layer.
|
String |
getId()
Provides the ID of the layer.
|
int |
getJdbcTypeCode(de.espirit.or.schema.Column column)
Provides the JDBC defined type code for the given column type.
|
String |
getProperty(String name)
Provides the property value stored with the given name.
|
String |
getSchema()
Return the database schema assigned with this Multiproject-Layer layer.
|
de.espirit.or.SQLBuilder |
getSQLBuilder()
Provides a builder for SQL requests.
|
char |
getStringDelimiter()
The character to delimit string constants in sql expressions.
|
void |
init(Map<String,String> props)
Initializes the layer with the given properties.
|
String |
testLayerParameters(ConnectionConfiguration config,
ClassLoader classLoader)
Tests the given configuration for this layer.
|
static final String PROP_LAYERCLASS
static final String PROP_USER
static final String PROP_PASSWORD
static final String PROP_CHECK_STATEMENT
static final String PROP_MIN_POOL_SIZE
static final String PROP_MAX_POOL_SIZE
static final String PROP_POOL_CHECK_INTERVAL
static final String PROP_POOL_TIMEOUT
static final String PROP_CONNECTION_TIMEOUT
static final String PROP_DRIVER
static final String PROP_SCHEMA
static final String PROP_CREATE_RETRY_ON_ERROR
static final String PROP_CREATE_PAUSE_ON_ERROR
static final String PROP_FETCH_CONNECTION_TIMEOUT
static final String PROP_URL
static final String PROP_JNDI
static final String PROP_MAX_STRING_LENGTH
static final String PROP_CATALOG
static final int DEF_MAX_STRING_LENGTH
static final int DEF_MAX_POOL_SIZE
static final int DEF_MIN_POOL_SIZE
static final long DEF_POOL_CHECK_INTERVAL
static final long DEF_POOL_TIMEOUT
static final String PROP_ISOLATION
String getId()
void init(Map<String,String> props)
props
- Some properties.de.espirit.or.SchemaSynchronizer createSchemaSynchronizer()
de.espirit.or.SQLBuilder getSQLBuilder()
String getCatalog()
String getSchema()
@NotNull CaseMode getCaseMode()
@NotNull CaseMode getCaseModeForDbName()
de.espirit.or.CounterGenerator createIdGenerator(String schemaName, boolean useLowerCase, de.espirit.or.ConnectionManager connectionManager)
Map<String,String> getDefaultParameters(@NotNull String name)
name
.name
- the name of this layer instance.@Nullable String testLayerParameters(ConnectionConfiguration config, ClassLoader classLoader)
config
- The configuration.classLoader
- A class loader.null
.Map<String,String> convertConfiguration(ConnectionConfiguration config)
config
- The configuration.ConnectionConfiguration convertConfiguration(Map<String,String> properties)
properties
- A map of properties.int getJdbcTypeCode(de.espirit.or.schema.Column column)
column
- The column type.String getProperty(String name)
null
.char getStringDelimiter()
'
.@NotNull Layer.TransactionIsolationLevel getDefaultTransactionIsolationLevel()
null
).Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210