|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.server.util.JboNamedData
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.
Fields inherited from interface oracle.jbo.server.xml.JTPersistable |
SQL_DELETE_STATEMENT,
SQL_INSERT_STATEMENT,
SQL_SELECT_STRING,
SQL_UPDATE_STATEMENT,
XML_STATEMENT |
Constructor Summary | |
JboNamedData()
|
|
JboNamedData(JboNamedData other)
|
|
JboNamedData(java.lang.String name,
java.lang.String type,
java.lang.Object value)
|
Method Summary | |
java.lang.Object |
clone()
|
static java.lang.String |
convertToText(java.util.Vector vec,
java.lang.String delim)
|
static java.util.Vector |
convertToVector(java.lang.String str,
java.lang.String delim)
|
void |
copy(JboNamedData other)
|
oracle.jbo.server.xml.JTPersistable |
findByFullName(java.lang.String jtpFullName)
Looks for an instance of this object's type with the given name. |
oracle.jbo.server.xml.JTPersistable |
findByName(java.lang.String fullName)
Looks for an instance of this object's type with the given name. |
java.lang.String[] |
getColumnList()
|
java.lang.String |
getFullName()
This method returns the Persistence reference of the object. |
java.lang.String |
getName()
|
int |
getObjectID()
Returns the persistent ID for this object. |
java.lang.String |
getObjectIDName()
|
java.lang.Object |
getPersistStmt(int stmtType)
Returns a piece of static info for the type of object this is invoked upon. |
java.lang.String |
getPersistTableName()
|
java.lang.Class |
getType()
|
java.lang.Object |
getTypedValue()
|
java.lang.Object |
getValue()
|
boolean |
isDirty()
This method returns if an Object is modified from last save/load |
boolean |
isNew()
This method returns if this object is previously persisted. |
void |
loadFromXMLFile(oracle.jbo.server.xml.JboElementImpl xmlElement)
|
void |
readChildren(oracle.jbo.server.xml.JTStorageInput jis)
Reads the Object's children from Persistent storage |
void |
readContents(oracle.jbo.server.xml.JTStorageInput jis)
Loads the property data for this object from the specified input stream. |
void |
readObject(oracle.jbo.server.xml.JTStorageInput jis)
Objects should read their persistence input in this method |
void |
setBeanProperty(java.beans.BeanInfo beanInfo,
java.lang.Object bean)
|
void |
setDirty(boolean isDirty)
This method marks the Object dirty |
void |
setName(java.lang.String name)
|
void |
setNew(boolean isNew)
This method marks the as previously persisted. |
void |
setObjectID(int objectID)
Returns the persistent ID for this object. |
void |
setType(java.lang.String type)
|
void |
setValue(java.lang.Object value)
|
void |
writeChildren(oracle.jbo.server.xml.JTStorageOutput jos)
Writes the Object's children to the Persistent storage |
void |
writeContents(oracle.jbo.server.xml.JTStorageOutput jos)
Objects should write their persistence output in this method |
void |
writeObject(oracle.jbo.server.xml.JTStorageOutput jos)
Objects should write their persistence output in this method |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public JboNamedData()
public JboNamedData(java.lang.String name, java.lang.String type, java.lang.Object value)
public JboNamedData(JboNamedData other)
Method Detail |
public void copy(JboNamedData other)
public java.lang.Object clone()
public java.lang.String getName()
public java.lang.Object getValue()
public java.lang.Class getType()
public java.lang.Object getTypedValue()
public void setName(java.lang.String name)
public void setType(java.lang.String type)
public void setValue(java.lang.Object value)
public void setBeanProperty(java.beans.BeanInfo beanInfo, java.lang.Object bean) throws java.lang.reflect.InvocationTargetException, java.beans.IntrospectionException, java.lang.IllegalAccessException
public boolean isDirty()
public void setDirty(boolean isDirty)
isDirty
- If true the Object is marked Dirty.public boolean isNew()
public void setNew(boolean isNew)
isNew
- If true the Object is marked as new object.public java.lang.String getFullName()
public void writeObject(oracle.jbo.server.xml.JTStorageOutput jos) throws oracle.jbo.server.xml.JTPersistenceException
jos
- the Output storage for persistencepublic void writeContents(oracle.jbo.server.xml.JTStorageOutput jos) throws oracle.jbo.server.xml.JTPersistenceException
jos
- the Output storage for persistencepublic void writeChildren(oracle.jbo.server.xml.JTStorageOutput jos) throws oracle.jbo.server.xml.JTPersistenceException
jos
- the Output storage for persistencepublic void readObject(oracle.jbo.server.xml.JTStorageInput jis) throws oracle.jbo.server.xml.JTPersistenceException
jis
- the Input storage for persistence.public java.lang.Object getPersistStmt(int stmtType)
type
- Type of the Persistence Statement requested. The type
can be any of the Statement types defined in this interface.public java.lang.String getPersistTableName()
public java.lang.String[] getColumnList()
public oracle.jbo.server.xml.JTPersistable findByName(java.lang.String fullName)
public oracle.jbo.server.xml.JTPersistable findByFullName(java.lang.String jtpFullName)
public void readContents(oracle.jbo.server.xml.JTStorageInput jis) throws oracle.jbo.server.xml.JTPersistenceException
jis
- The persistent input streampublic void readChildren(oracle.jbo.server.xml.JTStorageInput jis) throws oracle.jbo.server.xml.JTPersistenceException
jos
- the Input storage for persistencepublic int getObjectID()
public void setObjectID(int objectID)
public java.lang.String getObjectIDName()
public void loadFromXMLFile(oracle.jbo.server.xml.JboElementImpl xmlElement)
public static java.lang.String convertToText(java.util.Vector vec, java.lang.String delim)
public static java.util.Vector convertToVector(java.lang.String str, java.lang.String delim)
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |