Class DefaultInfoImpl

java.lang.Object
org.apache.derby.catalog.types.DefaultInfoImpl
All Implemented Interfaces:
Externalizable, Serializable, DefaultInfo, Formatable, TypedFormat

public class DefaultInfoImpl extends Object implements DefaultInfo, Formatable
See Also:
  • Field Details

    • defaultValue

      private DataValueDescriptor defaultValue
      This class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method.
    • defaultText

      private String defaultText
    • type

      private int type
    • referencedColumnNames

      private String[] referencedColumnNames
    • originalCurrentSchema

      private String originalCurrentSchema
    • BITS_MASK_IS_DEFAULTVALUE_AUTOINC

      private static final int BITS_MASK_IS_DEFAULTVALUE_AUTOINC
      See Also:
    • BITS_MASK_IS_GENERATED_COLUMN

      private static final int BITS_MASK_IS_GENERATED_COLUMN
      See Also:
  • Constructor Details

    • DefaultInfoImpl

      public DefaultInfoImpl()
      Public niladic constructor. Needed for Formatable interface to work.
    • DefaultInfoImpl

      public DefaultInfoImpl(boolean isDefaultValueAutoinc, String defaultText, DataValueDescriptor defaultValue)
      Constructor for use with numeric types
      Parameters:
      defaultText - The text of the default.
    • DefaultInfoImpl

      public DefaultInfoImpl(String defaultText, String[] referencedColumnNames, String originalCurrentSchema)
      Constructor for use with generated columns
      Parameters:
      defaultText - Text of generation clause.
      referencedColumnNames - names of other columns in the base row which are mentioned in the generation clause.
      originalCurrentSchema - Schema in effect when the generate column was added to the table.
  • Method Details