|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParameterMapping
Mapping interface for parameter mappings.
Method Summary | |
---|---|
MappingAdapter |
getAdapter()
Returns a custom mapping adapter. |
Class<?> |
getBeanType()
Returns the type of the method parameter Java Bean or null. |
Class<?> |
getCollectionType()
Returns the collection type of the method parameter or null. |
Method |
getGetter()
Returns the getter of the Java Bean or null. |
int |
getIndex()
Returns the method parameter index. |
String[] |
getSqlColumns()
Returns an array with the column names in the SQL statement. |
int[] |
getSqlIndexes()
Returns an array with the indexes in the SQL statement. |
Class<?> |
getType()
Returns mapping type. |
void |
setParameters(int index,
Class<?> type,
Class<?> collectionType,
Class<?> beanType,
Method getter,
int[] sqlIndexes,
String[] sqlColumns,
MappingAdapter adapter,
boolean usesArray)
Initializer. |
boolean |
usesArray()
True if the parameter is an array. |
boolean |
usesAtomic()
True if the method parameter is either a primitive or an atomic value (like String ). |
boolean |
usesCollection()
True if the method parameter is a collection type. |
Methods inherited from interface sf.qof.mapping.Mapping |
---|
accept, parameterMappingInfo, resultMappingInfo |
Method Detail |
---|
void setParameters(int index, Class<?> type, Class<?> collectionType, Class<?> beanType, Method getter, int[] sqlIndexes, String[] sqlColumns, MappingAdapter adapter, boolean usesArray)
index
- method parameter indextype
- mapping typecollectionType
- collection type of method parameterbeanType
- Java Bean object type of method parametergetter
- getter form Java Bean objectsqlIndexes
- array of SQL indexessqlColumns
- array of SQL column namesadapter
- custom mapping adapterusesArray
- parameter is an arrayint getIndex()
Class<?> getType()
Class<?> getCollectionType()
Collection
.
Class<?> getBeanType()
Method getGetter()
String[] getSqlColumns()
int[] getSqlIndexes()
MappingAdapter getAdapter()
boolean usesCollection()
boolean usesAtomic()
String
).
boolean usesArray()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |