Class Constants

java.lang.Object
org.tentackle.common.Constants

public class Constants extends Object
Class holding constants for build- and runtime.
Author:
harald
  • Field Details

    • META_INF

      public static final String META_INF
      META-INF directory name.
      See Also:
    • MAPPED_SERVICE_PATH

      public static final String MAPPED_SERVICE_PATH
      the directory for mapped service provider configurations.
      See Also:
    • META_SERVICE_PATH

      public static final String META_SERVICE_PATH
      the directory for meta service provider configurations.
      See Also:
    • DEFAULT_SERVICE_PATH

      public static final String DEFAULT_SERVICE_PATH
      the directory for default service provider configurations.
      See Also:
    • BUNDLE_SERVICE_PATH

      public static final String BUNDLE_SERVICE_PATH
      the directory for resource bundle names.
      See Also:
    • SUPPRESS_WARNINGS_STATEFUL_DOMAIN_LOGIC

      public static final String SUPPRESS_WARNINGS_STATEFUL_DOMAIN_LOGIC
      suppress warnings for suspicious stateful domain logic.
      See Also:
    • NAME_NONE

      public static final String NAME_NONE
      name for "none".
      See Also:
    • NAME_UNKNOWN

      public static final String NAME_UNKNOWN
      unknown name.
      See Also:
    • PROPS_EXTENSION

      public static final String PROPS_EXTENSION
      extension for property files.
      See Also:
    • BACKEND_PROPS

      public static final String BACKEND_PROPS
      name of property file holding the backend properties.
      See Also:
    • BACKEND_URL

      public static final String BACKEND_URL
      property key for the backend URL.
      See Also:
    • BACKEND_DRIVER

      public static final String BACKEND_DRIVER
      explicit driver name and url to load it from <name:url>.
      See Also:
    • BACKEND_TIMEOUT

      public static final String BACKEND_TIMEOUT
      database connection inactivity timeout in minutes.
      See Also:
    • BACKEND_KEEP_ALIVE

      public static final String BACKEND_KEEP_ALIVE
      send a keep alive select every BACKEND_TIMEOUT minutes.
      See Also:
    • BACKEND_SCHEMAS

      public static final String BACKEND_SCHEMAS
      property key for the optional schemas.
      See Also:
    • BACKEND_USER

      public static final String BACKEND_USER
      property key for username.
      See Also:
    • BACKEND_PASSWORD

      public static final String BACKEND_PASSWORD
      property key for the password.
      See Also:
    • BACKEND_AUTOLOGIN

      public static final String BACKEND_AUTOLOGIN
      property key to enable autologin (only for desktop applications).
      See Also:
    • BACKEND_JDBC_URL_INTRO

      public static final String BACKEND_JDBC_URL_INTRO
      intro in URL to denote a JDBC connection.
      See Also:
    • BACKEND_RMI_URL_INTRO

      public static final String BACKEND_RMI_URL_INTRO
      intro in URL to denote a remote connection.
      See Also:
    • BACKEND_JNDI_URL_INTRO

      public static final String BACKEND_JNDI_URL_INTRO
      intro in URL to denote a JNDI connection.
      See Also:
    • BACKEND_INFO

      public static final String BACKEND_INFO
      Optional backend configuration.
      Useful to define extra technical user credentials for the physical connection, to load JDBC-drivers at runtime or to switch between different backends.

      The backend info comes in 3 flavours:

      1. @user or @system: the login dialog allows the user to manage backend parameters and optional drivers through the UI. The settings are stored in the user-preferences for @user and system preferences for @system
      2. @user:backendname or @system:backendname: loads the configuration for the backend with the given name from the user- or system-preferences, respectively
      3. a property file name: loads the settings from the given property file
      If missing, the properties from the BACKEND_PROPS and optional user input are used.
      See Also:
    • BACKEND_INFO_USER

      public static final String BACKEND_INFO_USER
      Value of backendinfo to allow selecting the backend (see Login in fx-rdc) using user preferences.
      If the value is followed by a colon and a name, that name is treated as the BackendConfiguration.
      See Also:
    • BACKEND_INFO_SYSTEM

      public static final String BACKEND_INFO_SYSTEM
      Value of backendinfo to allow selecting the backend (see Login in fx-rdc) using system preferences.
      If the value is followed by a colon and a name, that name is treated as the BackendConfiguration.
      See Also:
    • BACKEND_APPLICATION_NAME

      public static final String BACKEND_APPLICATION_NAME
      Application name.
      By default, the application name is determined from the main class. For testing, however, the application name needs to be set explicitly if backend infos are to be loaded via BACKEND_INFO_USER or BACKEND_INFO_SYSTEM.
      See Also:
    • CN_ID

      public static final String CN_ID
      name of ID column.
      See Also:
    • AN_ID

      public static final String AN_ID
      java name of ID.
      See Also:
    • CN_SERIAL

      public static final String CN_SERIAL
      name of serial column.
      See Also:
    • AN_SERIAL

      public static final String AN_SERIAL
      java name of serial.
      See Also:
    • CN_TABLESERIAL

      public static final String CN_TABLESERIAL
      name of tableserial column.
      See Also:
    • AN_TABLESERIAL

      public static final String AN_TABLESERIAL
      java name of tableserial.
      See Also:
    • CN_CLASSID

      public static final String CN_CLASSID
      name of class-ID column.
      See Also:
    • AN_CLASSID

      public static final String AN_CLASSID
      java name class-ID.
      See Also:
    • CN_ROOTID

      public static final String CN_ROOTID
      name of root-ID column.
      See Also:
    • AN_ROOTID

      public static final String AN_ROOTID
      java name root-ID.
      See Also:
    • CN_ROOTCLASSID

      public static final String CN_ROOTCLASSID
      name of root-class-ID column.
      See Also:
    • AN_ROOTCLASSID

      public static final String AN_ROOTCLASSID
      java name root-class-ID.
      See Also:
    • CN_EDITEDBY

      public static final String CN_EDITEDBY
      the object ID of the user currently editing this object.
      See Also:
    • AN_EDITEDBY

      public static final String AN_EDITEDBY
      java name of the editing user.
      See Also:
    • CN_EDITEDSINCE

      public static final String CN_EDITEDSINCE
      time when editing started.
      See Also:
    • AN_EDITEDSINCE

      public static final String AN_EDITEDSINCE
      java name of time editing started.
      See Also:
    • CN_EDITEDEXPIRY

      public static final String CN_EDITEDEXPIRY
      time when "lock token" will expire.
      See Also:
    • AN_EDITEDEXPIRY

      public static final String AN_EDITEDEXPIRY
      java name of time "lock token" will expire.
      See Also:
    • CN_NORMTEXT

      public static final String CN_NORMTEXT
      column name for the normtext.
      See Also:
    • AN_NORMTEXT

      public static final String AN_NORMTEXT
      java name for the normtext.
      See Also:
    • BIND_MAXCOLS

      public static final String BIND_MAXCOLS
      bind option MAXCOLS = ...
      See Also:
    • BIND_COLS

      public static final String BIND_COLS
      bind option COLS = ...
      See Also:
    • BIND_SCALE

      public static final String BIND_SCALE
      bind option SCALE = ...
      See Also:
    • BIND_UNSIGNED

      public static final String BIND_UNSIGNED
      bind option UNSIGNED.
      See Also:
    • BIND_DIGITS

      public static final String BIND_DIGITS
      bind option digits only.
      See Also:
    • BIND_UC

      public static final String BIND_UC
      bind option uppercase.
      See Also:
    • BIND_LC

      public static final String BIND_LC
      bind option lowercase.
      See Also:
    • BIND_AUTOSELECT

      public static final String BIND_AUTOSELECT
      bind option autoselect field.
      See Also:
    • BIND_UTC

      public static final String BIND_UTC
      bind timestamp with UTC option.
      See Also:
    • BIND_LINES

      public static final String BIND_LINES
      bind option LINES = ...
      See Also:
    • BMONEY_DIGITS

      public static final int BMONEY_DIGITS
      maximum number of significant digits for BMoney.
      See Also:
    • DMONEY_DIGITS

      public static final int DMONEY_DIGITS
      maximum number of significant digits for DMoney.
      See Also:
    • SECOND_MS

      public static final long SECOND_MS
      a second in milliseconds.
      See Also:
    • MINUTE_MS

      public static final long MINUTE_MS
      a minute in milliseconds.
      See Also:
    • HOUR_MS

      public static final long HOUR_MS
      an hour in milliseconds.
      See Also:
    • DAY_MS

      public static final long DAY_MS
      a day in milliseconds.
      See Also:
    • DIGITS

      public static final String DIGITS
      All digits in a string.
      See Also: