Skip navigation links
oracle.jbo.mom
Class PropertyNameValueDef
java.lang.Object
oracle.jbo.mom.PropertyNameValueDef
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DCMethodParameterDef, JboNamedData
-
public class PropertyNameValueDef
- extends java.lang.Object
- implements java.io.Serializable
This class implements a persistable name-value-type holder It can be used to store name-type-value triplets e.g., to persist Bean Properties. Used by JboValidatorType to store Validator bean's instance data.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_VALUE
public final java.lang.String NULL_VALUE
-
- See Also:
- Constant Field Values
PropertyNameValueDef
public PropertyNameValueDef()
PropertyNameValueDef
protected PropertyNameValueDef(boolean conversion)
PropertyNameValueDef
public PropertyNameValueDef(java.lang.String name,
java.lang.String type,
java.lang.Object value)
PropertyNameValueDef
protected PropertyNameValueDef(java.lang.String name,
java.lang.String type,
java.lang.Object value,
boolean conversion)
PropertyNameValueDef
public PropertyNameValueDef(PropertyNameValueDef other)
copy
public void copy(PropertyNameValueDef other)
clone
public java.lang.Object clone()
-
- Overrides:
clone
in class java.lang.Object
getName
public java.lang.String getName()
getValue
public java.lang.Object getValue()
getTypeName
public java.lang.String getTypeName()
getType
public java.lang.Class getType()
getTypedValue
public java.lang.Object getTypedValue()
setName
public void setName(java.lang.String name)
setType
public void setType(java.lang.String type)
setValue
public void setValue(java.lang.Object value)
setBeanProperty
public void setBeanProperty(java.beans.BeanInfo beanInfo,
java.lang.Object bean)
throws java.lang.reflect.InvocationTargetException,
java.beans.IntrospectionException,
java.lang.IllegalAccessException
-
- Throws:
java.lang.reflect.InvocationTargetException
java.beans.IntrospectionException
java.lang.IllegalAccessException
getFullName
public java.lang.String getFullName()
- This method returns the Persistence reference of the object. The Persistence Reference is uniquely identifiable fully qualified name of the object.
-
- Returns:
- the Persistence Reference of the object
getXMLElementTag
public java.lang.String getXMLElementTag()
- Returns a piece of static info for the type of object this is invoked upon. Examples are PreparedStatements for insert, update, delete, and String containing a base the select statement for retrieving instances of this type through the SQLInputStream
-
- Returns:
- returns the Statement required to store in Persitent Storage. Incase of XML, it just returns the String. In the case of SQL a JDBC PreparedStatement is returned.
getDefXMLElementTag
public java.lang.String getDefXMLElementTag()
getDefXMLNameSpace
public java.lang.String getDefXMLNameSpace()
getColumnList
public java.lang.String[] getColumnList()
-
- Returns:
- the names of all persistent properties for this type, including the properties it inherits through its supertypes, if any
loadFromXMLFile
public void loadFromXMLFile(DefElement xmlElement)
convertToText
public static java.lang.String convertToText(java.util.Vector vec,
java.lang.String delim)
convertToVector
public static java.util.Vector convertToVector(java.lang.String str,
java.lang.String delim)
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.