|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectFactory
MyBatis uses an ObjectFactory to create all needed new Objects.
Method Summary | ||
---|---|---|
|
create(Class<T> type)
Creates a new object with default constructor. |
|
|
create(Class<T> type,
List<Class<?>> constructorArgTypes,
List<Object> constructorArgs)
Creates a new object with the specified constructor and params. |
|
|
isCollection(Class<T> type)
Returns true if this object can have a set of other objects. |
|
void |
setProperties(Properties properties)
Sets configuration properties. |
Method Detail |
---|
void setProperties(Properties properties)
properties
- configuration properties<T> T create(Class<T> type)
type
- Object type
<T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs)
type
- Object typeconstructorArgTypes
- Constructor argument typesconstructorArgs
- Constructor argument values
<T> boolean isCollection(Class<T> type)
type
- Object type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |