Class JKConstants.Database

java.lang.Object
com.jk.core.config.JKConstants.Database
Enclosing class:
JKConstants

public static class JKConstants.Database extends Object
This class provides constants related to Database.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Field Details

    • PROPERTY_QUERY_LIMIT

      public static final String PROPERTY_QUERY_LIMIT
      Represents the configuration property for specifying the query limit.
      See Also:
    • DEFAULT_LIMIT

      public static final int DEFAULT_LIMIT
      Represents the default query limit.
      See Also:
    • DEFAULT_POOL_INITIAL_SIZE

      public static final String DEFAULT_POOL_INITIAL_SIZE
      Represents the default initial size of the default pool.
      See Also:
    • DEFAULT_POOL_MAX_SIZE

      public static final String DEFAULT_POOL_MAX_SIZE
      Represents the default maximum size of a default pool.
      See Also:
    • DEFAULT_DB_DRIVER

      public static final String DEFAULT_DB_DRIVER
      Represents the default database driver class.
      See Also:
    • DEFAULT_DB_URL

      public static final String DEFAULT_DB_URL
      Represents the default database URL.
      See Also:
    • DEFAULT_DB_USER

      public static final String DEFAULT_DB_USER
      Represents the default database user.
      See Also:
    • DEFAULT_DB_PASSWORD

      public static final String DEFAULT_DB_PASSWORD
      Represents the default database password.
      See Also:
    • DEFAULT_PERSISINCE_UNIT_NAME

      public static final String DEFAULT_PERSISINCE_UNIT_NAME
      Represents the default persistence unit name.
      See Also:
    • PROPERTY_DB_ENTITY_PACKAGES_NEW

      public static final String PROPERTY_DB_ENTITY_PACKAGES_NEW
      Represents the configuration property for specifying the packages containing JPA entity classes.
      See Also:
    • DEFAULT_DB_ENTITY_PACKAGES

      public static final String DEFAULT_DB_ENTITY_PACKAGES
      Represents the default packages containing database entity classes.
      See Also:
    • DB_MAX_CACHE_SIZE

      public static final String DB_MAX_CACHE_SIZE
      Represents the configuration property for specifying the maximum cache size for database operations.
      See Also:
    • DB_MAX_CACHE_SIZE_DEFAULT

      public static final String DB_MAX_CACHE_SIZE_DEFAULT
      Represents the default value for the maximum cache size for database operations.
      See Also:
    • DEFAULT_QUERY_ROW_COUNT

      public static final String DEFAULT_QUERY_ROW_COUNT
      Represents the default number of rows for query results.
      See Also:
    • QUERY_ROWS_COUNT

      public static final String QUERY_ROWS_COUNT
      Represents the configuration property for specifying the maximum number of rows in query results.
      See Also:
    • DEFAULT_PRIMARY_KEY_FIELD_NAME

      public static final String DEFAULT_PRIMARY_KEY_FIELD_NAME
      Represents the default field name for primary keys in database entities.
      See Also:
    • DEFAULT_DATASOURCE_TYPE

      public static final String DEFAULT_DATASOURCE_TYPE
      Represents the default data source type for database operations.
      See Also:
    • SET_CLIENT_INFO

      public static final String SET_CLIENT_INFO
      Represents the configuration property for specifying the client information on a database connection.
      See Also:
    • CREATE_DEFAULT_DATASOURCE

      public static final String CREATE_DEFAULT_DATASOURCE
      Represents the configuration property for specifying the creation of a default data source for database operations.
      See Also:
    • ORM_RESULTS_MAX

      public static final String ORM_RESULTS_MAX
      Represents the configuration property for specifying the maximum number of results in an ORM query.
      See Also:
    • QUERY_EXEC_ACCEPTED_TIME

      public static final String QUERY_EXEC_ACCEPTED_TIME
      Represents the configuration property for specifying the accepted execution time for a query.
      See Also:
    • QUERY_EXEC_ACCEPTED_TIME_DEFAULT

      public static final int QUERY_EXEC_ACCEPTED_TIME_DEFAULT
      Represents the default accepted execution time in milliseconds for a query.
      See Also:
    • QUERY_EXEC_MAX_TIME

      public static final String QUERY_EXEC_MAX_TIME
      Represents the configuration property for specifying the maximum execution time for a query.
      See Also:
    • QUERY_EXEC_MAX_TIME_DEFAULT

      public static final int QUERY_EXEC_MAX_TIME_DEFAULT
      Represents the default maximum execution time in milliseconds for a query.
      See Also:
    • QUERY_LOG_BUFFER_SIZE

      public static final String QUERY_LOG_BUFFER_SIZE
      Represents the configuration property for specifying the buffer size for query logging. Used to buffer queries calls count to database.
      See Also:
    • QUERY_LOG_BUFFER_SIZE_DEFAULT

      public static final int QUERY_LOG_BUFFER_SIZE_DEFAULT
      Represents the default buffer size for query logging.
      See Also:
  • Constructor Details

    • Database

      public Database()