java.lang.Object
org.objectstyle.cayenne.access.util.ResultDescriptor
- public class ResultDescriptor
- extends java.lang.Object
Contains information about the ResultSet used to process fetched rows.
ResultDescriptor is initialized by calling various "add*" methods, after that
it must be indexed by calling "index".
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logObj
private static org.apache.log4j.Logger logObj
emptyInt
private static final int[] emptyInt
names
protected java.lang.String[] names
jdbcTypes
protected int[] jdbcTypes
converters
protected org.objectstyle.cayenne.access.types.ExtendedType[] converters
idIndexes
protected int[] idIndexes
outParamIndexes
protected int[] outParamIndexes
dbAttributes
protected java.util.List dbAttributes
javaTypes
protected java.util.List javaTypes
typesMapping
protected org.objectstyle.cayenne.access.types.ExtendedTypeMap typesMapping
rootEntity
protected org.objectstyle.cayenne.map.ObjEntity rootEntity
ResultDescriptor
public ResultDescriptor(org.objectstyle.cayenne.access.types.ExtendedTypeMap typesMapping)
ResultDescriptor
public ResultDescriptor(org.objectstyle.cayenne.access.types.ExtendedTypeMap typesMapping,
org.objectstyle.cayenne.map.ObjEntity rootEntity)
createDescriptor
public static ResultDescriptor createDescriptor(java.sql.ResultSet resultSet,
org.objectstyle.cayenne.access.types.ExtendedTypeMap typeConverters)
- Creates and returns a ResultDescritor based on ResultSet metadata.
createDescriptor
public static ResultDescriptor createDescriptor(org.objectstyle.cayenne.map.Procedure procedure,
org.objectstyle.cayenne.access.types.ExtendedTypeMap typeConverters)
- Creates and returns a ResultDescriptor for the stored procedure parameters.
addColumns
public void addColumns(java.util.Collection dbAttributes)
addDbAttribute
public void addDbAttribute(org.objectstyle.cayenne.map.DbAttribute attr)
addJavaTypes
public void addJavaTypes(java.util.Collection javaTypes)
addJavaType
public void addJavaType(java.lang.String javaType)
index
public void index()
initConvertersFromJavaTypes
protected void initConvertersFromJavaTypes()
initDefaultConverters
protected void initDefaultConverters()
initConvertersFromMapping
protected void initConvertersFromMapping()
getConverters
public org.objectstyle.cayenne.access.types.ExtendedType[] getConverters()
getIdIndexes
public int[] getIdIndexes()
getJdbcTypes
public int[] getJdbcTypes()
getNames
public java.lang.String[] getNames()
getResultWidth
public int getResultWidth()
- Returns a count of columns in the result.
getOutParamIndexes
public int[] getOutParamIndexes()