org.enhydra.barracuda.contrib.sam.data
Class DefaultConfig

java.lang.Object
  extended byorg.enhydra.barracuda.contrib.sam.data.DefaultConfig
All Implemented Interfaces:
Config

public abstract class DefaultConfig
extends Object
implements Config


Field Summary
protected  String formName
           
protected static org.apache.log4j.Logger logger
           
protected  String MAP
           
protected  String OID
           
protected  Class viewEvent
           
protected  String xmlFormName
           
 
Constructor Summary
DefaultConfig(Class viewEvent, String xmlFormName, String formName)
           
 
Method Summary
abstract  DataObject getDataObject(String oid)
           
 String getFormName()
           
 String getMapName()
           
 String getOidName()
           
 ViewEvent getViewEvent()
          returns a view event called for displaying the form
 String getXmlFormName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger

viewEvent

protected Class viewEvent

xmlFormName

protected String xmlFormName

formName

protected String formName

MAP

protected String MAP

OID

protected String OID
Constructor Detail

DefaultConfig

public DefaultConfig(Class viewEvent,
                     String xmlFormName,
                     String formName)
Method Detail

getViewEvent

public ViewEvent getViewEvent()
Description copied from interface: Config
returns a view event called for displaying the form

Specified by:
getViewEvent in interface Config

getXmlFormName

public String getXmlFormName()
Specified by:
getXmlFormName in interface Config
Returns:
name of the XML Form, this string is used by XmlFormFactory

getFormName

public String getFormName()
Specified by:
getFormName in interface Config

getMapName

public String getMapName()
Specified by:
getMapName in interface Config

getOidName

public String getOidName()
Specified by:
getOidName in interface Config
Returns:
name of the identifier field in the DataObject

getDataObject

public abstract DataObject getDataObject(String oid)
                                  throws DataObjectException
Specified by:
getDataObject in interface Config
Returns:
data object identified by the given oid. Normally, this would be implemented by a SQL query
Throws:
DataObjectException


Copyright © 2003 BarracudaMVC.org All Rights Reserved.