Class JOPAPersistenceProperties

java.lang.Object
cz.cvut.kbss.jopa.model.PersistenceProperties
cz.cvut.kbss.jopa.model.JOPAPersistenceProperties

public final class JOPAPersistenceProperties extends PersistenceProperties
  • Field Details

    • ONTOLOGY_URI_KEY

      public static final String ONTOLOGY_URI_KEY
      Logical URI of the underlying ontology.
      See Also:
    • ONTOLOGY_PHYSICAL_URI_KEY

      public static final String ONTOLOGY_PHYSICAL_URI_KEY
      Physical location of the underlying ontology storage.
      See Also:
    • DATA_SOURCE_CLASS

      public static final String DATA_SOURCE_CLASS
      Class name of the OntoDriver implementation.
      See Also:
    • LANG

      public static final String LANG
      Ontology language.
      See Also:
    • CACHE_ENABLED

      public static final String CACHE_ENABLED
      Whether a second level cache should be used.
      See Also:
    • SCAN_PACKAGE

      public static final String SCAN_PACKAGE
      Where the entity classes are located.
      See Also:
    • CACHE_TTL

      public static final String CACHE_TTL
      Cached entity time to live. In seconds.
      See Also:
    • CACHE_SWEEP_RATE

      public static final String CACHE_SWEEP_RATE
      How often should the cache be swept for dead entities. In seconds.
      See Also:
    • CACHE_TYPE

      public static final String CACHE_TYPE
      Type of the second level cache. Currently supported are ttl and lru.
      See Also:
    • LRU_CACHE_CAPACITY

      public static final String LRU_CACHE_CAPACITY
      Capacity of the LRU second level cache.
      See Also:
    • DISABLE_IC_VALIDATION_ON_LOAD

      public static final String DISABLE_IC_VALIDATION_ON_LOAD
      Disable integrity constraints validation on entity/field load.
      See Also:
    • PREFER_MULTILINGUAL_STRING

      public static final String PREFER_MULTILINGUAL_STRING
      Indicates whether JOPA should prefer MultilingualString over String when target type is unclear from context.

      For example, when a field is of type Object and the value is language-tagged string, this setting will influence the actual type set on the field.

      See Also:
    • CLASSPATH_SCANNER_CLASS

      public static final String CLASSPATH_SCANNER_CLASS
      Name of a custom ClasspathScanner implementation used to discover entity classes.

      The specified class must have a public no-arg constructor.

      See Also:
    • CLASS_GENERATOR_OUTPUT_DIR

      public static final String CLASS_GENERATOR_OUTPUT_DIR
      Path to a directory to which classes dynamically generated by JOPA should be output.

      If not configured, generated classes are not output anywhere.

      See Also:
    • IGNORE_INFERRED_VALUE_REMOVAL_ON_MERGE

      public static final String IGNORE_INFERRED_VALUE_REMOVAL_ON_MERGE
      Ignores removal of inferred values when entity state is merged into the persistence context.

      Normally, attempts to remove inferred values lead to an InferredAttributeModifiedException. But when an entity is merged into the persistence context, it may be merged without inferred attribute values because they were not accessible to the client application. Instead of requiring the application to reconstruct them, this configuration allows to ignore such changes completely.

      See Also:
    • CHANGE_TRACKING_MODE

      public static final String CHANGE_TRACKING_MODE
      Configures change tracking mode.
      See Also:
    • TRANSACTION_MODE

      public static final String TRANSACTION_MODE
      Configures transaction mode. Expected values: (read_only, read_write[default]).

      Use Constants.READ_ONLY_TRANSACTION_MODE or Constants.READ_WRITE_TRANSACTION_MODE as values.

      See Also:
    • CACHE_ENABLED_READ_ONLY

      public static final String CACHE_ENABLED_READ_ONLY
      Whether the second level cache should be used for the read-only mode. Expected values: (true, false).
      See Also: