se.unlogic.standardutils.dao
Class SimpleColumn<BeanType,ColumnType>
java.lang.Object
se.unlogic.standardutils.dao.SimpleColumn<BeanType,ColumnType>
- All Implemented Interfaces:
- Column<BeanType,ColumnType>
public class SimpleColumn<BeanType,ColumnType>
- extends java.lang.Object
- implements Column<BeanType,ColumnType>
Constructor Summary |
SimpleColumn(java.lang.reflect.Field beanField,
java.lang.reflect.Method queryMethod,
QueryParameterPopulator<?> queryPopulator,
java.lang.String columnName,
boolean autoGenerated)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleColumn
public SimpleColumn(java.lang.reflect.Field beanField,
java.lang.reflect.Method queryMethod,
QueryParameterPopulator<?> queryPopulator,
java.lang.String columnName,
boolean autoGenerated)
getParamValue
public ColumnType getParamValue(java.lang.Object paramValue)
- Specified by:
getParamValue
in interface Column<BeanType,ColumnType>
getBeanValue
public ColumnType getBeanValue(BeanType bean)
- Specified by:
getBeanValue
in interface Column<BeanType,ColumnType>
getBeanField
public java.lang.reflect.Field getBeanField()
- Specified by:
getBeanField
in interface Column<BeanType,ColumnType>
getParamType
public java.lang.Class<?> getParamType()
- Specified by:
getParamType
in interface Column<BeanType,ColumnType>
getQueryMethod
public java.lang.reflect.Method getQueryMethod()
- Specified by:
getQueryMethod
in interface Column<BeanType,ColumnType>
getColumnName
public java.lang.String getColumnName()
- Specified by:
getColumnName
in interface Column<BeanType,ColumnType>
isAutoGenerated
public boolean isAutoGenerated()
- Specified by:
isAutoGenerated
in interface Column<BeanType,ColumnType>
getQueryParameterPopulator
public QueryParameterPopulator<?> getQueryParameterPopulator()
- Specified by:
getQueryParameterPopulator
in interface Column<BeanType,ColumnType>
getGenericInstance
public static <BT,CT> SimpleColumn<BT,CT> getGenericInstance(java.lang.Class<BT> beanClass,
java.lang.Class<CT> fieldClass,
java.lang.reflect.Field beanField,
java.lang.reflect.Method queryMethod,
QueryParameterPopulator<?> queryPopulator,
java.lang.String columnName,
boolean autoGenerated)
Copyright © 2011. All Rights Reserved.