net.sourceforge.jpalm.palmdb
Class PalmDBImpl

java.lang.Object
  extended by net.sourceforge.jpalm.palmdb.PalmDBImpl
All Implemented Interfaces:
PalmDB

public class PalmDBImpl
extends java.lang.Object
implements PalmDB

An implementation of the Palm database interface.

See Also:
PalmDB

Field Summary
protected  ApplicationInfo applicationInfo
           
protected  Header header
           
protected  java.util.List<Record> records
           
protected  SortInfo sortInfo
           
 
Constructor Summary
PalmDBImpl()
          Creates a new Palm database with a header and no records.
 
Method Summary
 ApplicationInfo getApplicationInfo()
          Gets the application info block.
 Header getHeader()
          Gets the header.
 java.util.List<Record> getRecords()
          Gets the records.
 SortInfo getSortInfo()
          Gets the sort info block.
 void setApplicationInfo(ApplicationInfo applicationInfo)
          Sets the application info block.
 void setHeader(Header header)
          Sets the header.
 void setRecords(java.util.List<Record> records)
          Sets the records.
 void setSortInfo(SortInfo sortInfo)
          Sets the sort info block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

header

protected Header header

applicationInfo

protected ApplicationInfo applicationInfo

sortInfo

protected SortInfo sortInfo

records

protected java.util.List<Record> records
Constructor Detail

PalmDBImpl

public PalmDBImpl()
Creates a new Palm database with a header and no records.

Method Detail

getApplicationInfo

public ApplicationInfo getApplicationInfo()
Description copied from interface: PalmDB
Gets the application info block.

Specified by:
getApplicationInfo in interface PalmDB
Returns:
the application info block

setApplicationInfo

public void setApplicationInfo(ApplicationInfo applicationInfo)
Description copied from interface: PalmDB
Sets the application info block.

Specified by:
setApplicationInfo in interface PalmDB
Parameters:
applicationInfo - the application info block

getHeader

public Header getHeader()
Description copied from interface: PalmDB
Gets the header.

Specified by:
getHeader in interface PalmDB
Returns:
the header

setHeader

public void setHeader(Header header)
Description copied from interface: PalmDB
Sets the header.

Specified by:
setHeader in interface PalmDB
Parameters:
header - the header

getRecords

public java.util.List<Record> getRecords()
Description copied from interface: PalmDB
Gets the records.

Specified by:
getRecords in interface PalmDB
Returns:
the records

setRecords

public void setRecords(java.util.List<Record> records)
Description copied from interface: PalmDB
Sets the records.

Specified by:
setRecords in interface PalmDB
Parameters:
records - the records

getSortInfo

public SortInfo getSortInfo()
Description copied from interface: PalmDB
Gets the sort info block.

Specified by:
getSortInfo in interface PalmDB
Returns:
the sort info block

setSortInfo

public void setSortInfo(SortInfo sortInfo)
Description copied from interface: PalmDB
Sets the sort info block.

Specified by:
setSortInfo in interface PalmDB
Parameters:
sortInfo - the sort info block