Class JOPAPersistenceProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Whether a second level cache should be used.static final String
Whether the second level cache should be used for the read-only mode.static final String
How often should the cache be swept for dead entities.static final String
Cached entity time to live.static final String
Type of the second level cache.static final String
Configures change tracking mode.static final String
Path to a directory to which classes dynamically generated by JOPA should be output.static final String
Name of a customClasspathScanner
implementation used to discover entity classes.static final String
Class name of the OntoDriver implementation.static final String
Disable integrity constraints validation on entity/field load.static final String
Ignores removal of inferred values when entity state is merged into the persistence context.static final String
Ontology language.static final String
Capacity of the LRU second level cache.static final String
Physical location of the underlying ontology storage.static final String
Logical URI of the underlying ontology.static final String
Indicates whether JOPA should preferMultilingualString
overString
when target type is unclear from context.static final String
Where the entity classes are located.static final String
Configures 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 preferMultilingualString
overString
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
Name of a customClasspathScanner
implementation 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_MODE
orConstants.READ_WRITE_TRANSACTION_MODE
as values.- See Also:
-
CACHE_ENABLED_READ_ONLY
Whether the second level cache should be used for the read-only mode. Expected values: (true, false).- See Also:
-