|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.lib.conf.Value
org.apache.openjpa.lib.conf.ObjectValue
public class ObjectValue
An object Value
.
Constructor Summary | |
---|---|
ObjectValue(java.lang.String prop)
|
Method Summary | |
---|---|
java.lang.Object |
get()
The internal value. |
protected java.lang.String |
getInternalString()
Return the internal string form of this value. |
java.lang.Class |
getValueType()
Returns the type of the property that this Value represents. |
java.lang.Object |
instantiate(java.lang.Class type,
Configuration conf)
Instantiate the object as an instance of the given class. |
java.lang.Object |
instantiate(java.lang.Class type,
Configuration conf,
boolean fatal)
Instantiate the object as an instance of the given class. |
java.lang.Object |
newInstance(java.lang.String clsName,
java.lang.Class type,
Configuration conf,
boolean fatal)
Allow subclasses to instantiate additional plugins. |
protected void |
objectChanged()
Implement this method to synchronize internal data with the new object value. |
void |
set(java.lang.Object obj)
The internal value. |
void |
set(java.lang.Object obj,
boolean derived)
The internal value. |
protected void |
setInternalObject(java.lang.Object obj)
Set this value from an object. |
protected void |
setInternalString(java.lang.String str)
Set this value from the given string. |
Methods inherited from class org.apache.openjpa.lib.conf.Value |
---|
alias, alias, clone, equals, getAliases, getDefault, getInstantiatingGetter, getListener, getLoadKey, getProperty, getScope, getString, hashCode, isAliasListComprehensive, setAlias, setAlias, setAliases, setAliasListComprehensive, setDefault, setInstantiatingGetter, setListener, setLoadKey, setObject, setProperty, setScope, setString, unalias, unalias, valueChanged |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectValue(java.lang.String prop)
Method Detail |
---|
public java.lang.Object get()
public void set(java.lang.Object obj)
public void set(java.lang.Object obj, boolean derived)
derived
- if true, this value was derived from other propertiespublic java.lang.Object instantiate(java.lang.Class type, Configuration conf)
instantiate(type, conf, true)
.
public java.lang.Object instantiate(java.lang.Class type, Configuration conf, boolean fatal)
public java.lang.Object newInstance(java.lang.String clsName, java.lang.Class type, Configuration conf, boolean fatal)
public java.lang.Class getValueType()
Value
getValueType
in class Value
protected void objectChanged()
protected java.lang.String getInternalString()
Value
getInternalString
in class Value
protected void setInternalString(java.lang.String str)
Value
setInternalString
in class Value
protected void setInternalObject(java.lang.Object obj)
Value
setInternalObject
in class Value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |