sf logo

sf.qof.mapping
Class MappingFactory

java.lang.Object
  extended by sf.qof.mapping.MappingFactory

public class MappingFactory
extends Object


Nested Class Summary
static class MappingFactory.MappingClassInfo
           
 
Method Summary
static ParameterMapping createParameterMapping(String mappingType, int index, Class<?> type, Class<?> collectionType, Class<?> beanType, Method getter, int[] sqlIndexes, String[] sqlColumns, boolean usesArray)
           
static ResultMapping createResultMapping(String mappingType, Class<?> type, Class<?> collectionType, Class<?> beanType, Method setter, int[] sqlIndexes, String[] sqlColumns, Class<?> mapKeyType, Integer constructorParameter, Constructor<?> constructor)
           
static MappingFactory.MappingClassInfo getDefaultParameterMappingInfo(Class<?> type)
           
static MappingFactory.MappingClassInfo getDefaultResultMappingInfo(Class<?> type)
           
static MappingFactory.MappingClassInfo getParameterMappingInfo(String type)
           
static MappingFactory.MappingClassInfo getResultMappingInfo(String type)
           
static void registerMapper(String type, MappingAdapter adapter)
           
protected static void registerParameterMapper(String type, Class<?> mapping, Set<Class<?>> types)
           
protected static void registerParameterMapper(String type, MappingAdapter adapter)
           
protected static void registerResultMapper(String type, Class<?> mapping, Set<Class<?>> types)
           
protected static void registerResultMapper(String type, MappingAdapter adapter)
           
static void unregisterMapper(String type)
           
protected static void unregisterParameterMapper(String type)
           
protected static void unregisterResultMapper(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createParameterMapping

public static ParameterMapping createParameterMapping(String mappingType,
                                                      int index,
                                                      Class<?> type,
                                                      Class<?> collectionType,
                                                      Class<?> beanType,
                                                      Method getter,
                                                      int[] sqlIndexes,
                                                      String[] sqlColumns,
                                                      boolean usesArray)

createResultMapping

public static ResultMapping createResultMapping(String mappingType,
                                                Class<?> type,
                                                Class<?> collectionType,
                                                Class<?> beanType,
                                                Method setter,
                                                int[] sqlIndexes,
                                                String[] sqlColumns,
                                                Class<?> mapKeyType,
                                                Integer constructorParameter,
                                                Constructor<?> constructor)

registerResultMapper

protected static void registerResultMapper(String type,
                                           Class<?> mapping,
                                           Set<Class<?>> types)

registerParameterMapper

protected static void registerParameterMapper(String type,
                                              Class<?> mapping,
                                              Set<Class<?>> types)

registerMapper

public static void registerMapper(String type,
                                  MappingAdapter adapter)

unregisterMapper

public static void unregisterMapper(String type)

registerResultMapper

protected static void registerResultMapper(String type,
                                           MappingAdapter adapter)

registerParameterMapper

protected static void registerParameterMapper(String type,
                                              MappingAdapter adapter)

unregisterResultMapper

protected static void unregisterResultMapper(String type)

unregisterParameterMapper

protected static void unregisterParameterMapper(String type)

getParameterMappingInfo

public static MappingFactory.MappingClassInfo getParameterMappingInfo(String type)

getResultMappingInfo

public static MappingFactory.MappingClassInfo getResultMappingInfo(String type)

getDefaultParameterMappingInfo

public static MappingFactory.MappingClassInfo getDefaultParameterMappingInfo(Class<?> type)

getDefaultResultMappingInfo

public static MappingFactory.MappingClassInfo getDefaultResultMappingInfo(Class<?> type)

sf logo

Copyright © 2007 brunella ltd. All Rights Reserved.