Constants.Config

public static final class Config

The Config contains constant values related with properties inside files:

  • datanucleus_data.properties
  • datanucleus_schema.properties
  • motech-mds.properties

Fields

EMPTY_TRASH_JOB

public static final String EMPTY_TRASH_JOB

Constant EMPTY_TRASH_JOB presents a name of job scheduled by scheduler module.

MDS_DEFAULT_GRID_SIZE

public static final String MDS_DEFAULT_GRID_SIZE

The property that specifies default number of records in each data browser grid.

MDS_DELETE_MODE

public static final String MDS_DELETE_MODE

Constant MDS_DELETE_MODE presents what should happen with objects when there are deleted. They can be deleted permanently or moved to the trash.The following values are valid for this property:

  • delete
  • trash

MDS_EMPTY_TRASH

public static final String MDS_EMPTY_TRASH

The boolean property that specifies if the trash should be empty after some time.

See also: .MDS_DELETE_MODE, .MDS_TIME_VALUE, .MDS_TIME_UNIT

MDS_RESTART_BUNDLE_AFTER_TIMEOUT

public static final String MDS_RESTART_BUNDLE_AFTER_TIMEOUT

The property that specifies that bundle should be restarted by the MDS after timeout.

MDS_TIME_UNIT

public static final String MDS_TIME_UNIT

The property that specifies what time unit should be used to specify time when trash should be cleaned. The following values are valid for this property:

  • Hours
  • Days
  • Weeks
  • Months
  • Years

See also: .MDS_DELETE_MODE, .MDS_EMPTY_TRASH, .MDS_TIME_VALUE

MDS_TIME_VALUE

public static final String MDS_TIME_VALUE

The integer property that specifies after what time (according with correct time unit) trash should be cleaned.

See also: .MDS_DELETE_MODE, .MDS_EMPTY_TRASH, .MDS_TIME_UNIT

MODULE_FILE

public static final String MODULE_FILE

Constant MODULE_FILE presents the file name with configuration for MDS module.

MYSQL_DRIVER_CLASSNAME

public static final String MYSQL_DRIVER_CLASSNAME

Constant MYSQL_DRIVER_CLASSNAME represents the name of MySql driver class. It is used in various places, to verify what driver class has been chosen by the user.

POSTGRES_DRIVER_CLASSNAME

public static final String POSTGRES_DRIVER_CLASSNAME

Constant POSTGRES_DRIVER_CLASSNAME represents the name of Postgres driver class. It is used in various places, to verify what driver vlass has been chosen by the user.