GenericObject
, GenericObjectNode
, Changeable
, DBObject
, DBObjectNode
, Transactionable
, Serializable
, Remote
public abstract class AbstractDBObjectNode extends AbstractDBObject implements DBObjectNode
ref
Constructor | Description |
---|---|
AbstractDBObjectNode() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
deleteCheck() |
Da Objekte in einem Baum Abhaengigkeiten untereinander haben,
muessen diese vorm Loeschen geprueft werden.
|
GenericIterator |
getChildren() |
Liefert einen Iterator mit allen direkten Kind-Objekten
des aktuellen Objektes.
|
protected String |
getNodeField() |
Liefert den Namen der Spalte, in dem sich die ID des
�bergeordneten Objektes befindet.
|
GenericObjectNode |
getParent() |
Liefert das Eltern-Element des aktuellen oder null, wenn es sich
bereits auf oberster Ebene befindet.
|
GenericIterator |
getPath() |
Liefert eine Liste mit allen Eltern-Objekten bis hoch zum
Root-Objekt.
|
GenericIterator |
getPossibleParents() |
Liefert alle moeglichen Eltern-Objekte dieses Objektes.
|
GenericIterator |
getTopLevelList() |
Liefert einen Iterator mit allen Root-Objekten.
|
boolean |
hasChild(GenericObjectNode object) |
Prueft, ob das uebergeben Node-Objekt ein Kind des aktuellen
ist.
|
protected void |
insertCheck() |
Prueft, ob das angegebene Eltern-Objekt (insofern vorhanden) erlaubt ist.
|
void |
setParent(DBObjectNode parent) |
Speichert das Eltern-Element.
|
protected void |
updateCheck() |
Diese Methode wird intern vor der Ausfuehrung von update()
aufgerufen.
|
addDeleteListener, addStoreListener, clear, delete, equals, getAttribute, getAttributeNames, getAttributeType, getForeignObject, getID, getIDField, getInsertSQL, getList, getListQuery, getLoadQuery, getPrimaryAttribute, getService, getTableName, getUpdateSQL, hasChanged, hasChanged, init, insert, isNewObject, load, overwrite, removeDeleteListener, removeStoreListener, setAttribute, setID, setService, store, transactionBegin, transactionCommit, transactionRollback
clear, delete, isNewObject, overwrite, store
addDeleteListener, addStoreListener, equals, getAttribute, getAttributeType, getList, getPrimaryAttribute, load, removeDeleteListener, removeStoreListener
getAttributeNames, getID
finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getRef, hashCode, toString, toStub
getClientHost, getLog, setLog
transactionBegin, transactionCommit, transactionRollback
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
public AbstractDBObjectNode() throws RemoteException
RemoteException
protected String getNodeField()
public GenericIterator getChildren() throws RemoteException
GenericObjectNode
getChildren
in interface GenericObjectNode
RemoteException
GenericObjectNode.getChildren()
public GenericIterator getTopLevelList() throws RemoteException
DBObjectNode
getTopLevelList
in interface DBObjectNode
RemoteException
DBObjectNode.getTopLevelList()
public boolean hasChild(GenericObjectNode object) throws RemoteException
GenericObjectNode
hasChild
in interface GenericObjectNode
object
- das zu testende Objekt.RemoteException
GenericObjectNode.hasChild(de.willuhn.datasource.GenericObjectNode)
public GenericObjectNode getParent() throws RemoteException
GenericObjectNode
getParent
in interface GenericObjectNode
RemoteException
GenericObjectNode.getParent()
public GenericIterator getPossibleParents() throws RemoteException
GenericObjectNode
getPossibleParents
in interface GenericObjectNode
RemoteException
GenericObjectNode.getPossibleParents()
public GenericIterator getPath() throws RemoteException
GenericObjectNode
getPath
in interface GenericObjectNode
RemoteException
GenericObjectNode.getPath()
protected void deleteCheck() throws de.willuhn.util.ApplicationException
deleteCheck
in class AbstractDBObject
de.willuhn.util.ApplicationException
- wenn das Objekt nicht gel�scht werden darf.AbstractDBObject.deleteCheck()
protected void insertCheck() throws de.willuhn.util.ApplicationException
insertCheck
in class AbstractDBObject
de.willuhn.util.ApplicationException
- wenn das Objekt nicht gespeichert werden darf.AbstractDBObject.insertCheck()
protected void updateCheck() throws de.willuhn.util.ApplicationException
AbstractDBObject
updateCheck
in class AbstractDBObject
de.willuhn.util.ApplicationException
- wenn das Objekt nicht gespeichert werden darf.AbstractDBObject.updateCheck()
public void setParent(DBObjectNode parent) throws RemoteException
DBObjectNode
setParent
in interface DBObjectNode
parent
- Eltern-Element.RemoteException
DBObjectNode.setParent(de.willuhn.datasource.rmi.DBObjectNode)
Copyright © 2018. All rights reserved.