com.extentech.ExtenBean
Class XMLDataObject

java.lang.Object
  extended by com.extentech.ExtenBean.DataObjectImpl
      extended by com.extentech.ExtenBean.XMLDataObject
All Implemented Interfaces:
DataObject, RelationalObject, SimpleDataObject, SQLObject, Serializable, Runnable

public class XMLDataObject
extends DataObjectImpl
implements DataObject

A DataObject implementation which uses XML data.

Version:
1.1
Author:
John McMahon -- Copyright ©2011Extentech Inc.
See Also:
XMLDataObjectFactory, DataObject, colinfo, Serialized Form

Field Summary
 
Fields inherited from class com.extentech.ExtenBean.DataObjectImpl
dataObjectActionListeners, doparent, EXTENBEAN_LOADER_NAME, props
 
Constructor Summary
XMLDataObject()
           
 
Method Summary
 void activate()
          load the data from the underlying persistence layer
 SimpleDataObject getDataObject(int x)
          get a new DataObject from this one
 Object getOriginalKey()
           
 Object getVal(Object key, String field)
          Get value for field at the specified index.
 Object getValForNode(String field)
           
 void init()
          Post-data initialization tasks.
 void initNode(int idx, XMLDataObject dobj)
          more or less clone this node, except as a singleton
 
Methods inherited from class com.extentech.ExtenBean.DataObjectImpl
addChildObject, addDataObjectActionListener, addOrderByItem, beginTrans, dumpNameVals, dumpNameVals, fireDataObjectActionEvent, getAllChildrenInHeirarchy, getCascadeUpdates, getChangedRowCount, getChangedRows, getChildByName, getChildObjects, getChildrenByName, getColinfo, getColinfoByName, getColnames, getColNames, getColNumByName, getData, getDataArray, getDataObjectActionListeners, getDataRow, getDOLookupField, getFactory, getId, getIsMultiKey, getIsMultiple, getIsNew, getIsUpdateable, getKeyCol, getKeyColName, getLevel, getNumRows, getOrderByHash, getParentForeignKey, getParentId, getParentObject, getProps, getSQL, getStringVal, getStringVal, getTableName, getVal, getVal, hasChildren, initFromDataObject, isNew, isPageable, load, passivate, remove, removeAll, removeByKey, removeChangedRow, removeChangedRows, removeDataObjectActionListener, removeDataObjectActionListeners, rollBack, run, setCascadeUpdates, setColinfo, setData, setDataRowChanged, setDataRowChanged, setDEBUG, setDOLookupField, setFactory, setHasChildren, setId, setIsMultiple, setIsNew, setIsUpdateable, setKeyCol, setKeyCol, setLevel, setParent, setParentForeignKey, setProps, setSQL, setTableName, setVal, setVal, setVal, store, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.extentech.ExtenBean.DataObject
addDataObjectActionListener, addOrderByItem, fireDataObjectActionEvent, getCascadeUpdates, getChangedRowCount, getChangedRows, getChildByName, getColinfo, getColinfoByName, getColnames, getColNumByName, getData, getDataObjectActionListeners, getDataRow, getDOLookupField, getFactory, getId, getIsMultiple, getIsNew, getNumRows, getOrderByHash, getStringVal, getVal, getVal, isPageable, load, passivate, remove, removeChangedRow, removeChangedRows, removeDataObjectActionListener, removeDataObjectActionListeners, setCascadeUpdates, setColinfo, setDOLookupField, setFactory, setId, setIsMultiple, setIsNew, setVal, setVal, store
 
Methods inherited from interface com.extentech.ExtenBean.SimpleDataObject
getColNames, getStringVal, isNew
 
Methods inherited from interface com.extentech.ExtenBean.RelationalObject
addChildObject, getAllChildrenInHeirarchy, getChildObjects, getLevel, getParentObject, hasChildren, setLevel, setParent
 
Methods inherited from interface com.extentech.ExtenBean.SQLObject
beginTrans, getIsUpdateable, getKeyCol, getKeyColName, getParentForeignKey, getParentId, getSQL, getTableName, rollBack, setData, setIsUpdateable, setKeyCol, setKeyCol, setParentForeignKey, setSQL, setTableName
 

Constructor Detail

XMLDataObject

public XMLDataObject()
Method Detail

getOriginalKey

public Object getOriginalKey()

getVal

public Object getVal(Object key,
                     String field)
Get value for field at the specified index. String is the name of the field that you are getting. Look up the key value, then return the String value of the field at the named field.

Specified by:
getVal in interface DataObject
Overrides:
getVal in class DataObjectImpl
Parameters:
key -
field -
Returns:

getValForNode

public Object getValForNode(String field)

activate

public void activate()
Description copied from interface: DataObject
load the data from the underlying persistence layer

Specified by:
activate in interface DataObject

init

public void init()
Description copied from interface: DataObject
Post-data initialization tasks.

Specified by:
init in interface DataObject

getDataObject

public SimpleDataObject getDataObject(int x)
get a new DataObject from this one

Specified by:
getDataObject in interface SimpleDataObject

initNode

public void initNode(int idx,
                     XMLDataObject dobj)
more or less clone this node, except as a singleton



Copyright © 2011 Extentech Inc. All Rights Reserved.