|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--org.oreodata.DataRegistryImpl
This object plays a central role in Oreo's object-relational mapping. It is essentially a repository of "metadata" that allows us to get at the various containers as well as "exemplars" of the various data records.
Field Summary |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
DataRegistryImpl()
|
Method Summary | |
OreoDataSource |
getDataSource(java.lang.String name)
|
java.util.List |
getDataSourceNames()
|
static DataRegistry |
getDefaultRegistry()
|
Record |
getExemplar(java.lang.String type)
|
RecordDescriptor |
getMetadata(java.lang.String type)
get record Metadata for the type |
java.util.List |
getRecordNames()
|
void |
registerDataSource(DataSourceMetadata dsm)
register the metadata for a DataSource by its unique name. |
void |
registerDataSource(OreoDataSource source)
register a DataSource by its unique name |
void |
registerDataSourceAlias(java.lang.String alias,
DataSourceMetadata dsm)
|
void |
registerRecordType(RecordDescriptor descriptor)
Register the metadata for a record type. |
static void |
setDefaultRegistry(DataRegistry registry)
Optional hook to call if you want to substitute a custom DataRegistry implementation for the default one. |
void |
setRemoteRegistry(DataRegistry registry)
Set a second DataRegistry source that will be used if the type is not found locally. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DataRegistryImpl() throws java.io.IOException
Method Detail |
public static DataRegistry getDefaultRegistry()
public static void setDefaultRegistry(DataRegistry registry)
public void setRemoteRegistry(DataRegistry registry) throws java.io.IOException
java.io.IOException
public RecordDescriptor getMetadata(java.lang.String type) throws java.io.IOException
DataRegistry
getMetadata
in interface DataRegistry
java.io.IOException
public void registerRecordType(RecordDescriptor descriptor) throws java.io.IOException
DataRegistry
registerRecordType
in interface DataRegistry
java.io.IOException
public void registerDataSource(OreoDataSource source) throws java.io.IOException
DataRegistry
registerDataSource
in interface DataRegistry
java.io.IOException
public void registerDataSource(DataSourceMetadata dsm) throws java.io.IOException
DataRegistry
registerDataSource
in interface DataRegistry
java.io.IOException
public OreoDataSource getDataSource(java.lang.String name) throws java.io.IOException
getDataSource
in interface DataRegistry
java.io.IOException
public Record getExemplar(java.lang.String type) throws java.io.IOException
getExemplar
in interface DataRegistry
java.io.IOException
public java.util.List getDataSourceNames() throws java.io.IOException
getDataSourceNames
in interface DataRegistry
java.io.IOException
public java.util.List getRecordNames() throws java.io.IOException
getRecordNames
in interface DataRegistry
java.io.IOException
public void registerDataSourceAlias(java.lang.String alias, DataSourceMetadata dsm) throws java.io.IOException
registerDataSourceAlias
in interface DataRegistry
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |