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 Object
- implements Column<BeanType,ColumnType>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleColumn
public SimpleColumn(Field beanField,
Method queryMethod,
QueryParameterPopulator<?> queryPopulator,
String columnName,
boolean autoGenerated)
getParamValue
public ColumnType getParamValue(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 Field getBeanField()
- Specified by:
getBeanField
in interface Column<BeanType,ColumnType>
getParamType
public Class<?> getParamType()
- Specified by:
getParamType
in interface Column<BeanType,ColumnType>
getQueryMethod
public Method getQueryMethod()
- Specified by:
getQueryMethod
in interface Column<BeanType,ColumnType>
getColumnName
public 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(Class<BT> beanClass,
Class<CT> fieldClass,
Field beanField,
Method queryMethod,
QueryParameterPopulator<?> queryPopulator,
String columnName,
boolean autoGenerated)
Copyright © 2011. All Rights Reserved.