Class RSColumn.RowBuilder
java.lang.Object
org.apache.cayenne.access.jdbc.RSColumn.RowBuilder
- Enclosing class:
RSColumn
- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRSColumn[]build(ExtendedTypeMap typeMap) Returns the array ofRSColumns describing the result row, with anExtendedTyperesolved for each column.Sets an explicit set of columns.Sets the root DbEntity used to resolve each column'sDbAttributeby name.protected RSColumn[]overrideColumnType(String columnName, String type) Registers a Java type override for the named column.
-
Constructor Details
-
RowBuilder
public RowBuilder()
-
-
Method Details
-
build
Returns the array ofRSColumns describing the result row, with anExtendedTyperesolved for each column.- Throws:
SQLExceptionIllegalStateException
-
mergeResultSetAndPresetColumns
- Returns:
- array of columns for ResultSet with overriding ColumnDescriptors from 'columns' Note: column will be overlooked, if column name is empty
- Throws:
SQLException
-
columns
Sets an explicit set of columns. The builder may replace these with new instances to enforce the column capitalization policy and column Java type overrides. -
resultSet
- Throws:
SQLException
-
useLowercaseColumnNames
-
useUppercaseColumnNames
-
overrideColumnType
Registers a Java type override for the named column. The first override registered for a given column wins: subsequent calls for the same column are ignored, so callers can register higher-priority overrides first and follow with fallback defaults without having to check what is already registered. -
validateDuplicateColumnNames
-
mergeColumnsWithRsMetadata
-
dbEntity
Sets the root DbEntity used to resolve each column'sDbAttributeby name. Optional - when not set, column attributes are left as provided.
-