@Immutable public class ImmutableColumn extends Object implements Schemata.Column
| Modifier and Type | Field and Description |
|---|---|
static Set<Operator> |
ALL_OPERATORS |
static boolean |
DEFAULT_FULL_TEXT_SEARCHABLE |
static boolean |
DEFAULT_ORDERABLE |
static PropertyType |
DEFAULT_REQUIRED_TYPE |
static Set<Operator> |
NO_OPERATORS |
| Modifier | Constructor and Description |
|---|---|
protected |
ImmutableColumn(String name,
String type) |
protected |
ImmutableColumn(String name,
String type,
PropertyType requiredType) |
protected |
ImmutableColumn(String name,
String type,
PropertyType requiredType,
boolean fullTextSearchable) |
protected |
ImmutableColumn(String name,
String type,
PropertyType requiredType,
boolean fullTextSearchable,
boolean orderable,
boolean canContainReferences,
Object minimum,
Object maximum,
Operator... operators) |
protected |
ImmutableColumn(String name,
String type,
PropertyType requiredType,
boolean fullTextSearchable,
boolean orderable,
Object minimum,
Object maximum,
Set<Operator> operators) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getMaximum() |
Object |
getMinimum() |
String |
getName()
Get the name for this column.
|
Set<Operator> |
getOperators()
Get the set of operators that can be used in a comparison involving this column.
|
String |
getPropertyTypeName()
Get the property type for this column.
|
PropertyType |
getRequiredType() |
boolean |
isComparable()
Get whether this column can be used within a comparison using
operators other than
Operator.EQUAL_TO or Operator.NOT_EQUAL_TO. |
boolean |
isFullTextSearchable()
Get whether the column can be used in a full-text search.
|
boolean |
isOrderable()
Get whether this column can be used within an
ORDER BY clause. |
String |
toString() |
public static final PropertyType DEFAULT_REQUIRED_TYPE
public static final boolean DEFAULT_FULL_TEXT_SEARCHABLE
public static final boolean DEFAULT_ORDERABLE
protected ImmutableColumn(String name, String type, PropertyType requiredType)
protected ImmutableColumn(String name, String type, PropertyType requiredType, boolean fullTextSearchable)
protected ImmutableColumn(String name, String type, PropertyType requiredType, boolean fullTextSearchable, boolean orderable, boolean canContainReferences, Object minimum, Object maximum, Operator... operators)
public String getName()
Schemata.ColumngetName in interface Schemata.Columnpublic String getPropertyTypeName()
Schemata.ColumngetPropertyTypeName in interface Schemata.Columnpublic boolean isFullTextSearchable()
Schemata.ColumnisFullTextSearchable in interface Schemata.Columnpublic boolean isOrderable()
Schemata.ColumnORDER BY clause.isOrderable in interface Schemata.Columnpublic boolean isComparable()
Schemata.Columnoperators other than
Operator.EQUAL_TO or Operator.NOT_EQUAL_TO.isComparable in interface Schemata.Columnpublic Object getMinimum()
getMinimum in interface Schemata.Columnpublic Object getMaximum()
getMaximum in interface Schemata.Columnpublic PropertyType getRequiredType()
getRequiredType in interface Schemata.Columnpublic Set<Operator> getOperators()
Schemata.ColumngetOperators in interface Schemata.ColumnCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.