All Packages  This Package  Class Hierarchy  Class Search  Index

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

  Summary

public class  DatabaseImpl
     extends com.syncbuilder.storage.DatabaseImpl
{
          // Constructors 2
     public DatabaseImpl();
     public DatabaseImpl(Char4, String);

          // Methods 11
     public AppBlock createAppBlock();
     public AppBlock createAppBlock(byte[]);
     public Pref createPref(byte[], int, int, boolean) throws NoCreatorException;
     public Record createRecord();
     public Record createRecord(byte[], RecordID, int, int, int);
     public Resource createResource();
     public Resource createResource(byte[], Char4, int, int);
     public SortBlock createSortBlock();
     public SortBlock createSortBlock(byte[]);
     public Char4 getCreatorID();
     public String getDBName();
}

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




  Constructors

· DatabaseImpl

Summary  |  Top

   public DatabaseImpl() 


· DatabaseImpl

Summary  |  Top
   public DatabaseImpl(Char4 creator, 
                       String dbname) 


  Methods

· createRecord

Summary  |  Top
   public Record createRecord() 
Overrides:
createRecord in class DatabaseImpl


· createRecord

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


· createResource

Summary  |  Top
   public Resource createResource() 
Overrides:
createResource in class DatabaseImpl


· createResource

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


· createPref

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


· createAppBlock

Summary  |  Top
   public AppBlock createAppBlock() 
Overrides:
createAppBlock in class DatabaseImpl


· createAppBlock

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


· createSortBlock

Summary  |  Top
   public SortBlock createSortBlock() 
Overrides:
createSortBlock in class DatabaseImpl


· createSortBlock

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


· getCreatorID

Summary  |  Top
   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

Summary  |  Top
   public String getDBName() 

Get the name of the database. The name can have up to 31 characters.

Overrides:
getDBName in class DatabaseImpl


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7