Class SqlDynaClass
java.lang.Object
org.apache.commons.beanutils.BasicDynaClass
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.dynabean.SqlDynaClass
- All Implemented Interfaces:
Serializable
,org.apache.commons.beanutils.DynaClass
public class SqlDynaClass
extends org.apache.commons.beanutils.BasicDynaClass
SqlDynaClass is a DynaClass which is associated with a persistent
Table in a Database.
- Version:
- $Revision: 463757 $
- See Also:
-
Field Summary
Fields inherited from class org.apache.commons.beanutils.BasicDynaClass
constructor, constructorTypes, constructorValues, dynaBeanClass, name, properties, propertiesMap
-
Constructor Summary
ConstructorDescriptionSqlDynaClass
(Table table, SqlDynaProperty[] properties) Creates a new dyna class instance for the given table that has the given properties. -
Method Summary
Modifier and TypeMethodDescriptionReturns the properties for the non-primary keys of the corresponding table.Returns the properties for the primary keys of the corresponding table.Returns the properties of this dyna class.getTable()
Returns the table for which this dyna class is defined.Returns the table name for which this dyna class is defined.protected void
Initializes the primary key and non primary key property arrays.static SqlDynaClass
newInstance
(Table table) Factory method for creating and initializing a new dyna class instance for the given table.Methods inherited from class org.apache.commons.beanutils.BasicDynaClass
getDynaBeanClass, getDynaProperties, getDynaProperty, getName, newInstance, setDynaBeanClass, setProperties
-
Constructor Details
-
SqlDynaClass
Creates a new dyna class instance for the given table that has the given properties.- Parameters:
table
- The tableproperties
- The dyna properties
-
-
Method Details
-
newInstance
Factory method for creating and initializing a new dyna class instance for the given table.- Parameters:
table
- The table- Returns:
- The dyna class for the table
-
getTable
Returns the table for which this dyna class is defined.- Returns:
- The table
-
getTableName
Returns the table name for which this dyna class is defined.- Returns:
- The table name
-
getSqlDynaProperties
Returns the properties of this dyna class.- Returns:
- The properties
-
getPrimaryKeyProperties
Returns the properties for the primary keys of the corresponding table.- Returns:
- The properties
-
getNonPrimaryKeyProperties
Returns the properties for the non-primary keys of the corresponding table.- Returns:
- The properties
-
initPrimaryKeys
protected void initPrimaryKeys()Initializes the primary key and non primary key property arrays.
-