Modifier and Type | Method and Description |
---|---|
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.
|
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 parsepublic static Set<String> mappedClasses(Collection<org.apache.ojb.broker.metadata.DescriptorRepository> descriptors) throws Exception
Exception
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.