|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.data.DataObject
ewe.database.LookupData
| Field Summary | |
protected EntriesView |
view
This is the view into the Database created by getLookup(). |
| Constructor Summary | |
LookupData()
|
|
| Method Summary | |
void |
closeLookup()
Close the lookup database. |
LookupData |
getLookup(Database openDatabase,
String sortName)
Get a LookupData which can be used to lookup values based on the specified sort. |
LookupData |
getLookup(File databaseFile,
String sortName)
Get a LookupData which can be used to lookup values based on the specified sort. |
EntriesView |
getLookupView()
Return the view used to lookup data in the database. |
Vector |
lookup(Handle h,
Object[] searches,
boolean hasWildcards)
This looks up for all records which match the search criteria. |
Vector |
lookup(Handle h,
ObjectFinder filter)
This looks up for all records which match the search criteria. |
Vector |
lookup(Object[] searches,
boolean hasWildcards)
This looks up for all records which match the search criteria. |
Vector |
lookup(Object search,
boolean hasWildcards)
This looks up for all records which match the search criteria. |
Vector |
lookup(ObjectFinder filter)
This looks up for all records which match the search criteria. |
LookupData |
lookupOne(Object[] search,
boolean hasWildcards)
This looks up for one record which matches the search criteria. |
LookupData |
lookupOne(Object search,
boolean hasWildcards)
This looks up for one record which matches the search criteria. |
LookupData |
lookupOne(ObjectFinder filter)
This looks up for all records which match the search criteria and returns the first match. |
Database |
openDatabase(File databaseFile,
String mode)
This is used to open the specified database. |
| Methods inherited from class ewe.data.DataObject |
_getSetField, appendAllFields, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, toString |
| Field Detail |
protected EntriesView view
| Constructor Detail |
public LookupData()
| Method Detail |
public EntriesView getLookupView()
public Database openDatabase(File databaseFile,
String mode)
throws IOException
databaseFile - the File to open.mode - the mode - either "r" or "rw".
IOException - if an error occurs.
public LookupData getLookup(File databaseFile,
String sortName)
throws IOException
databaseFile - the databaseFile to open (in read-only mode).sortName - an optional sort name. If null then the first stored sort is used.
IOException - if an error occurs.
public LookupData getLookup(Database openDatabase,
String sortName)
throws IOException
openDatabase - the open database to lookup in.sortName - an optional sort name. If null then the first stored sort is used.
IOException - if an error occurs.
public Vector lookup(Handle h,
Object[] searches,
boolean hasWildcards)
throws IOException
h - an optional Handle that can be used to monitor or stop the search.searches - the fields to search for.hasWildcards - true if the fields contain wildcard characters.
IOException - if an error occurs.
public Vector lookup(Handle h,
ObjectFinder filter)
throws IOException
h - an optional Handle that can be used to monitor or stop the search.filter - an ObjectFinder that will filter each database record.
IOException - if an error occurs.
public Vector lookup(Object[] searches,
boolean hasWildcards)
throws IOException
searches - the fields to search for.hasWildcards - true if the fields contain wildcard characters.
IOException - if an error occurs.
public Vector lookup(Object search,
boolean hasWildcards)
throws IOException
search - one field to search for.hasWildcards - true if the field contain wildcard characters.
IOException - if an error occurs.
public LookupData lookupOne(Object[] search,
boolean hasWildcards)
throws IOException
hasWildcards - true if the fields contain wildcard characters.
IOException - if an error occurs.
public LookupData lookupOne(Object search,
boolean hasWildcards)
throws IOException
search - one field to search for.hasWildcards - true if the field contain wildcard characters.
IOException - if an error occurs.
public Vector lookup(ObjectFinder filter)
throws IOException
filter - an ObjectFinder that will filter each database record.
IOException - if an error occurs.
public LookupData lookupOne(ObjectFinder filter)
throws IOException
filter - an ObjectFinder that will filter each database record.
IOException - if an error occurs.
public void closeLookup()
throws IOException
IOException - on IO error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||