public class DynaClassCache extends Object
| Constructor and Description |
|---|
DynaClassCache() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.beanutils.DynaBean |
copy(Table table,
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. |
public org.apache.commons.beanutils.DynaBean createNewInstance(Table table) throws SqlDynaException
table - The tableSqlDynaExceptionpublic org.apache.commons.beanutils.DynaBean copy(Table table, 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 beanSqlDynaExceptionpublic 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 tableSqlDynaClass for the indicated tablepublic SqlDynaClass getDynaClass(org.apache.commons.beanutils.DynaBean dynaBean) throws SqlDynaException
SqlDynaClass for the given bean.dynaBean - The beanSqlDynaExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.