@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.Column
getName
in interface Schemata.Column
public String getPropertyTypeName()
Schemata.Column
getPropertyTypeName
in interface Schemata.Column
public boolean isFullTextSearchable()
Schemata.Column
isFullTextSearchable
in interface Schemata.Column
public boolean isOrderable()
Schemata.Column
ORDER BY clause
.isOrderable
in interface Schemata.Column
public boolean isComparable()
Schemata.Column
operators
other than
Operator.EQUAL_TO
or Operator.NOT_EQUAL_TO
.isComparable
in interface Schemata.Column
public Object getMinimum()
getMinimum
in interface Schemata.Column
public Object getMaximum()
getMaximum
in interface Schemata.Column
public PropertyType getRequiredType()
getRequiredType
in interface Schemata.Column
public Set<Operator> getOperators()
Schemata.Column
getOperators
in interface Schemata.Column
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.