|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface implemented by objects that vend "virgin" instances of a Record. A virgin instance is "vended" based on the type and version number passed in as arguments to the getExemplar() method. This is a creational pattern called the exemplar or canonical object pattern IIRC.
Method Summary | |
DataSource |
getDataSource(java.lang.String name)
|
java.util.List |
getDataSourceNames()
|
Record |
getExemplar(java.lang.String type)
|
Record |
getExemplar(java.lang.String type,
int version)
|
RecordDescriptor |
getMetadata(java.lang.String type)
get record Metadata for the type and the highest version number available. |
RecordDescriptor |
getMetadata(java.lang.String type,
int version)
get record Metadata for the type and version. |
java.util.List |
getRecordNames()
|
void |
registerDataSource(DataSource dataSource)
register a DataSource by its unique name |
void |
registerDataSource(DataSourceMetadata dsm)
register the metadata for a DataSource by its unique name. |
void |
registerRecordType(RecordDescriptor descriptor)
Register the metadata for a record type. |
Method Detail |
public void registerRecordType(RecordDescriptor descriptor) throws java.io.IOException
public Record getExemplar(java.lang.String type, int version) throws java.io.IOException
public Record getExemplar(java.lang.String type) throws java.io.IOException
public DataSource getDataSource(java.lang.String name) throws java.io.IOException
public void registerDataSource(DataSource dataSource) throws java.io.IOException
public void registerDataSource(DataSourceMetadata dsm) throws java.io.IOException
public RecordDescriptor getMetadata(java.lang.String type, int version) throws java.io.IOException
public RecordDescriptor getMetadata(java.lang.String type) throws java.io.IOException
public java.util.List getRecordNames() throws java.io.IOException
public java.util.List getDataSourceNames() throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |