Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.access.jdbc
Class RowDescriptor

    java.lang.Object
      org.apache.cayenne.access.jdbc.RowDescriptor

    public class RowDescriptor

extends java.lang.Object

A descriptor of a result row obtained from a database.

Since:
  1.2
Author:
  Andrei Adamchik

Field Summary
`protected ColumnDescriptor[]` | `columns`
`protected ExtendedType[]` | `converters`

Constructor Summary
`protected` | `RowDescriptor()` Creates an empty RowDescriptor.
`` | `RowDescriptor(ColumnDescriptor[] columns, ExtendedTypeMap types)` Creates a RowDescriptor for an array of columns.
`` | `RowDescriptor(java.sql.ResultSet resultSet, ExtendedTypeMap types)` Creates new RowDescriptor using ResultSet metadata to determine the columns.
`` | `RowDescriptor(java.sql.ResultSet resultSet, ExtendedTypeMap types, java.util.Map javaTypeOverrides)` Creates new RowDescriptor using ResultSet metadata to determine the columns.

Method Summary
`ColumnDescriptor[]` | `getColumns()` Returns column descriptors.
`ExtendedType[]` | `getConverters()` Returns extended types for columns.
`int` | `getWidth()` Returns a number of columns in a row.
`protected void` | `indexTypes(ExtendedTypeMap types)` Initializes converters for columns.
`protected void` | `initFromResultSet(java.sql.ResultSet resultSet)` Builds columns list from ResultSet metadata.
`protected void` | `overrideJavaTypes(java.util.Map overrides)` Overrides Java types of result columns.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### columns

    protected ColumnDescriptor[] columns

### converters

    protected ExtendedType[] converters

Constructor Detail

### RowDescriptor

    protected RowDescriptor()

  Creates an empty RowDescriptor. Intended mainly for testing and use by subclasses.

### RowDescriptor

    public RowDescriptor(ColumnDescriptor[] columns,
                         ExtendedTypeMap types)

  Creates a RowDescriptor for an array of columns.

### RowDescriptor

    public RowDescriptor(java.sql.ResultSet resultSet,
                         ExtendedTypeMap types)

  Creates new RowDescriptor using ResultSet metadata to determine the columns.

### RowDescriptor

    public RowDescriptor(java.sql.ResultSet resultSet,
                         ExtendedTypeMap types,
                         java.util.Map javaTypeOverrides)

  Creates new RowDescriptor using ResultSet metadata to determine the columns. Note that if javaTypeOverrides array is null, default JDBC to Java types mapping is used.

Method Detail

### indexTypes

    protected void indexTypes(ExtendedTypeMap types)

  Initializes converters for columns.

### initFromResultSet

    protected void initFromResultSet(java.sql.ResultSet resultSet)

  Builds columns list from ResultSet metadata.

### overrideJavaTypes

    protected void overrideJavaTypes(java.util.Map overrides)

  Overrides Java types of result columns. Keys in the map must correspond to the names of the columns.

### getWidth

    public int getWidth()

  Returns a number of columns in a row.

### getColumns

    public ColumnDescriptor[] getColumns()

  Returns column descriptors.

### getConverters

    public ExtendedType[] getConverters()

  Returns extended types for columns.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2006 Apache.org All Rights Reserved.