test.org.benow.repository.sample
Class SampleObject
java.lang.Object
org.benow.security.SecureObject
org.benow.repository.util.PersistentObjectImpl
org.benow.repository.mapping.JSQLObject
test.org.benow.repository.sample.SampleObject
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, PersistentObject
public class SampleObject
- extends JSQLObject
Test object for all cases within JDBC Object Repository.
- Author:
- andy
- See Also:
- Serialized Form
| Fields inherited from class org.benow.security.SecureObject |
admin |
| Methods inherited from class org.benow.repository.util.PersistentObjectImpl |
compareTo, doIsTransient, equals, getKey, isTransient, recycle, remove, remove, repositoryAfterLoad, repositoryAfterPersist, repositoryAfterTransient, repositoryBeforePersist, repositoryBeforeTransient, setKey, update, update |
| Methods inherited from class org.benow.security.SecureObject |
assertOnePermission, assertPermission, assertPermission, declarePermission, declareViewPermission, declareViewPermission |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SampleObject
protected SampleObject()
SampleObject
public SampleObject(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
SampleObject
public SampleObject(java.lang.String name,
SampleObject parent)
throws java.io.IOException
- Throws:
java.io.IOException
getAbstractItem
public AbstractItem getAbstractItem()
getInterfaceObj
public InterfaceObject getInterfaceObj()
getAbstractItems
public java.util.List getAbstractItems()
getInterfaceItems
public java.util.List getInterfaceItems()
setAbstractField
public void setAbstractField(AbstractItem item)
setInterfaceField
public void setInterfaceField(InterfaceObject obj)
getName
public java.lang.String getName()
getParent
public SampleObject getParent()
throws ObjectRepositoryException
- Throws:
ObjectRepositoryException
addChild
public SampleObject addChild(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
removeChild
public SampleObject removeChild(SampleObject child)
addForeign
public ForeignObject addForeign(java.lang.String name)
getChildren
public java.util.List<SampleObject> getChildren()
getForiegn
public java.util.List<ForeignObject> getForiegn()
toString
public java.lang.String toString()
- Overrides:
toString in class PersistentObjectImpl
toString
public java.lang.String toString(int indent)
getChildByName
public SampleObject getChildByName(java.lang.String name)
throws NoSuchObjectException
- Throws:
NoSuchObjectException
getForiegnByName
public ForeignObject getForiegnByName(java.lang.String string)
throws NoSuchObjectException
- Throws:
NoSuchObjectException