A class to store information on a handheld database.
This class holds the information on a single database.
checkDatabaseFlag
public boolean checkDatabaseFlag(char c)
Check the database flags against a char indicator to see if the flag is set.
c - char flag to check if set.
checkMiscFlag
public boolean checkMiscFlag(byte byte0)
Check the Misc flags against a byte indicator to see if the flag is set.
byte0 - byte flag to check if set.
getBackupTime
public DLP_Date getBackupTime()
Return the last backup time in DLP_Date format.
getCreationTime
public DLP_Date getCreationTime()
Return the creation time of this database in DLP_Date format.
getCreator
public int getCreator()
Return the creator ID for this database as an int value.
getCreatorID
public String getCreatorID()
Return the creator ID for this database as an String value.
getDatabaseFlags
public char getDatabaseFlags()
Return the database flags as a char value.
getDatabaseIndex
public char getDatabaseIndex()
Return the database index as a char value.
getMiscFlags
public byte getMiscFlags()
Return the Misc flags as a byte value.
getModificationNumber
public int getModificationNumber()
Return the modification number of this database as an int value.
getModificationTime
public DLP_Date getModificationTime()
Return the last modification time of this database as a DLP_Date object.
- DLP_Date modificationTime.
getName
public String getName()
Return the name of this database as a String value.
getType
public int getType()
Return the type of this database as an int value.
getTypeID
public String getTypeID()
Return the type ID of this database as a String value.
- java.lang.String type ID.
getVersion
public int getVersion()
Return the version of this database as an int value.
hasDatabaseFlag
public boolean hasDatabaseFlag(char testFlag)
Tests to see wether or not this DLPDatabaseInfo object has the specified database flag(s) set.
testFlag - the flag(s) to test.
- true if the specified flag(s) are set, false otherwise.
hasMiscFlag
public boolean hasMiscFlag(byte testFlag)
Tests to see wether or not this DLPDatabaseInfo object has the specified misc flag(s) set.
testFlag - the flag(s) to test.
- true if the specified flag(s) are set, false otherwise.
setBackupTime
public void setBackupTime(DLP_Date dlp_date)
Set the backup time from a DLP_Date object.
dlp_date - DLP_Date object.
setCreationTime
public void setCreationTime(DLP_Date dlp_date)
Set the creation time from a DLP_Date object.
dlp_date - DLP_Date object.
setCreator
public void setCreator(int i)
Set the creator ID from an int value.
i - int value of new creator ID.
setCreatorID
public void setCreatorID(String id)
Set the creator of this database from a four-chcracter String value.
If the String exceeds 4 characters, only the first four will be used.
id - the named creator identifier.
setDatabaseFlags
public void setDatabaseFlags(char c)
Set the database flags from a char value.
c - char value of database flags.
setDatabaseIndex
public void setDatabaseIndex(char c)
Set the database index from a char value.
c - char value of new database index.
setMiscFlags
public void setMiscFlags(byte flags)
Set the misc flags from a byte value.
flags - byte value of misc flags.
setModificationNumber
public void setModificationNumber(int i)
Set the modification number from an int value.
i - int value of new modification number.
setModificationTime
public void setModificationTime(DLP_Date dlp_date)
Set the modification number from an DLP_Date value.
dlp_date - new DLP_Date modification time value.
setName
public void setName(String s)
Set the name of this database.
setType
public void setType(int i)
Set the type of this database from an int value.
setTypeID
public void setTypeID(String id)
Set the type of this database from a four-chcracter String value.
If the String exceeds 4 characters, only the first four will be used.
id - the named type identifier.
setVersion
public void setVersion(int i)
Set the version of this database from an int value.
i - int new version value.
setupToInstallNewer
public void setupToInstallNewer()
Prepares this database info object to be used when writing a database that is already open.
If this database is already open on the handheld, set its write flags to install newer,
and modify its name by either adding or removing a space from the end.
toString
public String toString()
Return a String representation of this database info object.