org.jafer.databeans
Class RecordAdaptor

java.lang.Object
  extended by org.jafer.interfaces.Databean
      extended by org.jafer.databeans.Adaptor
          extended by org.jafer.databeans.RecordAdaptor
All Implemented Interfaces:
java.io.Serializable, Present, Search

public class RecordAdaptor
extends Adaptor

transforms a record via getCurrentRecord method using templates object (eg. recordAdaptor.xsl - specified via server.xml). If sourceSchema is specified check is done on schema of record prior to transformation

Version:
1.0
Author:
Antony Corfield; Matthew Dovey; Colin Tatham
See Also:
Serialized Form

Constructor Summary
RecordAdaptor()
           
 
Method Summary
 Field getCurrentRecord()
          Get current record
private  org.w3c.dom.Element transformRecord(org.w3c.dom.Element recordRoot, java.lang.String targetSchema)
           
 
Methods inherited from class org.jafer.databeans.Adaptor
getCurrentDatabase, getDatabases, getDatabean, getElementSpec, getNumberOfResults, getNumberOfResults, getQuery, getRecordCursor, getRecordSchema, getResultSetName, getSearchException, getSearchException, getSourceSchema, getTargetSchema, getTransform, isCheckRecordFormat, isParseQuery, saveQuery, setCheckRecordFormat, setDatabases, setDatabases, setDatabean, setElementSpec, setParseQuery, setRecordCursor, setRecordSchema, setResultSetName, setSourceSchema, setTargetSchema, setTransform, submitQuery
 
Methods inherited from class org.jafer.interfaces.Databean
getCacheSupport, getPresentSupport, getScanSupport, getSearchSupport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordAdaptor

public RecordAdaptor()
Method Detail

getCurrentRecord

public Field getCurrentRecord()
                       throws JaferException
Description copied from interface: Present
Get current record

Specified by:
getCurrentRecord in interface Present
Overrides:
getCurrentRecord in class Adaptor
Returns:
record
Throws:
JaferException

transformRecord

private org.w3c.dom.Element transformRecord(org.w3c.dom.Element recordRoot,
                                            java.lang.String targetSchema)
                                     throws JaferException
Throws:
JaferException