public class RowDescriptorBuilder extends Object
RowDescriptor
instances from various
types of inputs.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.collections.Transformer |
caseTransformer |
protected ColumnDescriptor[] |
columns |
protected ResultSetMetaData |
resultSetMetadata |
protected Map<String,String> |
typeOverrides |
protected boolean |
validateDuplicateColumnNames |
Constructor and Description |
---|
RowDescriptorBuilder() |
Modifier and Type | Method and Description |
---|---|
RowDescriptor |
getDescriptor(ExtendedTypeMap typeMap)
Returns a RowDescriptor built based on the builder internal state.
|
boolean |
isOverriden(String columnName) |
protected ColumnDescriptor[] |
mergeResultSetAndPresetColumns() |
RowDescriptorBuilder |
overrideColumnType(String columnName,
String type) |
RowDescriptorBuilder |
setColumns(ColumnDescriptor[] columns)
Sets an explicit set of columns.
|
RowDescriptorBuilder |
setResultSet(ResultSet resultSet) |
RowDescriptorBuilder |
useLowercaseColumnNames() |
RowDescriptorBuilder |
useUppercaseColumnNames() |
RowDescriptorBuilder |
validateDuplicateColumnNames()
Validate and report duplicate names of columns.
|
protected ColumnDescriptor[] columns
protected ResultSetMetaData resultSetMetadata
protected org.apache.commons.collections.Transformer caseTransformer
protected boolean validateDuplicateColumnNames
public RowDescriptor getDescriptor(ExtendedTypeMap typeMap) throws SQLException, IllegalStateException
SQLException
IllegalStateException
protected ColumnDescriptor[] mergeResultSetAndPresetColumns() throws SQLException
SQLException
public RowDescriptorBuilder setColumns(ColumnDescriptor[] columns)
public RowDescriptorBuilder setResultSet(ResultSet resultSet) throws SQLException
SQLException
public RowDescriptorBuilder useLowercaseColumnNames()
public RowDescriptorBuilder useUppercaseColumnNames()
public RowDescriptorBuilder overrideColumnType(String columnName, String type)
public RowDescriptorBuilder validateDuplicateColumnNames()
public boolean isOverriden(String columnName)
Copyright © 2001–2019 Apache Cayenne. All rights reserved.