palmed.io
Class RecordFactory

java.lang.Object
  extended by palmed.io.RecordFactory
All Implemented Interfaces:
IRecordFactory

public final class RecordFactory
extends java.lang.Object
implements IRecordFactory

This class implements a record factory based on a record store.

Version:
$Revision$ $Date$
Author:
Mathieu Champlon

Constructor Summary
RecordFactory(java.lang.String name)
          Create a record factory.
 
Method Summary
 IRecord createRecord(ISerializable serializable)
          Create a record.
 IRecord getIndex(ISerializable serializable)
          Get an index.
 void purge()
          Destroy all records.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordFactory

public RecordFactory(java.lang.String name)
Create a record factory.

Parameters:
name - the record store name
Method Detail

createRecord

public IRecord createRecord(ISerializable serializable)
Create a record.

Specified by:
createRecord in interface IRecordFactory
Parameters:
serializable - the serializable
Returns:
a new record

getIndex

public IRecord getIndex(ISerializable serializable)
Get an index.

Specified by:
getIndex in interface IRecordFactory
Parameters:
serializable - the serializable
Returns:
a new record.

purge

public void purge()
Destroy all records.

Specified by:
purge in interface IRecordFactory


Copyright © 2004-2006 PalmEd. All Rights Reserved.