Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
F
G
H
I
K
L
M
N
O
R
S
T
U
A
accept(Record)
- Method in interface com.martiansoftware.trivialpersist.
RecordFilter
Returns true iff the specified record should be included in the current table select.
accept(Record)
- Method in class com.martiansoftware.trivialpersist.
SeriesRecordFilter
accept(Record)
- Method in class com.martiansoftware.trivialpersist.helpers.
FieldEqualsFilter
accept(Record)
- Method in class com.martiansoftware.trivialpersist.helpers.
NullFieldFilter
add(Comparator)
- Method in class com.martiansoftware.trivialpersist.
SeriesComparator
Adds a Comparator to this SeriesComparator.
add(RecordFilter)
- Method in class com.martiansoftware.trivialpersist.
SeriesRecordFilter
Adds a RecordFilter to this SeriesRecordFilter.
asWriteable()
- Method in class com.martiansoftware.trivialpersist.
Record
Returns a copy of this Record that may be modified and saved.
B
BOOLEAN
- Static variable in class com.martiansoftware.trivialpersist.
Types
The Boolean type
C
com.martiansoftware.trivialpersist
- package com.martiansoftware.trivialpersist
com.martiansoftware.trivialpersist.helpers
- package com.martiansoftware.trivialpersist.helpers
comparatorNames()
- Method in class com.martiansoftware.trivialpersist.
Table
Returns an Iterator over all comparator names available
compare(Object, Object)
- Method in class com.martiansoftware.trivialpersist.
SeriesComparator
compare(Object, Object)
- Method in class com.martiansoftware.trivialpersist.helpers.
FieldComparator
Performs the field comparison
compareTo(Object)
- Method in class com.martiansoftware.trivialpersist.
Record
Compares this Record's key with that of the specified object.
create()
- Method in class com.martiansoftware.trivialpersist.
Table
Creates a new, writeable Record in this Table.
createCopy(Record)
- Method in class com.martiansoftware.trivialpersist.
Table
Creates a new, writeable Record in this Table with all fields (except its Key) copied from the specified Record.
D
DATE
- Static variable in class com.martiansoftware.trivialpersist.
Types
The Date type
DOUBLE
- Static variable in class com.martiansoftware.trivialpersist.
Types
The Double type
declareField(String, String)
- Method in class com.martiansoftware.trivialpersist.
Table
Declares a field (name and type) for this Table
delete()
- Method in class com.martiansoftware.trivialpersist.
Record
Deletes this record from the store (and disk).
F
FieldComparator
- class com.martiansoftware.trivialpersist.helpers.
FieldComparator
.
A simple field-based comparator that can be used in selects.
FieldComparator(String)
- Constructor for class com.martiansoftware.trivialpersist.helpers.
FieldComparator
Creates a new FieldComparator for the specified field in ascending order
FieldComparator(String, int)
- Constructor for class com.martiansoftware.trivialpersist.helpers.
FieldComparator
Creates a new FieldComparator for the specified field in the specified order
FieldEqualsFilter
- class com.martiansoftware.trivialpersist.helpers.
FieldEqualsFilter
.
FieldEqualsFilter(String, Object)
- Constructor for class com.martiansoftware.trivialpersist.helpers.
FieldEqualsFilter
filterNames()
- Method in class com.martiansoftware.trivialpersist.
Table
Returns an Iterator over all filter names available
G
getBoolean(String)
- Method in class com.martiansoftware.trivialpersist.
Record
Retrieves a boolean value from this record
getByKey(MaildirID)
- Method in class com.martiansoftware.trivialpersist.
Table
Returns the record associated with the specified Key, or null if no such record exists.
getComparator(String)
- Method in class com.martiansoftware.trivialpersist.
Table
Returns the requested comparator.
getDate(String)
- Method in class com.martiansoftware.trivialpersist.
Record
Retrieves a date field from this record
getDate(String, DateFormat)
- Method in class com.martiansoftware.trivialpersist.
Record
Retrieves a date field from this record as a String.
getDouble(String)
- Method in class com.martiansoftware.trivialpersist.
Record
Retrieves a double value from this record
getFilter(String)
- Method in class com.martiansoftware.trivialpersist.
Table
Returns the requested RecordFilter, or null if no such filter is defined.
getKey()
- Method in class com.martiansoftware.trivialpersist.
Record
Returns this record's key
getLong(String)
- Method in class com.martiansoftware.trivialpersist.
Record
Retrieves a long value from this record
getName()
- Method in class com.martiansoftware.trivialpersist.
Table
Returns the name of this Table
getObject(String)
- Method in class com.martiansoftware.trivialpersist.
Record
Returns the Object backing the specified field.
getString(String)
- Method in class com.martiansoftware.trivialpersist.
Record
Retrieves a string field from this record
getString(String, String)
- Method in class com.martiansoftware.trivialpersist.
Record
Retrieves a string field from this record
getTable()
- Method in class com.martiansoftware.trivialpersist.
Record
Returns the Table to which this Record belongs
getTable(String)
- Method in class com.martiansoftware.trivialpersist.
Store
Obtains a reference to the specified table.
H
hasValue(String)
- Method in class com.martiansoftware.trivialpersist.
Record
Returns true iff this record has any value set for the specified field
I
init(Record)
- Method in interface com.martiansoftware.trivialpersist.
RecordInitializer
Initializes the specified Record.
init(File)
- Method in class com.martiansoftware.trivialpersist.
Store
Initializes the Store to use the specified base directory.
init(File)
- Method in class com.martiansoftware.trivialpersist.
Table
Initializes the table with the schema contained within the specified file
isDirty()
- Method in class com.martiansoftware.trivialpersist.
Record
Returns true iff this Record has unsaved changes
isNew()
- Method in class com.martiansoftware.trivialpersist.
Record
Returns true iff this Record has never been saved
isReadOnly()
- Method in class com.martiansoftware.trivialpersist.
Record
Returns true iff this Record is read-only
isValidType(String)
- Static method in class com.martiansoftware.trivialpersist.
Types
Returns true iff the specified type name is a valid type
iterator()
- Method in class com.martiansoftware.trivialpersist.
Store
Returns an Iterator over all Tables in this Store.
K
Key
- class com.martiansoftware.trivialpersist.
Key
.
Key()
- Constructor for class com.martiansoftware.trivialpersist.
Key
Key(String)
- Constructor for class com.martiansoftware.trivialpersist.
Key
L
LONG
- Static variable in class com.martiansoftware.trivialpersist.
Types
The Long type
M
main(String[])
- Static method in class com.martiansoftware.trivialpersist.
Store
main(String[])
- Static method in class com.martiansoftware.trivialpersist.
Test
N
NullFieldFilter
- class com.martiansoftware.trivialpersist.helpers.
NullFieldFilter
.
A filter that allows the developer to quickly find records in which a specific field is empty or non-empty.
NullFieldFilter(String, boolean)
- Constructor for class com.martiansoftware.trivialpersist.helpers.
NullFieldFilter
Creates a new NullFieldFilter for the specified field.
O
ORDER_ASCENDING
- Static variable in class com.martiansoftware.trivialpersist.helpers.
FieldComparator
Instructs the comparator to return results in ASCENDING order
ORDER_DESCENDING
- Static variable in class com.martiansoftware.trivialpersist.helpers.
FieldComparator
Instructs the comparator to return results in DESCENDING order
R
Record
- class com.martiansoftware.trivialpersist.
Record
.
A trivially persistent object.
RecordFilter
- interface com.martiansoftware.trivialpersist.
RecordFilter
.
Provides a means to filter Records out of the results of a table select.
RecordInitializer
- interface com.martiansoftware.trivialpersist.
RecordInitializer
.
Provides a means of automatically initializing any new Records with default values upon Record creation.
S
SINGLETON
- Static variable in class com.martiansoftware.trivialpersist.
Store
Singleton instance for convenience
STRING
- Static variable in class com.martiansoftware.trivialpersist.
Types
The String type
SeriesComparator
- class com.martiansoftware.trivialpersist.
SeriesComparator
.
Provides a means to wrap multiple Comparators into a single Comparator.
SeriesComparator()
- Constructor for class com.martiansoftware.trivialpersist.
SeriesComparator
Creates a new, empty SeriesComparator that compares hashcodes by default.
SeriesRecordFilter
- class com.martiansoftware.trivialpersist.
SeriesRecordFilter
.
Provides a means to wrap multiple RecordFilters into a single RecordFilter.
SeriesRecordFilter()
- Constructor for class com.martiansoftware.trivialpersist.
SeriesRecordFilter
Creates a new, empty SeriesRecordFilter that includes all Records.
Store
- class com.martiansoftware.trivialpersist.
Store
.
The closest thing to a database provided by TrivialPersist.
Store()
- Constructor for class com.martiansoftware.trivialpersist.
Store
Creates a new Store
save()
- Method in class com.martiansoftware.trivialpersist.
Record
Saves this record to disk.
select(String, String)
- Method in class com.martiansoftware.trivialpersist.
Table
select(RecordFilter, Comparator)
- Method in class com.martiansoftware.trivialpersist.
Table
Returns a SortedSet of Records that pass the specified RecordFilter, sorted by the specified Comparator.
selectAll()
- Method in class com.martiansoftware.trivialpersist.
Table
Returns a set of all records, sorted by key.
setBoolean(String, boolean)
- Method in class com.martiansoftware.trivialpersist.
Record
Sets a boolean value for this record
setDate(String, Date)
- Method in class com.martiansoftware.trivialpersist.
Record
Sets a date field for this record.
setDate(String, String, DateFormat)
- Method in class com.martiansoftware.trivialpersist.
Record
Sets a date field for this record
setDouble(String, double)
- Method in class com.martiansoftware.trivialpersist.
Record
Sets a double value for this record
setLong(String, long)
- Method in class com.martiansoftware.trivialpersist.
Record
Sets a long value for this record
setRecordInitializer(RecordInitializer)
- Method in class com.martiansoftware.trivialpersist.
Table
Sets the RecordInitializer for this Table.
setString(String, String)
- Method in class com.martiansoftware.trivialpersist.
Record
Sets a string field in this record
size()
- Method in class com.martiansoftware.trivialpersist.
Table
Returns the number of Records in this Table
storeComparator(String, Comparator)
- Method in class com.martiansoftware.trivialpersist.
Table
Stores a comparator by name
storeFilter(String, RecordFilter)
- Method in class com.martiansoftware.trivialpersist.
Table
Stores a filter by name
T
Table
- class com.martiansoftware.trivialpersist.
Table
.
A collection of records that share a schema.
Test
- class com.martiansoftware.trivialpersist.
Test
.
Test()
- Constructor for class com.martiansoftware.trivialpersist.
Test
TrivialPersistException
- exception com.martiansoftware.trivialpersist.
TrivialPersistException
.
The only kind of exception generated by TrivialPersist.
TrivialPersistException(String)
- Constructor for class com.martiansoftware.trivialpersist.
TrivialPersistException
Creates a new TrivialPersistException with the specified message
TrivialPersistException(String, Throwable)
- Constructor for class com.martiansoftware.trivialpersist.
TrivialPersistException
Creates a new TrivialPersistException with the specified message, wrapping the specified Throwable object
TrivialPersistRuntimeException
- exception com.martiansoftware.trivialpersist.
TrivialPersistRuntimeException
.
A RuntimeException thrown by Trivial Persist.
TrivialPersistRuntimeException(String)
- Constructor for class com.martiansoftware.trivialpersist.
TrivialPersistRuntimeException
Creates a new TrivialPersistRuntimeException with the specified message
TrivialPersistRuntimeException(String, Throwable)
- Constructor for class com.martiansoftware.trivialpersist.
TrivialPersistRuntimeException
Creates a new TrivialPersistRuntimeException with the specified message, wrapping the specified Throwable object
Types
- class com.martiansoftware.trivialpersist.
Types
.
Type constants used by TrivialPersist.
toString()
- Method in class com.martiansoftware.trivialpersist.
Table
Returns a String representatino of this Table.
U
unset(String)
- Method in class com.martiansoftware.trivialpersist.
Record
Removes any value set for the specified field (if any).
A
B
C
D
F
G
H
I
K
L
M
N
O
R
S
T
U
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
Copyright © 2004, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit
http://www.martiansoftware.com/trivialpersist