|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResultMapping
Mapping interface for result mappings.
Method Summary | |
---|---|
MappingAdapter |
getAdapter()
Returns a custom mapping adapter. |
Class<?> |
getBeanType()
Returns the type of the method return result Java Bean or null. |
Class<?> |
getCollectionType()
Returns the collection type of the method return result or null. |
Constructor<?> |
getConstructor()
Returns the constructor or null. |
Integer |
getConstructorParameter()
Returns the index of a parameter in the constructor or null. |
Class<?> |
getMapKeyType()
Returns the type of the method return map key or null. |
Method |
getSetter()
Returns the setter of the Java Bean or null. |
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. |
boolean |
isMapKey()
True if mapping is a key for a Map . |
void |
setParameters(Class<?> type,
Class<?> collectionType,
Class<?> beanType,
Method setter,
int[] sqlIndexes,
String[] sqlColumns,
MappingAdapter adapter,
Class<?> mapKeyType,
Integer constructorParameter,
Constructor<?> constructor)
Initializer. |
boolean |
usesAtomic()
True if the method return result is either a primitive or an atomic value (like String ). |
boolean |
usesCollection()
True if the method return result is a collection type. |
Methods inherited from interface sf.qof.mapping.Mapping |
---|
accept, parameterMappingInfo, resultMappingInfo |
Method Detail |
---|
void setParameters(Class<?> type, Class<?> collectionType, Class<?> beanType, Method setter, int[] sqlIndexes, String[] sqlColumns, MappingAdapter adapter, Class<?> mapKeyType, Integer constructorParameter, Constructor<?> constructor)
type
- mapping typecollectionType
- collection type of method return resultbeanType
- Java Bean object type of method return resultsetter
- setter form Java Bean objectsqlIndexes
- array of SQL indexessqlColumns
- array of SQL column namesadapter
- custom mapping adaptermapKeyType
- map key typeconstructorParameter
- index of a parameter in the constructorconstructor
- constructorClass<?> getType()
Class<?> getCollectionType()
Collection
.
Class<?> getBeanType()
Method getSetter()
String[] getSqlColumns()
int[] getSqlIndexes()
MappingAdapter getAdapter()
boolean usesCollection()
boolean usesAtomic()
String
).
boolean isMapKey()
Map
.
Class<?> getMapKeyType()
Integer getConstructorParameter()
Constructor<?> getConstructor()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |