Package org.iworkz.habitat.command
Class CommandHelper
java.lang.Object
org.iworkz.habitat.command.CommandHelper
@Singleton public class CommandHelper extends Object
-
Field Summary
Fields Modifier and Type Field Description protected org.iworkz.common.helper.ReflectionHelperreflectionHelper -
Constructor Summary
Constructors Constructor Description CommandHelper() -
Method Summary
-
Field Details
-
reflectionHelper
@Inject protected org.iworkz.common.helper.ReflectionHelper reflectionHelper
-
-
Constructor Details
-
CommandHelper
public CommandHelper()
-
-
Method Details
-
applyTempFieldValues
public void applyTempFieldValues(Object record, Map<CommandMetaData.ObjectMetaData,Object> initializedFieldValues) throws Exception- Throws:
Exception
-
setParameter
public void setParameter(PreparedStatement preparedStatement, int index, Object parameter) throws Exception- Throws:
Exception
-
readValueFromResultSet
public Object readValueFromResultSet(ResultSet resultSet, int index, Class<? extends Object> fieldClass) throws Exception- Throws:
Exception
-
createPropertyDescriptorsForClass
protected <T> PropertyDescriptor[] createPropertyDescriptorsForClass(EntityDefinition entityDefinition, Class<T> objectClass, GenericDao.CommandCustomizer statementAdapter, ResultSet rs)
-