com.syncbuilder.storage
Class DBInfo

java.lang.Object
  |
  +--com.syncbuilder.storage.DBInfo

public class DBInfo
extends java.lang.Object

Meta-information of a database.


Field Summary
static int FLAG_APPINFO_DIRTY
           
static int FLAG_BACKUP
           
static int FLAG_COPY_PREVENTION
           
static int FLAG_NEWER
           
static int FLAG_OPEN
           
static int FLAG_READONLY
           
static int FLAG_RESET
           
static int FLAG_RESOURCE
           
static int MISCFLAG_EXCLUDE_FROM_SYNC
           
static int MISCFLAG_RAM_BASED
           
static int UNKNOWN_DB_INDEX
          The real value of the index is unknown
 
Constructor Summary
DBInfo(java.lang.String name, Char4 type, Char4 creator, int flags, int miscflags, int version, int modnum, int index, int card, java.util.Date create_date, java.util.Date modify_date, java.util.Date backup_date)
          Construct a new DBInfo.
 
Method Summary
 java.util.Date getBackupDate()
           
 int getCard()
          Return the number of the card, on which the database is located.
 java.util.Date getCreationDate()
           
 Char4 getCreator()
          Return the creator ID of the database.
 int getFlags()
           
 int getIndex()
          Return the index of the database.
 int getMiscFlags()
           
 java.util.Date getModificationDate()
           
 int getModificationNumber()
          Return the modification number of the database.
 java.lang.String getName()
          Return the name of the database.
 Char4 getType()
          Return the type of the database.
 int getVersion()
          Return the version of the database.
 boolean isAppInfoDirty()
          Has the AppInfo of this database been changed?
 boolean isBackup()
          Is this a database scheduled for backup?
 boolean isCopyPrevention()
          Shall the copying (IR beaming) of this database be prevented?
 boolean isExcludeFromSync()
          Shall this database be excluded from all synchronization?
 boolean isNewer()
          May this database be overwritten by newer databases, even though it is currently opened?
 boolean isOpen()
          Is this database open?
 boolean isRamBased()
          Is this database located in RAM?
 boolean isReadOnly()
          Is this database read-only?
 boolean isReset()
          Shall the device be reset after this database has been installed?
 boolean isResource()
          Is this a resource database?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FLAG_READONLY

public static final int FLAG_READONLY

FLAG_RESOURCE

public static final int FLAG_RESOURCE

FLAG_OPEN

public static final int FLAG_OPEN

FLAG_BACKUP

public static final int FLAG_BACKUP

FLAG_APPINFO_DIRTY

public static final int FLAG_APPINFO_DIRTY

FLAG_NEWER

public static final int FLAG_NEWER

FLAG_RESET

public static final int FLAG_RESET

FLAG_COPY_PREVENTION

public static final int FLAG_COPY_PREVENTION

MISCFLAG_EXCLUDE_FROM_SYNC

public static final int MISCFLAG_EXCLUDE_FROM_SYNC

MISCFLAG_RAM_BASED

public static final int MISCFLAG_RAM_BASED

UNKNOWN_DB_INDEX

public static final int UNKNOWN_DB_INDEX
The real value of the index is unknown
Constructor Detail

DBInfo

public DBInfo(java.lang.String name,
              Char4 type,
              Char4 creator,
              int flags,
              int miscflags,
              int version,
              int modnum,
              int index,
              int card,
              java.util.Date create_date,
              java.util.Date modify_date,
              java.util.Date backup_date)
Construct a new DBInfo.
Method Detail

getName

public java.lang.String getName()
Return the name of the database.

getType

public Char4 getType()
Return the type of the database.

getCreator

public Char4 getCreator()
Return the creator ID of the database.

getVersion

public int getVersion()
Return the version of the database. This is typically also the version number of the application which is contained within that database.

getModificationNumber

public int getModificationNumber()
Return the modification number of the database.

getIndex

public int getIndex()
Return the index of the database.
Returns:
the index or UNKNOWN_DB_INDEX.

getCard

public int getCard()
Return the number of the card, on which the database is located.

getFlags

public int getFlags()

getMiscFlags

public int getMiscFlags()

getCreationDate

public java.util.Date getCreationDate()

getModificationDate

public java.util.Date getModificationDate()

getBackupDate

public java.util.Date getBackupDate()

isReadOnly

public boolean isReadOnly()
Is this database read-only?

isResource

public boolean isResource()
Is this a resource database?
Returns:
true = resources, false = records

isOpen

public boolean isOpen()
Is this database open?

isBackup

public boolean isBackup()
Is this a database scheduled for backup?

isAppInfoDirty

public boolean isAppInfoDirty()
Has the AppInfo of this database been changed?

isNewer

public boolean isNewer()
May this database be overwritten by newer databases, even though it is currently opened?

isReset

public boolean isReset()
Shall the device be reset after this database has been installed?

isCopyPrevention

public boolean isCopyPrevention()
Shall the copying (IR beaming) of this database be prevented?

isExcludeFromSync

public boolean isExcludeFromSync()
Shall this database be excluded from all synchronization?

isRamBased

public boolean isRamBased()
Is this database located in RAM?

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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