com.syncbuilder.storage.generic
Class DatabaseImpl

java.lang.Object
  |
  +--com.syncbuilder.storage.DatabaseImpl
        |
        +--com.syncbuilder.storage.generic.DatabaseImpl

public class DatabaseImpl
extends DatabaseImpl

This implementation of DatabaseImpl is not made for any specific application. Its factory-methods will return generic implementations of the requested entities.


Constructor Summary
DatabaseImpl()
           
DatabaseImpl(Char4 creator, Char4 type, java.lang.String dbname)
           
DatabaseImpl(Char4 creator, java.lang.String dbname)
           
 
Method Summary
 AppBlock createAppBlock()
           
 AppBlock createAppBlock(byte[] contents)
           
 Pref createPref(byte[] contents, int id, int version, boolean backup)
           
 Record createRecord()
           
 Record createRecord(byte[] contents, RecordID id, int index, int attr, int cat)
           
 Resource createResource()
           
 Resource createResource(byte[] contents, Char4 type, int id, int index)
           
 SortBlock createSortBlock()
           
 SortBlock createSortBlock(byte[] contents)
           
 Char4 getCreatorID()
          Get the creator ID of the database.
 java.lang.String getDBName()
          Get the name of the database.
 Char4 getType()
           
 
Methods inherited from class com.syncbuilder.storage.DatabaseImpl
createRecord, createResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseImpl

public DatabaseImpl()

DatabaseImpl

public DatabaseImpl(Char4 creator,
                    java.lang.String dbname)

DatabaseImpl

public DatabaseImpl(Char4 creator,
                    Char4 type,
                    java.lang.String dbname)
Method Detail

createRecord

public Record createRecord()
Overrides:
createRecord in class DatabaseImpl

createRecord

public Record createRecord(byte[] contents,
                           RecordID id,
                           int index,
                           int attr,
                           int cat)
Overrides:
createRecord in class DatabaseImpl

createResource

public Resource createResource()
Overrides:
createResource in class DatabaseImpl

createResource

public Resource createResource(byte[] contents,
                               Char4 type,
                               int id,
                               int index)
Overrides:
createResource in class DatabaseImpl

createPref

public Pref createPref(byte[] contents,
                       int id,
                       int version,
                       boolean backup)
                throws NoCreatorException
Overrides:
createPref in class DatabaseImpl

createAppBlock

public AppBlock createAppBlock()
Overrides:
createAppBlock in class DatabaseImpl

createAppBlock

public AppBlock createAppBlock(byte[] contents)
Overrides:
createAppBlock in class DatabaseImpl

createSortBlock

public SortBlock createSortBlock()
Overrides:
createSortBlock in class DatabaseImpl

createSortBlock

public SortBlock createSortBlock(byte[] contents)
Overrides:
createSortBlock in class DatabaseImpl

getCreatorID

public Char4 getCreatorID()
Get the creator ID of the database. The creator ID is a unique four-letter ID which is used to link a database to the application which created it.
Overrides:
getCreatorID in class DatabaseImpl

getDBName

public java.lang.String getDBName()
Get the name of the database. The name can have up to 31 characters.
Overrides:
getDBName in class DatabaseImpl

getType

public Char4 getType()
Overrides:
getType in class DatabaseImpl


This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.