Package acdp.design

Class SimpleType.TypeDesc

java.lang.Object
acdp.design.SimpleType.TypeDesc
Enclosing class:
SimpleType<T>

protected static final class SimpleType.TypeDesc extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    final int
    The limit of this column type.
    final boolean
    The information whether this column type allows the null value.
    final String
    The prefix of this type descriptor, never null and never an empty string.
    The storage scheme of this column type, never null.
    final boolean
    The information whether the byte representation of values of this column type are of variable length.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TypeDesc(String typeDesc)
    The constructor.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • prefix

      public final String prefix
      The prefix of this type descriptor, never null and never an empty string.
    • nullable

      public final boolean nullable
      The information whether this column type allows the null value.
    • scheme

      public final Type.Scheme scheme
      The storage scheme of this column type, never null.
    • limit

      public final int limit
      The 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 if scheme is equal to Scheme.OUTROW then it is less than or equal to 4.
    • variable

      public final boolean variable
      The information whether the byte representation of values of this column type are of variable length. If scheme is equal to Scheme.OUTROW then this value is equal to false.
  • Constructor Details

    • TypeDesc

      public TypeDesc(String typeDesc) throws CreationException
      The constructor.
      Parameters:
      typeDesc - The type descriptor as a String.
      Throws:
      CreationException - If parsing the specified type descriptor fails.