public class PdbProperties extends Properties implements Cloneable<PdbProperties>
Modifier and Type | Field and Description |
---|---|
static String |
ALLOW_COLUMN_DROP
Property to allow column drops on entity updates.
|
static String |
BLOB_BUFFER_SIZE
The blob buffer size property
|
static String |
DRIVER
The database driver.
|
static String |
ENCRYPTED_PASSWORD
The property for using encrypted passwords.
|
static String |
ENCRYPTED_USERNAME
The property for using encrypted usernames.
|
static String |
ENGINE
The engine property.
|
static String |
FETCH_SIZE
Property that indicates the fetch size for queries.
|
static String |
ISOLATION_LEVEL
The default isolation level.
|
static String |
JDBC
The JDBC property name.
|
static String |
MAX_BLOB_SIZE
The maximum blob size property
|
static String |
MAX_IDENTIFIER_SIZE
The maximum identifier size property
|
static String |
MAX_NUMBER_OF_RETRIES
The maximum number of retries.
|
static String |
MAXIMUM_TIME_BATCH_SHUTDOWN
Property that indicates how much time to wait for a batch to shutdown.
|
static String |
PASSWORD
The PASSWORD property name.
|
static String |
RECONNECT_ON_LOST
The property of reconnection.
|
static String |
RETRY_INTERVAL
The retry interval.
|
static String |
SCHEMA
Database schema property name.
|
static String |
SCHEMA_POLICY
Schema policy property name.
|
static String |
SECRET_LOCATION
The location of the private key for passwords.
|
static String |
TRANSLATOR
The translator.
|
static String |
USERNAME
The USERNAME property name.
|
static String |
VARCHAR_SIZE
VARCHAR size property name.
|
defaults
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(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.
|
String |
getDriver()
Gets the driver property.
|
String |
getEngine()
Gets the engine.
|
int |
getFetchSize()
Gets the fetch size.
|
int |
getIsolationLevel()
Gets the isolation level.
|
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.
|
String |
getPassword()
Gets the password.
|
long |
getRetryInterval()
Gets the retry interval.
|
String |
getSchema()
Gets the database schema.
|
String |
getTranslator()
Gets the translator class.
|
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(Properties properties)
Merges properties with the existing ones.
|
void |
setProperty(String key,
Object o)
Adds a property object by converting it to string.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
public static final String JDBC
public static final String USERNAME
public static final String PASSWORD
public static final String VARCHAR_SIZE
public static final String SCHEMA_POLICY
public static final String ENGINE
public static final String TRANSLATOR
public static final String SCHEMA
public static final String MAX_IDENTIFIER_SIZE
public static final String MAX_BLOB_SIZE
public static final String BLOB_BUFFER_SIZE
public static final String MAX_NUMBER_OF_RETRIES
public static final String RETRY_INTERVAL
public static final String ISOLATION_LEVEL
public static final String DRIVER
public static final String RECONNECT_ON_LOST
public static final String ENCRYPTED_PASSWORD
public static final String SECRET_LOCATION
public static final String ENCRYPTED_USERNAME
public static final String ALLOW_COLUMN_DROP
public static final String FETCH_SIZE
public static final String MAXIMUM_TIME_BATCH_SHUTDOWN
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(Properties properties, boolean useDefaults)
properties
- The properties to merge.useDefaults
- true
if default properties are to be set, false
otherwise.public void setProperty(String key, Object o)
key
- The key.o
- The object to add.public final void merge(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 int getIsolationLevel()
public String getJdbc()
public String getUsername()
public String getPassword()
public String getEngine()
public String getTranslator()
public 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()
Cloneable
public String getDriver()
Copyright © 2014 Feedzai. All Rights Reserved.