| com.jcorporate.expresso.core.dataobjects.Defineable
All known Subclasses: com.jcorporate.expresso.core.dataobjects.jdbc.JoinedDataObject,
Defineable | public interface Defineable (Code) | | Interface for providing auto-definition of DataObjects.
Many DataObjects needs something other than just classname to differentiate
themselves. For example, AutoDBObject needs to know the table name to
automatically initialize to. JoinedDataObject needs a location of the xml
definition file. Classes that implement the Defineable interface should
get their
setDefinitionName() called before the object is actually used in any manner.
author: Michael Rimov |
Method Summary | |
public String | getDefinitionName() Retrieve the key to the definition name for the given DBObject. | public void | setDefinitionName(String definitionName) Use this method to set the key to the definition name for the Defineable
database object. |
getDefinitionName | public String getDefinitionName()(Code) | | Retrieve the key to the definition name for the given DBObject.
the definition name. |
setDefinitionName | public void setDefinitionName(String definitionName) throws DataException(Code) | | Use this method to set the key to the definition name for the Defineable
database object. The actual meaning of the definitionName may be different.
For example, AutoDBObject's definition name is the database table name.
JoinedDataObject's definition name is the classpath URL location to the
definition XML file.
Parameters: definitionName - java.lang.String, the actual definition of thedataobject. throws: DataException - if the DataObject is unable to initialize itselfwith the given definition name. |
|
|