|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ojb.broker.metadata.DescriptorRepository
The repository containing all mapping information of the PersistenceBroker. The data is stored in a xml file "repository.xml" in the directory of the main class.
Constructor Summary | |
(package private) |
DescriptorRepository()
Constructor declaration |
Method Summary | |
JdbcConnectionDescriptor |
getDefaultJdbcConnection()
Method declaration |
ClassDescriptor |
getDescriptorFor(java.lang.Class c)
lookup a ClassDescriptor in the internal Hashtable |
java.lang.Class |
getExtentClass(java.lang.Class clazz)
|
static DescriptorRepository |
getInstance()
returns the singleton instance |
static DescriptorRepository |
getInstance(java.lang.String repositoryFileName)
|
java.util.Iterator |
iterator()
|
void |
put(java.lang.Class c,
ClassDescriptor cld)
Add a ClassDescriptor to the internal Hashtable Set the Repository for ClassDescriptor |
void |
setDefaultJdbcConnection(JdbcConnectionDescriptor jcd)
Method declaration |
static void |
setRepositoryPath(java.lang.String pathToRepository)
set the path to the xml repository |
java.lang.String |
toString()
returns a string representation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
DescriptorRepository() throws PersistenceBrokerException
Method Detail |
public static DescriptorRepository getInstance() throws MetadataException
MetadataException
public static void setRepositoryPath(java.lang.String pathToRepository)
public java.lang.String toString()
toString
in class java.lang.Object
public void setDefaultJdbcConnection(JdbcConnectionDescriptor jcd)
jcd
- public JdbcConnectionDescriptor getDefaultJdbcConnection()
public void put(java.lang.Class c, ClassDescriptor cld)
public ClassDescriptor getDescriptorFor(java.lang.Class c) throws ClassNotPersistenceCapableException
ClassNotPersistenceCapableException
public java.lang.Class getExtentClass(java.lang.Class clazz)
public static DescriptorRepository getInstance(java.lang.String repositoryFileName) throws MetadataException
repositoryFileName
-
MetadataException
public java.util.Iterator iterator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |