org.sourceforge.jemm.database.components.interfaces
Interface DBRootHandler

All Known Implementing Classes:
DefaultDBRootHandler

public interface DBRootHandler

Author:
Rory Graves

Method Summary
 ID getRoot(java.lang.String rootName)
          Return the current value of the root.
 void setObjectStatusListener(ObjectStatusListener objectStatusListener)
           
 void setRoot(java.lang.String rootName, ID newValue)
           
 ID setRootIfNull(java.lang.String rootName, ID newValue)
          Set the given root, if the current value of the root is null.
 

Method Detail

setObjectStatusListener

void setObjectStatusListener(ObjectStatusListener objectStatusListener)

setRoot

void setRoot(java.lang.String rootName,
             ID newValue)

setRootIfNull

ID setRootIfNull(java.lang.String rootName,
                 ID newValue)
Set the given root, if the current value of the root is null.

Parameters:
rootName - The name of the root.
newValue - The new value to set
Returns:
The old value of the root, (i.e. the current value if the set fails, or null if it does)

getRoot

ID getRoot(java.lang.String rootName)
Return the current value of the root.

Parameters:
rootName - The name of the root.
Returns:
The current value of the root reference 'rootName'


Copyright © 2009. All Rights Reserved.