|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.dynabean.DynaClassCache
public class DynaClassCache
Provides a cache of dyna class instances for a specific model, as well as helper methods for dealing with these classes.
Constructor Summary | |
---|---|
DynaClassCache()
|
Method Summary | |
---|---|
org.apache.commons.beanutils.DynaBean |
copy(Table table,
java.lang.Object source)
Creates a new dyna bean instance for the given table and copies the values from the given source object. |
org.apache.commons.beanutils.DynaBean |
createNewInstance(Table table)
Creates a new dyna bean instance for the given table. |
SqlDynaClass |
getDynaClass(org.apache.commons.beanutils.DynaBean dynaBean)
Returns the SqlDynaClass for the given bean. |
SqlDynaClass |
getDynaClass(Table table)
Returns the SqlDynaClass for the given table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynaClassCache()
Method Detail |
---|
public org.apache.commons.beanutils.DynaBean createNewInstance(Table table) throws SqlDynaException
table
- The table
SqlDynaException
public org.apache.commons.beanutils.DynaBean copy(Table table, java.lang.Object source) throws SqlDynaException
table
- The table to create the dyna bean forsource
- Either a bean, a Map
or a dyna bean that will be used
to populate the resultint dyna bean
SqlDynaException
public SqlDynaClass getDynaClass(Table table)
SqlDynaClass
for the given table. If the it does not
exist yet, a new one will be created based on the Table definition.
table
- The table
SqlDynaClass
for the indicated tablepublic SqlDynaClass getDynaClass(org.apache.commons.beanutils.DynaBean dynaBean) throws SqlDynaException
SqlDynaClass
for the given bean.
dynaBean
- The bean
SqlDynaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |