static class RowsetDefinition.Column extends Object
Modifier and Type | Field and Description |
---|---|
(package private) String |
description |
(package private) Enumeration |
enumeration |
(package private) String |
name |
(package private) static boolean |
NOT_RESTRICTION
This is used as the false value for the restriction parameter.
|
(package private) boolean |
nullable |
(package private) static boolean |
ONE_MAX
This is used as the false value for the unbounded parameter.
|
(package private) static boolean |
OPTIONAL
This is used as the true value for the nullable parameter.
|
(package private) static boolean |
REQUIRED
This is used as the false value for the nullable parameter.
|
(package private) boolean |
restriction |
(package private) static boolean |
RESTRICTION
This is used as the true value for the restriction parameter.
|
(package private) RowsetDefinition.Type |
type |
(package private) boolean |
unbounded |
(package private) static boolean |
UNBOUNDED
This is used as the true value for the unbounded parameter.
|
Constructor and Description |
---|
Column(String name,
RowsetDefinition.Type type,
Enumeration enumeratedType,
boolean restriction,
boolean nullable,
boolean unbounded,
String description) |
Column(String name,
RowsetDefinition.Type type,
Enumeration enumeratedType,
boolean restriction,
boolean nullable,
String description)
Creates a column.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
get(Object row)
Retrieves a value of this column from a row.
|
String |
getColumnType() |
protected Object |
getFromAccessor(Object row)
Retrieves the value of this column "MyColumn" by calling a method
called "getMyColumn()".
|
protected Object |
getFromField(Object row)
Retrieves the value of this column "MyColumn" from a field called
"myColumn".
|
static final boolean RESTRICTION
static final boolean NOT_RESTRICTION
static final boolean REQUIRED
static final boolean OPTIONAL
static final boolean ONE_MAX
static final boolean UNBOUNDED
final String name
final RowsetDefinition.Type type
final Enumeration enumeration
final String description
final boolean restriction
final boolean nullable
final boolean unbounded
Column(String name, RowsetDefinition.Type type, Enumeration enumeratedType, boolean restriction, boolean nullable, String description)
name
- Name of columntype
- A RowsetDefinition.Type
valueenumeratedType
- Must be specified for enumeration or array
of enumerationsdescription
- Description of columnrestriction
- Whether column can be used as a filter on its
rowsetnullable
- Whether column can contain null valuesColumn(String name, RowsetDefinition.Type type, Enumeration enumeratedType, boolean restriction, boolean nullable, boolean unbounded, String description)
protected Object get(Object row)
row
- Rowprotected final Object getFromField(Object row)
row
- Current rowprotected final Object getFromAccessor(Object row)
row
- Current rowpublic String getColumnType()