org.apache.ojb.broker.ant
Class PreparedModel
java.lang.Object
org.apache.ojb.broker.ant.PreparedModel
public class PreparedModel
- extends Object
Provides a model derived from DescriptorRepository that
is preprocessed for data handling (inserting data, generating data dtd).
- Author:
- Thomas Dudziak
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreparedModel
public PreparedModel(DescriptorRepository model,
org.apache.ddlutils.model.Database schema)
getElementNames
public Iterator getElementNames()
getAttributeNames
public Iterator getAttributeNames(String elementName)
getRequiredAttributes
public Map getRequiredAttributes(String elementName)
isRequired
public boolean isRequired(String elementName,
String attributeName)
getTableFor
public org.apache.ddlutils.model.Table getTableFor(String elementName)
createBeanFor
public org.apache.commons.beanutils.DynaBean createBeanFor(String elementName)
- Creates a dyna bean for the table associated to the given element.
- Parameters:
elementName - The element name
- Returns:
- The dyna bean
getClassDescriptorsMappingTo
public List getClassDescriptorsMappingTo(String elementName)
getColumnsFor
public Map getColumnsFor(String elementName)
getColumnFor
public org.apache.ddlutils.model.Column getColumnFor(String elementName,
String attrName)
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.