net.aerith.misao.database
Class CelestialDivisionMapDBAccessor

java.lang.Object
  |
  +--net.aerith.misao.database.CelestialDivisionMapDBAccessor

public class CelestialDivisionMapDBAccessor
extends java.lang.Object

The CelestialDivisionMapDBAccessor represents a sequential accessor to the XML elements within the specified circular area in the database classified by the R.A. and Decl.


Field Summary
protected  Folder db_folder
          The folder.
protected  FileSystem file_system
          The file system of the database.
protected  CelestialDivisionMapAccessor folder_accessor
          The sequential accessor of the folders.
protected  XmlDBHolder holder_class
          The holder class object of the XML records.
protected  CelestialDivisionMap map
          The celestial division map.
protected  XmlDBRecord record_class
          The class of the XML records.
protected  XmlDBAccessor xml_accessor
          The sequential accessor of the elements in one folder.
 
Constructor Summary
CelestialDivisionMapDBAccessor(FileSystem file_system, Folder db_folder, CelestialDivisionMap map, XmlDBHolder holder_class, XmlDBRecord record_class)
          Constructs a CelestialDivisionMapDBAccessor.
 
Method Summary
 XmlDBRecord getFirstElement()
          Gets the first element.
 XmlDBRecord getNextElement()
          Gets the next element.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

file_system

protected FileSystem file_system
The file system of the database.

db_folder

protected Folder db_folder
The folder.

map

protected CelestialDivisionMap map
The celestial division map.

folder_accessor

protected CelestialDivisionMapAccessor folder_accessor
The sequential accessor of the folders.

xml_accessor

protected XmlDBAccessor xml_accessor
The sequential accessor of the elements in one folder.

holder_class

protected XmlDBHolder holder_class
The holder class object of the XML records.

record_class

protected XmlDBRecord record_class
The class of the XML records.
Constructor Detail

CelestialDivisionMapDBAccessor

public CelestialDivisionMapDBAccessor(FileSystem file_system,
                                      Folder db_folder,
                                      CelestialDivisionMap map,
                                      XmlDBHolder holder_class,
                                      XmlDBRecord record_class)
Constructs a CelestialDivisionMapDBAccessor.
Parameters:
file_system - the file system of the database.
db_folder - the folder.
map - the celestial division map.
holder_class - the holder class object of the XML records.
record_class - the class object of the XML records.
Method Detail

getFirstElement

public XmlDBRecord getFirstElement()
                            throws java.io.IOException
Gets the first element.
Returns:
the first element.
Throws:
java.io.IOException - if I/O error occurs.

getNextElement

public XmlDBRecord getNextElement()
                           throws java.io.IOException
Gets the next element.
Returns:
the next element.
Throws:
java.io.IOException - if I/O error occurs.