org.jafer.interfaces
Interface Present

All Known Implementing Classes:
AbstractClient, Adaptor, DatabeanManager, JDBC, MySQLDatabean, QueryAdaptor, RecordAdaptor, SRWClient, TDSDatabean, ZClient

public interface Present

Methods for record retrieval

Author:
Antony Corfield; Matthew Dovey; Colin Tatham

Method Summary
 java.lang.String getCurrentDatabase()
          Get database of current record
 Field getCurrentRecord()
          Get current record
 java.lang.String getElementSpec()
          Get current element specification setting
 int getRecordCursor()
          Get the current record position cursor
 java.lang.String getRecordSchema()
          Get currently set record schema
 boolean isCheckRecordFormat()
          Get record schema checking setting
 void setCheckRecordFormat(boolean checkRecordFormat)
          Throw exception is record schema not preferred schema
 void setElementSpec(java.lang.String elementSpec)
          Set element specification for record retrieval
 void setRecordCursor(int nRecord)
          Set the current record cursor
 void setRecordSchema(java.lang.String schema)
          Set current prefered record schema
 

Method Detail

setRecordCursor

void setRecordCursor(int nRecord)
                     throws JaferException
Set the current record cursor

Parameters:
nRecord - Record position (starting at 1)
Throws:
JaferException

getRecordCursor

int getRecordCursor()
Get the current record position cursor

Returns:
get record position

setCheckRecordFormat

void setCheckRecordFormat(boolean checkRecordFormat)
Throw exception is record schema not preferred schema

Parameters:
checkRecordFormat - setting of record schema checking

isCheckRecordFormat

boolean isCheckRecordFormat()
Get record schema checking setting

Returns:
record checking setting

setElementSpec

void setElementSpec(java.lang.String elementSpec)
Set element specification for record retrieval

Parameters:
elementSpec - element specification

getElementSpec

java.lang.String getElementSpec()
Get current element specification setting

Returns:
element specification

setRecordSchema

void setRecordSchema(java.lang.String schema)
Set current prefered record schema

Parameters:
schema - record schema

getRecordSchema

java.lang.String getRecordSchema()
Get currently set record schema

Returns:
record schema

getCurrentRecord

Field getCurrentRecord()
                       throws JaferException
Get current record

Returns:
record
Throws:
JaferException

getCurrentDatabase

java.lang.String getCurrentDatabase()
                                    throws JaferException
Get database of current record

Returns:
database
Throws:
JaferException