public class PdbProperties extends java.util.Properties implements Cloneable<PdbProperties>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALLOW_COLUMN_DROP
Property to allow column drops on entity updates.
|
static java.lang.String |
BLOB_BUFFER_SIZE
The blob buffer size property
|
static java.lang.String |
COMPRESS_LOBS
Property that indicates the lobs should be compressed.
|
static java.lang.String |
DRIVER
The database driver.
|
static java.lang.String |
ENCRYPTED_PASSWORD
The property for using encrypted passwords.
|
static java.lang.String |
ENCRYPTED_USERNAME
The property for using encrypted usernames.
|
static java.lang.String |
ENGINE
The engine property.
|
static java.lang.String |
FETCH_SIZE
Property that indicates the fetch size for queries.
|
static java.lang.String |
ISOLATION_LEVEL
The default isolation level.
|
static java.lang.String |
JDBC
The JDBC property name.
|
static java.lang.String |
MAX_BLOB_SIZE
The maximum blob size property
|
static java.lang.String |
MAX_IDENTIFIER_SIZE
The maximum identifier size property
|
static java.lang.String |
MAX_NUMBER_OF_RETRIES
The maximum number of retries.
|
static java.lang.String |
MAXIMUM_TIME_BATCH_SHUTDOWN
Property that indicates how much time to wait for a batch to shutdown.
|
static java.lang.String |
PASSWORD
The PASSWORD property name.
|
static java.lang.String |
RECONNECT_ON_LOST
The property of reconnection.
|
static java.lang.String |
RETRY_INTERVAL
The retry interval.
|
static java.lang.String |
SCHEMA
Database schema property name.
|
static java.lang.String |
SCHEMA_POLICY
Schema policy property name.
|
static java.lang.String |
SECRET_LOCATION
The location of the private key for passwords.
|
static java.lang.String |
TRANSLATOR
The translator.
|
static java.lang.String |
USERNAME
The USERNAME property name.
|
static java.lang.String |
VARCHAR_SIZE
VARCHAR size property name.
|
| Constructor and Description |
|---|
PdbProperties()
Creates a new instance of an empty
PdbProperties. |
PdbProperties(boolean useDefaults)
Creates a new instance of
PdbProperties with the default configuration. |
PdbProperties(java.util.Properties properties,
boolean useDefaults)
Merges the given properties with the default configuration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowColumnDrop()
Checks if column drop is allowed when the schema changes.
|
void |
checkMandatoryProperties()
Checks if the configuration validates for mandatory properties.
|
PdbProperties |
clone()
Clones an object.
|
int |
getBlobBufferSize()
Gets the blob buffer size.
|
java.lang.String |
getDriver()
Gets the driver property.
|
java.lang.String |
getEngine()
Gets the engine.
|
int |
getFetchSize()
Gets the fetch size.
|
int |
getIsolationLevel()
Gets the isolation level.
|
java.lang.String |
getJdbc()
Gets the JDBC URL.
|
int |
getMaxBlobSize()
Gets the maximum blob size.
|
int |
getMaxIdentifierSize()
Gets the maximum identifier size.
|
long |
getMaximumAwaitTimeBatchShutdown()
Gets the maximum await time for batches to shutdown.
|
int |
getMaxRetries()
Gets the maximum number of retries.
|
java.lang.String |
getPassword()
Gets the password.
|
long |
getRetryInterval()
Gets the retry interval.
|
java.lang.String |
getSchema()
Gets the database schema.
|
java.lang.String |
getTranslator()
Gets the translator class.
|
java.lang.String |
getUsername()
Gets the username.
|
boolean |
isDriverSet()
Checks if the driver property is set.
|
boolean |
isEncryptedPassword()
Checks if password encryption is set.
|
boolean |
isEncryptedUsername()
Checks if username encryption is set.
|
boolean |
isMaxBlobSizeSet()
Checks if the
getMaxBlobSize() is set. |
boolean |
isReconnectOnLost()
Checks if reconnect on connection lost is set.
|
boolean |
isSchemaPolicyCreate()
Checks if the schema policy is CREATE.
|
boolean |
isSchemaPolicyCreateDrop()
Checks if schema policy is CREATE DROP.
|
boolean |
isSchemaPolicyDropCreate()
Checks if schema policy is DROP CREATE.
|
boolean |
isSchemaPolicyNone()
Checks if schema policy is NONE.
|
boolean |
isSchemaSet()
Checks if the the schema is set.
|
boolean |
isTranslatorSet()
Checks if a provided translator class is set.
|
void |
merge(java.util.Properties properties)
Merges properties with the existing ones.
|
void |
setProperty(java.lang.String key,
java.lang.Object o)
Adds a property object by converting it to string.
|
boolean |
shouldCompressLobs()
Checks if LOBS columns should be compressed.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic static final java.lang.String JDBC
public static final java.lang.String USERNAME
public static final java.lang.String PASSWORD
public static final java.lang.String VARCHAR_SIZE
public static final java.lang.String SCHEMA_POLICY
public static final java.lang.String ENGINE
public static final java.lang.String TRANSLATOR
public static final java.lang.String SCHEMA
public static final java.lang.String MAX_IDENTIFIER_SIZE
public static final java.lang.String MAX_BLOB_SIZE
public static final java.lang.String BLOB_BUFFER_SIZE
public static final java.lang.String MAX_NUMBER_OF_RETRIES
public static final java.lang.String RETRY_INTERVAL
public static final java.lang.String ISOLATION_LEVEL
public static final java.lang.String DRIVER
public static final java.lang.String RECONNECT_ON_LOST
public static final java.lang.String ENCRYPTED_PASSWORD
public static final java.lang.String SECRET_LOCATION
public static final java.lang.String ENCRYPTED_USERNAME
public static final java.lang.String ALLOW_COLUMN_DROP
public static final java.lang.String FETCH_SIZE
public static final java.lang.String MAXIMUM_TIME_BATCH_SHUTDOWN
public static final java.lang.String COMPRESS_LOBS
public PdbProperties()
PdbProperties.public PdbProperties(boolean useDefaults)
PdbProperties with the default configuration.useDefaults - true if default properties are to be set, false otherwise.public PdbProperties(java.util.Properties properties,
boolean useDefaults)
properties - The properties to merge.useDefaults - true if default properties are to be set, false otherwise.public void setProperty(java.lang.String key,
java.lang.Object o)
key - The key.o - The object to add.public final void merge(java.util.Properties properties)
properties - The properties to merge.public boolean isTranslatorSet()
true if a provided translator class is set, false otherwise.public boolean isEncryptedUsername()
true if username encryption is set, false otherwise.public boolean isEncryptedPassword()
true if password encryption is set, false otherwise.public int getFetchSize()
public long getMaximumAwaitTimeBatchShutdown()
public boolean isSchemaPolicyCreateDrop()
true if the schema is create-drop, false otherwise.public boolean isSchemaPolicyDropCreate()
true if the schema is drop-create, false otherwise.public boolean isSchemaPolicyCreate()
true if the schema is create, false otherwise.public boolean isSchemaPolicyNone()
true if the schema is none, false otherwise.public int getMaxIdentifierSize()
public int getMaxBlobSize()
public boolean isMaxBlobSizeSet()
getMaxBlobSize() is set.true if the maximum blob size is set, false otherwise.public int getBlobBufferSize()
public int getMaxRetries()
public long getRetryInterval()
public boolean isReconnectOnLost()
true if the connection is uses reconnect on lost, false otherwise.public boolean shouldCompressLobs()
true if LOBS should be compressed, false otherwise.public int getIsolationLevel()
public java.lang.String getJdbc()
public java.lang.String getUsername()
public java.lang.String getPassword()
public java.lang.String getEngine()
public java.lang.String getTranslator()
public java.lang.String getSchema()
public boolean isDriverSet()
true if the driver property is set, false otherwise.public boolean isSchemaSet()
true if the schema is set, false otherwise.public boolean allowColumnDrop()
true if the column drop is allowed, false otherwise.public void checkMandatoryProperties()
throws PdbConfigurationException
PdbConfigurationException - If mandatory fields are not set.public PdbProperties clone()
Cloneableclone in class java.util.Hashtable<java.lang.Object,java.lang.Object>public java.lang.String getDriver()
Copyright © 2018 Feedzai. All Rights Reserved.