|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jpalm.mobiledb.MobileDB
public class MobileDB
A MobileDB database.
Field Summary | |
---|---|
protected DatabaseInfo |
databaseInfo
|
protected java.util.List<DataRecord> |
dataRecords
|
protected FieldDefinitionsRecord |
fieldDefinitionsRecord
|
protected FieldDisplaySizesRecord |
fieldDisplaySizesRecord
|
protected FieldLabelsRecord |
fieldLabelsRecord
|
protected java.util.List<FilteredDataRecord> |
filteredDataRecords
|
protected Header |
header
|
protected PreferencesRecord |
preferencesRecord
|
protected SortInfo |
sortInfo
|
Constructor Summary | |
---|---|
MobileDB()
Creates a new MobileDB database with sane defaults, no records, and no fields. |
|
MobileDB(java.util.Map<java.lang.String,Definition> fields)
Creates a new MobileDB database with sane defaults and no records. |
Method Summary | |
---|---|
ApplicationInfo |
getApplicationInfo()
Needed for PalmDB interface; don't use this unless you know what you are doing. |
java.util.Date |
getCreationDate()
Gets the creation date. |
DatabaseInfo |
getDatabaseInfo()
Gets the database info block. |
java.util.List<DataRecord> |
getDataRecords()
Gets the data records. |
java.util.List<Definition> |
getFieldDefinitions()
Gets the field definitions. |
FieldDefinitionsRecord |
getFieldDefinitionsRecord()
Gets the field definitions record. |
java.util.List<java.lang.Integer> |
getFieldDisplaySizes()
Gets the field display sizes. |
FieldDisplaySizesRecord |
getFieldDisplaySizesRecord()
Gets the field display sizes record. |
java.util.List<java.lang.String> |
getFieldLabels()
Gets the field labels. |
FieldLabelsRecord |
getFieldLabelsRecord()
Gets the field labels record. |
java.util.List<FilteredDataRecord> |
getFilteredDataRecords()
Gets the filtered data records. |
Header |
getHeader()
Needed for PalmDB interface; don't use this unless you know what you are doing. |
java.util.Date |
getModificationDate()
Gets the modification date. |
java.lang.String |
getName()
Gets the name of this database. |
java.lang.String |
getNote()
Sets the database info note. |
PreferencesRecord |
getPreferencesRecord()
Gets the preferences record. |
java.util.List<Record> |
getRecords()
Needed for PalmDB interface; don't use this unless you know what you are doing. |
SortInfo |
getSortInfo()
Needed for PalmDB interface; don't use this unless you know what you are doing. |
java.lang.Object |
getUserData()
Gets the user data. |
byte[] |
getUserDataAsByteArray()
Gets the user data. |
void |
setApplicationInfo(ApplicationInfo applicationInfo)
Needed for PalmDB interface; don't use this unless you know what you are doing. |
void |
setCreationDate(java.util.Date date)
Sets the creation date. |
void |
setDatabaseInfo(DatabaseInfo databaseInfo)
Sets the database info block. |
void |
setDataRecords(java.util.List<DataRecord> dataRecords)
Sets the data records. |
void |
setFieldDefinitions(java.util.List<Definition> definitions)
Sets the field definitions |
void |
setFieldDefinitionsRecord(FieldDefinitionsRecord fieldDefinitionsRecord)
Sets the field definitions record. |
void |
setFieldDisplaySizes(java.util.List<java.lang.Integer> sizes)
Sets the field display sizes. |
void |
setFieldDisplaySizesRecord(FieldDisplaySizesRecord fieldDisplaySizesRecord)
Sets the field display sizes record. |
void |
setFieldLabels(java.util.List<java.lang.String> fieldLabels)
Sets the field labels. |
void |
setFieldLabelsRecord(FieldLabelsRecord fieldLabelsRecord)
Sets the field labels record. |
void |
setFilteredDataRecords(java.util.List<FilteredDataRecord> filteredDataRecords)
Sets the filtered data records. |
void |
setHeader(Header header)
Needed for PalmDB interface; don't use this unless you know what you are doing. |
void |
setModificationDate(java.util.Date date)
Sets the modification date. |
void |
setName(java.lang.String name)
Sets the name of this database. |
void |
setNote(java.lang.String note)
Gets the database info note. |
void |
setPreferencesRecord(PreferencesRecord preferencesRecord)
Sets the preferences record. |
void |
setRecords(java.util.List<Record> records)
Needed for PalmDB interface; don't use this unless you know what you are doing. |
void |
setSortInfo(SortInfo sortInfo)
Needed for PalmDB interface; don't use this unless you know what you are doing. |
void |
setUserData(java.io.Serializable object)
Sets the user data. |
void |
setUserDataAsByteArray(byte[] data)
Sets the user data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Header header
protected SortInfo sortInfo
protected DatabaseInfo databaseInfo
protected java.util.List<DataRecord> dataRecords
protected java.util.List<FilteredDataRecord> filteredDataRecords
protected FieldDefinitionsRecord fieldDefinitionsRecord
protected FieldLabelsRecord fieldLabelsRecord
protected FieldDisplaySizesRecord fieldDisplaySizesRecord
protected PreferencesRecord preferencesRecord
Constructor Detail |
---|
public MobileDB(java.util.Map<java.lang.String,Definition> fields)
public MobileDB()
Method Detail |
---|
public DatabaseInfo getDatabaseInfo()
public void setDatabaseInfo(DatabaseInfo databaseInfo)
databaseInfo
- the database info blockpublic java.util.Date getCreationDate()
Header.getCreationDate()
public void setCreationDate(java.util.Date date)
date
- the creation dateHeader.setCreationDate(net.sourceforge.jpalm.palmdb.Date)
public java.util.Date getModificationDate()
Header.getModificationDate()
public void setModificationDate(java.util.Date date)
date
- the modification dateHeader.setModificationDate(net.sourceforge.jpalm.palmdb.Date)
public java.lang.String getName()
Header.getName()
public void setName(java.lang.String name)
name
- the nameHeader.setName(String)
public java.util.List<DataRecord> getDataRecords()
public void setDataRecords(java.util.List<DataRecord> dataRecords)
dataRecords
- the data recordspublic FieldDefinitionsRecord getFieldDefinitionsRecord()
public void setFieldDefinitionsRecord(FieldDefinitionsRecord fieldDefinitionsRecord)
fieldDefinitionsRecord
- the field definitions recordpublic java.util.List<Definition> getFieldDefinitions()
public void setFieldDefinitions(java.util.List<Definition> definitions)
definitions
- the field definitionspublic FieldDisplaySizesRecord getFieldDisplaySizesRecord()
public void setFieldDisplaySizesRecord(FieldDisplaySizesRecord fieldDisplaySizesRecord)
fieldDisplaySizesRecord
- the field display sizes recordpublic java.util.List<java.lang.Integer> getFieldDisplaySizes()
public void setFieldDisplaySizes(java.util.List<java.lang.Integer> sizes)
sizes
- the field display sizespublic FieldLabelsRecord getFieldLabelsRecord()
public void setFieldLabelsRecord(FieldLabelsRecord fieldLabelsRecord)
fieldLabelsRecord
- the field labels recordpublic java.util.List<java.lang.String> getFieldLabels()
public void setFieldLabels(java.util.List<java.lang.String> fieldLabels)
fieldLabels
- the field labelspublic java.util.List<FilteredDataRecord> getFilteredDataRecords()
public void setFilteredDataRecords(java.util.List<FilteredDataRecord> filteredDataRecords)
filteredDataRecords
- the filtered data recordspublic PreferencesRecord getPreferencesRecord()
public void setPreferencesRecord(PreferencesRecord preferencesRecord)
preferencesRecord
- the preferences recordpublic java.lang.String getNote()
public void setNote(java.lang.String note)
note
- the notepublic void setUserData(java.io.Serializable object) throws java.io.IOException
object
- the object to embed in the database
java.io.IOException
- if an error occurs during serializationSortInfo
,
PalmDB.setSortInfo(SortInfo)
public java.lang.Object getUserData() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
- if an error occurs during deserialization
java.lang.ClassNotFoundException
- if the class of the serialized object cannot be foundpublic void setUserDataAsByteArray(byte[] data)
data
- the data to embedSortInfo
,
PalmDB.setSortInfo(SortInfo)
public byte[] getUserDataAsByteArray()
public java.util.List<Record> getRecords()
PalmDB
interface; don't use this unless you know what you are doing.
Gets the records.
getRecords
in interface PalmDB
public void setRecords(java.util.List<Record> records)
PalmDB
interface; don't use this unless you know what you are doing.
Sets the records.
setRecords
in interface PalmDB
records
- the recordspublic Header getHeader()
PalmDB
interface; don't use this unless you know what you are doing.
Gets the header.
getHeader
in interface PalmDB
public void setHeader(Header header)
PalmDB
interface; don't use this unless you know what you are doing.
Sets the header.
setHeader
in interface PalmDB
header
- the headerpublic ApplicationInfo getApplicationInfo()
PalmDB
interface; don't use this unless you know what you are doing.
Gets the application info block.
getApplicationInfo
in interface PalmDB
public void setApplicationInfo(ApplicationInfo applicationInfo)
PalmDB
interface; don't use this unless you know what you are doing.
Sets the application info block.
setApplicationInfo
in interface PalmDB
applicationInfo
- the application info blockpublic SortInfo getSortInfo()
PalmDB
interface; don't use this unless you know what you are doing.
Gets the sort info block.
getSortInfo
in interface PalmDB
public void setSortInfo(SortInfo sortInfo)
PalmDB
interface; don't use this unless you know what you are doing.
Sets the sort info block.
setSortInfo
in interface PalmDB
sortInfo
- the sort info block
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |