|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.hammurapi.sql.BaseReflectionProjector biz.hammurapi.sql.PropertyProjector
public class PropertyProjector
Projects fields from result set to object properties (fields or setters)
Constructor Summary | |
---|---|
PropertyProjector(java.lang.Class objectClass,
java.util.Map typeMap,
java.util.Map fieldMap)
Constructor |
Method Summary | |
---|---|
java.lang.Object |
project(java.sql.ResultSet rs)
Instantiates object using default constructors and then sets properties. |
Methods inherited from class biz.hammurapi.sql.BaseReflectionProjector |
---|
accessorName, getColumn, getColumn, mutatorName, propertyName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyProjector(java.lang.Class objectClass, java.util.Map typeMap, java.util.Map fieldMap)
objectClass
- Class to instantiate. Must have no-argument public constructortypeMap
- ResultSet.getObject(java.lang.String, java.util.Map)
fieldMap
- Field map. Can be null. If value of some mapping is null then that field
is suppressed and is not set.lenient
- If it is set to false than exception will be thrown if property
to set does not exist.toLowerCase
- If set to true then database field names will be converted to lower case
for field/setters discovery.Method Detail |
---|
public java.lang.Object project(java.sql.ResultSet rs) throws java.sql.SQLException
project
in interface Projector
rs
- ResultSet
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |