Package org.apache.openjpa.conf
Class RemoteCommitProviderValue
java.lang.Object
org.apache.openjpa.lib.conf.Value
org.apache.openjpa.lib.conf.ObjectValue
org.apache.openjpa.lib.conf.PluginValue
org.apache.openjpa.conf.RemoteCommitProviderValue
- All Implemented Interfaces:
Cloneable
Value type used to represent a
RemoteCommitProvider. This
plugin allows users to specify whether to transmit the ids of added objects
in the remote commit events distributed.- Author:
- Abe White
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure the remote event manager.The cached provider.booleanWhether to transmit persisted object ids in remote commit events.instantiate(Class type, Configuration conf, boolean fatal) Override to keep decorators out of transport configuration.Instantiate the provider.instantiateProvider(Configuration conf, boolean fatal) Instantiate the provider.voidsetProperties(String props) The plugin properties.voidsetProvider(RemoteCommitProvider provider) The cached provider.voidSet this value from the given string.voidsetTransmitPersistedObjectIds(boolean transmit) The cached decorators.Methods inherited from class org.apache.openjpa.lib.conf.PluginValue
configure, getClassName, getInternalString, getProperties, getString, getValueType, isSingleton, objectChanged, set, setClassName, setInternalStringMethods inherited from class org.apache.openjpa.lib.conf.ObjectValue
configure, get, instantiate, newInstance, set, setInternalObjectMethods inherited from class org.apache.openjpa.lib.conf.Value
addEquivalentKey, addListener, alias, alias, assertChangeable, clone, equals, getAliases, getDefault, getEquivalentKeys, getInstantiatingGetter, getListeners, getLoadKey, getOriginalValue, getProperty, getPropertyKeys, getScope, hashCode, hide, isAliasListComprehensive, isDynamic, isHidden, isPrivate, makePrivate, matches, removeListener, setAlias, setAlias, setAliases, setAliasListComprehensive, setDefault, setDynamic, setInstantiatingGetter, setLoadKey, setObject, setProperty, setScope, toString, unalias, unalias, valueChanged
-
Constructor Details
-
RemoteCommitProviderValue
public RemoteCommitProviderValue()
-
-
Method Details
-
setProperties
Description copied from class:PluginValueThe plugin properties.- Overrides:
setPropertiesin classPluginValue
-
setString
Description copied from class:ValueSet this value from the given string. If the given string is null or empty and a default is defined, the default is used. If the given string(or default) is an alias key, it will be converted to the corresponding value internally.
If this Value is being set to a non-default value for the first time (as designated byoriginalStringbeing null), then the value is remembered as original. This original value is used for equality and hashCode computation if this Value isdynamic.- Overrides:
setStringin classPluginValue
-
getProvider
The cached provider. -
setProvider
The cached provider. -
getTransmitPersistedObjectIds
public boolean getTransmitPersistedObjectIds()Whether to transmit persisted object ids in remote commit events. -
setTransmitPersistedObjectIds
public void setTransmitPersistedObjectIds(boolean transmit) The cached decorators. -
instantiateProvider
Instantiate the provider. -
instantiateProvider
Instantiate the provider. -
configureEventManager
Configure the remote event manager. -
instantiate
Override to keep decorators out of transport configuration.- Overrides:
instantiatein classPluginValue
-