Class JOPAPersistenceProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringWhether a second level cache should be used.static final StringHow often should the cache be swept for dead entities.static final StringCached entity time to live.static final StringType of the second level cache.static final StringConfigures change tracking mode.static final StringPath to a directory to which classes dynamically generated by JOPA should be output.static final StringName of a customClasspathScannerimplementation used to discover entity classes.static final StringClass name of the OntoDriver implementation.static final StringDisable integrity constraints validation on entity/field load.static final StringIgnores removal of inferred values when entity state is merged into the persistence context.static final StringOntology language.static final StringCapacity of the LRU second level cache.static final StringPhysical location of the underlying ontology storage.static final StringLogical URI of the underlying ontology.static final StringA comma-separated list of fully qualified class names of lifecycle plugins to be loaded and executed for the whole persistence unit.static final StringDeprecated.static final StringIndicates whether JOPA should preferMultilingualStringoverStringwhen target type is unclear from context.static final StringWhere the entity classes are located.static final StringConfigures transaction mode.Fields inherited from class cz.cvut.kbss.jopa.model.PersistenceProperties
IDENTIFIER_TYPES, JPA_PERSISTENCE_PROVIDER -
Method Summary
-
Field Details
-
ONTOLOGY_URI_KEY
Logical URI of the underlying ontology.- See Also:
-
ONTOLOGY_PHYSICAL_URI_KEY
Physical location of the underlying ontology storage.- See Also:
-
DATA_SOURCE_CLASS
Class name of the OntoDriver implementation.- See Also:
-
LANG
Ontology language.- See Also:
-
CACHE_ENABLED
Whether a second level cache should be used.- See Also:
-
SCAN_PACKAGE
Where the entity classes are located.- See Also:
-
CACHE_TTL
Cached entity time to live. In seconds.- See Also:
-
CACHE_SWEEP_RATE
How often should the cache be swept for dead entities. In seconds.- See Also:
-
CACHE_TYPE
Type of the second level cache. Currently supported are ttl and lru.- See Also:
-
LRU_CACHE_CAPACITY
Capacity of the LRU second level cache.- See Also:
-
DISABLE_IC_VALIDATION_ON_LOAD
Disable integrity constraints validation on entity/field load.- See Also:
-
PREFER_MULTILINGUAL_STRING
Indicates whether JOPA should preferMultilingualStringoverStringwhen target type is unclear from context.For example, when a field is of type
Objectand the value is language-tagged string, this setting will influence the actual type set on the field.- See Also:
-
CLASSPATH_SCANNER_CLASS
Name of a customClasspathScannerimplementation used to discover entity classes.The specified class must have a public no-arg constructor.
- See Also:
-
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
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
Configures change tracking mode.- See Also:
-
TRANSACTION_MODE
Configures transaction mode. Expected values: (read_only, read_write[default]).Use
Constants.READ_ONLY_TRANSACTION_MODEorConstants.READ_WRITE_TRANSACTION_MODEas values.- See Also:
-
PERSISTENCE_UNIT_LIFECYCLE_PLUGINS
A comma-separated list of fully qualified class names of lifecycle plugins to be loaded and executed for the whole persistence unit.- See Also:
-
PERSISTENCE_UNIT_LIFECYCLE_PLUGINS_LEGACY
Deprecated.UsePERSISTENCE_UNIT_LIFECYCLE_PLUGINSinstead.Backward compatibility property name forPERSISTENCE_UNIT_LIFECYCLE_PLUGINS.Introduced because previously the property was incorrectly named.
- See Also:
-
PERSISTENCE_UNIT_LIFECYCLE_PLUGINSinstead.