com.syncbuilder.storage
Class DatabaseImpl
java.lang.Object
|
+--com.syncbuilder.storage.DatabaseImpl
- Direct Known Subclasses:
- DatabaseImpl, DatabaseImpl, DatabaseImpl, DatabaseImpl, DatabaseImpl, DatabaseImpl, DatabaseImpl
- public abstract class DatabaseImpl
- extends java.lang.Object
DatabaseImpl is a helper class for specializations of Database.
It implements all the operations which are application-specific. It is subclassed
by several application-specific implementations.
- See Also:
Database,
DatabaseBase
|
Method Summary |
AppBlock |
createAppBlock()
|
AppBlock |
createAppBlock(byte[] contents)
|
Pref |
createPref(byte[] contents,
int id,
int version,
boolean backed_up)
|
abstract Record |
createRecord()
|
abstract Record |
createRecord(byte[] contents,
RecordID id,
int index,
int attr,
int cat)
|
Record |
createRecord(RecordID id)
|
Resource |
createResource()
|
Resource |
createResource(byte[] contents,
Char4 type,
int id,
int index)
|
Resource |
createResource(Char4 type,
int id)
|
SortBlock |
createSortBlock()
|
SortBlock |
createSortBlock(byte[] contents)
|
abstract Char4 |
getCreatorID()
Get the creator ID of the database.
|
abstract java.lang.String |
getDBName()
Get the name of the database.
|
abstract Char4 |
getType()
Get the type of the database.
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DatabaseImpl
public DatabaseImpl()
createRecord
public abstract Record createRecord()
createRecord
public Record createRecord(RecordID id)
createRecord
public abstract Record createRecord(byte[] contents,
RecordID id,
int index,
int attr,
int cat)
createResource
public Resource createResource()
createResource
public Resource createResource(Char4 type,
int id)
createResource
public Resource createResource(byte[] contents,
Char4 type,
int id,
int index)
createPref
public Pref createPref(byte[] contents,
int id,
int version,
boolean backed_up)
throws NoCreatorException
createAppBlock
public AppBlock createAppBlock()
createSortBlock
public SortBlock createSortBlock()
createAppBlock
public AppBlock createAppBlock(byte[] contents)
createSortBlock
public SortBlock createSortBlock(byte[] contents)
getCreatorID
public abstract 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.
getDBName
public abstract java.lang.String getDBName()
- Get the name of the database.
The name can have up to 31 characters.
getType
public abstract Char4 getType()
- Get the type of the database.
The type is a four-letter ID which is used to describe the type of database,
e.g. 'DATA'. It is non-essential, unless you want to create a new database.
This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.