| java.lang.Object biz.hammurapi.sql.BaseReflectionProjector biz.hammurapi.sql.ConstructorProjector
ConstructorProjector | public class ConstructorProjector extends BaseReflectionProjector implements Projector(Code) | | This projector constructs objects using database field values
author: Pavel Vlasov version: $Revision: 1.2 $ |
Inner Class :public static class ColumnName | |
ConstructorProjector | public ConstructorProjector(Constructor constructor, Object[] args, Map typeMap)(Code) | | Use this constructor if target constructor shall take not only values from database fields as
parameter, but other objects as well.
Parameters: constructor - Constructor to instantiate object. Parameters: args - Constructor arguments. Arguments of type ColumnName will be replacedwith values from corresponding fields from the database. Parameters: typeMap - See java.sql.ResultSet.getObject(java.lang.Stringjava.util.Map). Can be null. |
ConstructorProjector | public ConstructorProjector(Constructor constructor, String[] columnNames, Map typeMap)(Code) | | Use this constructor if only database fields values are used as target constructor parameters.
Parameters: constructor - Constructor to instantiate object Parameters: columnNames - Names of columns that shall be passed as parameters to constructor. Parameters: typeMap - See java.sql.ResultSet.getObject(java.lang.Stringjava.util.Map). Can be null. |
ConstructorProjector | public ConstructorProjector(Constructor constructor, Map typeMap)(Code) | | Use constructor for positioned projection. Column values will be passed to as constructor
arguments according to their position.
Parameters: constructor - Parameters: typeMap - |
|
|