public class PersistenceConfiguration extends PropertyStore implements Serializable
Modifier and Type | Field and Description |
---|---|
protected static Localiser |
LOCALISER
Localisation of messages.
|
properties
Constructor and Description |
---|
PersistenceConfiguration(NucleusContext nucCtx)
Constructor for this NucleusContext.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Equality operator.
|
String |
getCaseSensitiveNameForPropertyName(String propName) |
Map<String,Object> |
getDatastoreProperties()
Convenience method to return all properties that are user-specified and should be specified on the StoreManager.
|
String |
getInternalNameForProperty(String name) |
Set<String> |
getManagedOverrideablePropertyNames()
Returns the names of the properties that are manager overrideable (using their original cases, not lowercase).
|
Map<String,Object> |
getManagerOverrideableProperties()
Convenience method to return all properties that are overrideable on the PM/EM.
|
Map<String,Object> |
getPersistenceProperties()
Accessor for the persistence properties.
|
Map<String,Object> |
getPersistencePropertiesDefaults()
Accessor for the persistence properties default values.
|
Object |
getProperty(String name)
Accessor for the specified property as an Object.
|
Set<String> |
getPropertyNamesWithPrefix(String prefix) |
String |
getPropertyNameWithInternalPropertyName(String propName,
String propPrefix) |
Set<String> |
getSupportedProperties()
Accessor for the names of the supported persistence properties.
|
protected Object |
getValueForPropertyWithValidator(String value,
String validatorName) |
boolean |
hasProperty(String name)
Accessor for whether a particular property is defined (but may be null).
|
boolean |
isPropertyForDatastore(String name)
Accessor for whether the specified property name should be stored with the StoreManager.
|
void |
removeDatastoreProperties()
Method that removes all properties from this store that are marked as "datastore".
|
void |
setDefaultProperties(Map props)
Method to set the persistence property defaults based on what is defined for plugins.
|
void |
setPersistenceProperties(Map props)
Set the properties for this configuration.
|
void |
setPropertiesUsingFile(String filename)
Method to set the persistence properties using those defined in a file.
|
void |
setProperty(String name,
Object value)
Convenience method to set a persistence property.
|
void |
validatePropertyValue(String name,
Object value) |
getBooleanObjectProperty, getBooleanProperty, getBooleanProperty, getIntProperty, getStringProperty, hasPropertyNotNull, setPropertyInternal
protected static final Localiser LOCALISER
public PersistenceConfiguration(NucleusContext nucCtx)
nucCtx
- NucleusContextpublic Set<String> getSupportedProperties()
public Map<String,Object> getDatastoreProperties()
public void removeDatastoreProperties()
public boolean isPropertyForDatastore(String name)
name
- Name of the propertypublic Map<String,Object> getManagerOverrideableProperties()
public Set<String> getManagedOverrideablePropertyNames()
public String getPropertyNameWithInternalPropertyName(String propName, String propPrefix)
public String getCaseSensitiveNameForPropertyName(String propName)
public void setDefaultProperties(Map props)
props
- Properties to use in the default setprotected Object getValueForPropertyWithValidator(String value, String validatorName)
public boolean hasProperty(String name)
PropertyStore
hasProperty
in class PropertyStore
name
- Property namepublic Object getProperty(String name)
getProperty
in class PropertyStore
name
- Name of the propertypublic void setPropertiesUsingFile(String filename)
filename
- Name of the file containing the propertiespublic Map<String,Object> getPersistencePropertiesDefaults()
public Map<String,Object> getPersistenceProperties()
getPersistenceProperties()
public void setPersistenceProperties(Map props)
props
- The persistence propertiesgetPersistencePropertiesDefaults()
public void setProperty(String name, Object value)
name
- Name of the propertyvalue
- ValueCopyright © 2021. All rights reserved.