|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.devtools.jpa.eclipselink.conv.ojb.OjbUtil
public final class OjbUtil
Method Summary | |
---|---|
static org.apache.ojb.broker.metadata.ClassDescriptor |
findClassDescriptor(String clazz,
Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
|
static org.apache.ojb.broker.metadata.CollectionDescriptor |
findCollectionDescriptor(String clazz,
String fieldName,
Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
|
static org.apache.ojb.broker.metadata.FieldDescriptor |
findFieldDescriptor(String clazz,
String fieldName,
Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
|
static org.apache.ojb.broker.metadata.ObjectReferenceDescriptor |
findObjectReferenceDescriptor(String clazz,
String fieldName,
Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
|
static Collection<org.apache.ojb.broker.metadata.DescriptorRepository> |
getDescriptorRepositories(Collection<String> ojbFiles)
|
static Collection<String> |
getMappedTree(String rootClass,
Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
Starting with a root class, get the entire tree of mapped objects including collections and references. |
static Collection<String> |
getPrimaryKeyNames(String clazz,
Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
|
static Set<String> |
getSuperClasses(String clazzName,
String packagePrefixToStop)
Gets all the super classes & stopping when the super class matches a package prefix |
static boolean |
isMappedColumn(String clazz,
String fieldName,
Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
|
static Set<String> |
mappedClasses(Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptors)
Gets all the mapped classes |
static org.apache.ojb.broker.metadata.DescriptorRepository |
readDescriptorRepository(String filename)
Parses a repository file and populates an ojb datastructure representing the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Collection<String> getMappedTree(String rootClass, Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
rootClass
- the top level class to start with.
public static boolean isMappedColumn(String clazz, String fieldName, Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
public static Collection<org.apache.ojb.broker.metadata.DescriptorRepository> getDescriptorRepositories(Collection<String> ojbFiles) throws Exception
Exception
public static org.apache.ojb.broker.metadata.ClassDescriptor findClassDescriptor(String clazz, Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
public static org.apache.ojb.broker.metadata.FieldDescriptor findFieldDescriptor(String clazz, String fieldName, Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
public static org.apache.ojb.broker.metadata.ObjectReferenceDescriptor findObjectReferenceDescriptor(String clazz, String fieldName, Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
public static org.apache.ojb.broker.metadata.CollectionDescriptor findCollectionDescriptor(String clazz, String fieldName, Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
public static Collection<String> getPrimaryKeyNames(String clazz, Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptorRepositories)
public static org.apache.ojb.broker.metadata.DescriptorRepository readDescriptorRepository(String filename)
filename
- the file to parse
public static Set<String> mappedClasses(Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptors) throws Exception
Exception
public static Set<String> getSuperClasses(String clazzName, String packagePrefixToStop) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |