|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
a marker interface representing objects that contain a set of Records indexed by a lookup key
Method Summary | |
void |
close()
A method that should be called to free any resources associated with the data source. |
Record |
get(java.lang.Object key)
method that exists for backward compatibility This is equivalent to get(null, key); |
Record |
get(java.lang.String type,
java.lang.Object key)
|
java.lang.String |
getName()
|
java.util.List |
getRecords(java.lang.Object key)
|
void |
init(java.util.Properties props)
A method that initializes a DataSource with a set of initialization properties. |
java.util.List |
keys()
This is equivalent to calling keys(null) where no record type is specified. |
java.util.List |
keys(java.lang.String type)
|
Method Detail |
public java.lang.String getName() throws java.io.IOException
public Record get(java.lang.Object key) throws java.io.IOException
public Record get(java.lang.String type, java.lang.Object key) throws java.io.IOException
type
- the type of the record, if this is null,
then any type will do.key
- the lookup keypublic java.util.List getRecords(java.lang.Object key) throws java.io.IOException
public java.util.List keys() throws java.io.IOException
public java.util.List keys(java.lang.String type) throws java.io.IOException
type
- the record type we are interested,
under some circumstances, this may be null.public void init(java.util.Properties props) throws java.io.IOException
public void close() throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |