org.apache.ojb.broker.ant
Class PreparedModel

java.lang.Object
  extended by 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

Constructor Summary
PreparedModel(DescriptorRepository model, org.apache.ddlutils.model.Database schema)
           
 
Method Summary
 org.apache.commons.beanutils.DynaBean createBeanFor(String elementName)
          Creates a dyna bean for the table associated to the given element.
 Iterator getAttributeNames(String elementName)
           
 List getClassDescriptorsMappingTo(String elementName)
           
 org.apache.ddlutils.model.Column getColumnFor(String elementName, String attrName)
           
 Map getColumnsFor(String elementName)
           
 Iterator getElementNames()
           
 Map getRequiredAttributes(String elementName)
           
 org.apache.ddlutils.model.Table getTableFor(String elementName)
           
 boolean isRequired(String elementName, String attributeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreparedModel

public PreparedModel(DescriptorRepository model,
                     org.apache.ddlutils.model.Database schema)
Method Detail

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.