public class ObjectBuilder<T>
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
java.util.List<T> |
createList()
创建List[T]返回
|
<Key> java.util.Map<Key,T> |
createMap(java.lang.String column)
创建Map[key,T]返回
|
<Key> java.util.Map<Key,java.util.List<T>> |
createMapList(java.lang.String keyColumn)
创建Map[key,List[T]]返回
|
<Key> java.util.Map<Key,java.util.List<T>> |
createMapListByAnotherKey(FieldMetaData anotherKeyColumn)
创建Map[key,List[T]]返回
|
static <T> ObjectBuilder<T> |
start(java.sql.ResultSet resultSet,
java.lang.Class<T> target,
java.util.List<FieldMetaData> fieldMetaDataList,
boolean isSingle,
SqLinkConfig config)
创建构建器
|
public static <T> ObjectBuilder<T> start(java.sql.ResultSet resultSet, java.lang.Class<T> target, java.util.List<FieldMetaData> fieldMetaDataList, boolean isSingle, SqLinkConfig config)
public <Key> java.util.Map<Key,T> createMap(java.lang.String column) throws java.sql.SQLException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
column
- key的列名java.sql.SQLException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public <Key> java.util.Map<Key,java.util.List<T>> createMapList(java.lang.String keyColumn) throws java.sql.SQLException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
keyColumn
- key的列名java.sql.SQLException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public <Key> java.util.Map<Key,java.util.List<T>> createMapListByAnotherKey(FieldMetaData anotherKeyColumn) throws java.sql.SQLException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException
anotherKeyColumn
- key的元数据java.sql.SQLException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
public java.util.List<T> createList() throws java.sql.SQLException, java.lang.NoSuchFieldException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.sql.SQLException
java.lang.NoSuchFieldException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException