Class SqlDynaProperty
java.lang.Object
org.apache.commons.beanutils.DynaProperty
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.dynabean.SqlDynaProperty
- All Implemented Interfaces:
Serializable
public class SqlDynaProperty
extends org.apache.commons.beanutils.DynaProperty
A DynaProperty which maps to a persistent Column in a database.
The Column describes additional relational metadata
for the property such as whether the property is a primary key column,
an autoIncrement column and the SQL type etc.
- Version:
- $Revision: 463757 $
- See Also:
-
Field Summary
Fields inherited from class org.apache.commons.beanutils.DynaProperty
contentType, name, type
-
Constructor Summary
ConstructorDescriptionSqlDynaProperty
(Column column) Creates a property instance for the given column that accepts any data type.SqlDynaProperty
(Column column, Class type) Creates a property instance for the given column that only accepts the given type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the column for which this property is defined.boolean
Determines whether this property is for a primary key column.Methods inherited from class org.apache.commons.beanutils.DynaProperty
equals, getContentType, getName, getType, hashCode, isIndexed, isMapped, toString
-
Constructor Details
-
SqlDynaProperty
Creates a property instance for the given column that accepts any data type.- Parameters:
column
- The column
-
SqlDynaProperty
Creates a property instance for the given column that only accepts the given type.- Parameters:
column
- The columntype
- The type of the property
-
-
Method Details
-
getColumn
Returns the column for which this property is defined.- Returns:
- The column
-
isPrimaryKey
public boolean isPrimaryKey()Determines whether this property is for a primary key column.- Returns:
true
if the property is for a primary key column
-