Class PdbProperties

    • Field Detail

      • MAX_IDENTIFIER_SIZE

        public static final String MAX_IDENTIFIER_SIZE
        The maximum identifier size property
        See Also:
        Constant Field Values
      • MAX_NUMBER_OF_RETRIES

        public static final String MAX_NUMBER_OF_RETRIES
        The maximum number of retries.
        See Also:
        Constant Field Values
      • ENCRYPTED_PASSWORD

        public static final String ENCRYPTED_PASSWORD
        The property for using encrypted passwords.
        See Also:
        Constant Field Values
      • SECRET_LOCATION

        public static final String SECRET_LOCATION
        The location of the private key for passwords.
        See Also:
        Constant Field Values
      • ENCRYPTED_USERNAME

        public static final String ENCRYPTED_USERNAME
        The property for using encrypted usernames.
        See Also:
        Constant Field Values
      • ALLOW_COLUMN_DROP

        public static final String ALLOW_COLUMN_DROP
        Property to allow column drops on entity updates.
        See Also:
        Constant Field Values
      • FETCH_SIZE

        public static final String FETCH_SIZE
        Property that indicates the fetch size for queries.
        See Also:
        Constant Field Values
      • MAXIMUM_TIME_BATCH_SHUTDOWN

        public static final String MAXIMUM_TIME_BATCH_SHUTDOWN
        Property that indicates how much time to wait for a batch to shutdown.
        See Also:
        Constant Field Values
      • COMPRESS_LOBS

        public static final String COMPRESS_LOBS
        Property that indicates the lobs should be compressed. This depends on the database implementation.
        See Also:
        Constant Field Values
      • DISABLE_LOB_CACHING

        public static final String DISABLE_LOB_CACHING
        Property that indicates if LOB data caching should be disabled, to avoid consuming too much memory and/or disk space in the DB server. This depends on the database implementation.
        See Also:
        Constant Field Values
      • LOGIN_TIMEOUT

        public static final String LOGIN_TIMEOUT
        Property that indicates the waiting time for the database connection to be established (in seconds). In some drivers this may refer only to the login timeout, in others it may refer to the total time to wait for getting a connection in addition to logging in.
        See Also:
        Constant Field Values
      • SOCKET_TIMEOUT

        public static final String SOCKET_TIMEOUT
        Property that indicates the time, in seconds, of socket timeout.
        See Also:
        Constant Field Values
      • CHECK_CONNECTION_TIMEOUT

        public static final String CHECK_CONNECTION_TIMEOUT
        Property that indicates the maximum time taken when checking if a connection is available.
        Since:
        2.7.2
        See Also:
        Constant Field Values
    • Constructor Detail

      • PdbProperties

        public PdbProperties()
        Creates a new instance of an empty PdbProperties.
      • PdbProperties

        public PdbProperties​(boolean useDefaults)
        Creates a new instance of PdbProperties with the default configuration.
        Parameters:
        useDefaults - true if default properties are to be set, false otherwise.
      • PdbProperties

        public PdbProperties​(Properties properties,
                             boolean useDefaults)
        Merges the given properties with the default configuration.
        Parameters:
        properties - The properties to merge.
        useDefaults - true if default properties are to be set, false otherwise.
    • Method Detail

      • setProperty

        public void setProperty​(String key,
                                Object o)
        Adds a property object by converting it to string.
        Parameters:
        key - The key.
        o - The object to add.
      • merge

        public final void merge​(Properties properties)
        Merges properties with the existing ones.
        Parameters:
        properties - The properties to merge.
      • isTranslatorSet

        public boolean isTranslatorSet()
        Checks if a provided translator class is set.
        Returns:
        true if a provided translator class is set, false otherwise.
      • isEncryptedUsername

        public boolean isEncryptedUsername()
        Checks if username encryption is set.
        Returns:
        true if username encryption is set, false otherwise.
      • isEncryptedPassword

        public boolean isEncryptedPassword()
        Checks if password encryption is set.
        Returns:
        true if password encryption is set, false otherwise.
      • getFetchSize

        public int getFetchSize()
        Gets the fetch size.
        Returns:
        the fetch size.
      • getMaximumAwaitTimeBatchShutdown

        public long getMaximumAwaitTimeBatchShutdown()
        Gets the maximum await time for batches to shutdown.
        Returns:
        The maximum await time for batches to shutdown.
      • isSchemaPolicyCreateDrop

        public boolean isSchemaPolicyCreateDrop()
        Checks if schema policy is CREATE DROP.
        Returns:
        true if the schema is create-drop, false otherwise.
      • isSchemaPolicyDropCreate

        public boolean isSchemaPolicyDropCreate()
        Checks if schema policy is DROP CREATE.
        Returns:
        true if the schema is drop-create, false otherwise.
      • isSchemaPolicyCreate

        public boolean isSchemaPolicyCreate()
        Checks if the schema policy is CREATE.
        Returns:
        true if the schema is create, false otherwise.
      • isSchemaPolicyNone

        public boolean isSchemaPolicyNone()
        Checks if schema policy is NONE.
        Returns:
        true if the schema is none, false otherwise.
      • getMaxIdentifierSize

        public int getMaxIdentifierSize()
        Gets the maximum identifier size.
        Returns:
        Gets the maximum identifier size.
      • getMaxBlobSize

        public int getMaxBlobSize()
        Gets the maximum blob size.
        Returns:
        Gets the maximum blob size.
      • isMaxBlobSizeSet

        public boolean isMaxBlobSizeSet()
        Checks if the getMaxBlobSize() is set.
        Returns:
        true if the maximum blob size is set, false otherwise.
      • getBlobBufferSize

        public int getBlobBufferSize()
        Gets the blob buffer size.
        Returns:
        The blob buffer size for Object -> ByteArray conversions.
      • getMaxRetries

        public int getMaxRetries()
        Gets the maximum number of retries.
        Returns:
        Maximum number of retries.
      • getRetryInterval

        public long getRetryInterval()
        Gets the retry interval.
        Returns:
        The retry interval.
      • isReconnectOnLost

        public boolean isReconnectOnLost()
        Checks if reconnect on connection lost is set.
        Returns:
        true if the connection is uses reconnect on lost, false otherwise.
      • shouldCompressLobs

        public boolean shouldCompressLobs()
        Checks if LOBS columns should be compressed.
        Returns:
        true if LOBS should be compressed, false otherwise.
      • isLobCachingDisabled

        public boolean isLobCachingDisabled()
        Checks if LOB data caching should be disabled.
        Returns:
        true if LOB caching should be disabled, false otherwise.
      • getIsolationLevel

        public int getIsolationLevel()
        Gets the isolation level.
        Returns:
        The isolation level.
      • getJdbc

        public String getJdbc()
        Gets the JDBC URL.
        Returns:
        The JDBC URL.
      • getUsername

        public String getUsername()
        Gets the username.
        Returns:
        The username.
      • getPassword

        public String getPassword()
        Gets the password.
        Returns:
        The password.
      • getEngine

        public String getEngine()
        Gets the engine.
        Returns:
        The engine.
      • getTranslator

        public String getTranslator()
        Gets the translator class.
        Returns:
        The translator class.
      • getSchema

        public String getSchema()
        Gets the database schema.
        Returns:
        The database schema.
      • getLoginTimeout

        public int getLoginTimeout()
        Gets the socket login timeout (in seconds).
        Returns:
        The socket login timeout.
      • getSocketTimeout

        public int getSocketTimeout()
        Gets the socket connection timeout (in seconds).
        Returns:
        The socket connection timeout.
      • getSelectQueryTimeout

        public int getSelectQueryTimeout()
        Gets the query select timeout (in seconds).
        Returns:
        The query select timeout.
      • getCheckConnectionTimeout

        public int getCheckConnectionTimeout()
        Gets the check connection timeout (in seconds).
        Returns:
        The check connection timeout.
        Since:
        2.7.2
      • isDriverSet

        public boolean isDriverSet()
        Checks if the driver property is set.
        Returns:
        true if the driver property is set, false otherwise.
      • isSchemaSet

        public boolean isSchemaSet()
        Checks if the the schema is set.
        Returns:
        true if the schema is set, false otherwise.
      • allowColumnDrop

        public boolean allowColumnDrop()
        Checks if column drop is allowed when the schema changes.
        Returns:
        true if the column drop is allowed, false otherwise.
      • getDriver

        public String getDriver()
        Gets the driver property.
        Returns:
        The driver property.