Package acdp.design
Class SimpleType.TypeDesc
java.lang.Object
acdp.design.SimpleType.TypeDesc
- Enclosing class:
SimpleType<T>
Provides convenient access to the individual fields of a type descriptor
that is represented by a
String
.
This class can be used by implementers of a custom column type to validate
a String
representation of a type descriptor at the time the
custom column type is created.- Author:
- Beat Hörmann
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
The limit of this column type.final boolean
The information whether this column type allows thenull
value.final String
The prefix of this type descriptor, nevernull
and never an empty string.final Type.Scheme
The storage scheme of this column type, nevernull
.final boolean
The information whether the byte representation of values of this column type are of variable length. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
prefix
The prefix of this type descriptor, nevernull
and never an empty string. -
nullable
public final boolean nullableThe information whether this column type allows thenull
value. -
scheme
The storage scheme of this column type, nevernull
. -
limit
public final int limitThe limit of this column type. The limit is directly related to the length of this column type. This value is greater than or equal to 1 and ifscheme
is equal toScheme.OUTROW
then it is less than or equal to 4. -
variable
public final boolean variableThe information whether the byte representation of values of this column type are of variable length. Ifscheme
is equal toScheme.OUTROW
then this value is equal tofalse
.
-
-
Constructor Details
-
TypeDesc
The constructor.- Parameters:
typeDesc
- The type descriptor as aString
.- Throws:
CreationException
- If parsing the specified type descriptor fails.
-