Package bbd.jportal2

Class Field

  • All Implemented Interfaces:
    Serializable

    public class Field
    extends Object
    implements Serializable
    This holds the field definition. It also supplies methods for the Java format and various SQL formats.
    See Also:
    Serialized Form
    • Constructor Detail

      • Field

        public Field()
        constructor ensures fields have correct default values
    • Method Detail

      • getName

        public String getName()
      • getAlias

        public String getAlias()
      • getDefaultValue

        public String getDefaultValue()
      • getCheckValue

        public String getCheckValue()
      • getType

        public byte getType()
      • getLength

        public int getLength()
      • getPrecision

        public int getPrecision()
      • getScale

        public int getScale()
      • getBindPos

        public int getBindPos()
      • getDefinePos

        public int getDefinePos()
      • getEnumLink

        public String getEnumLink()
      • getEnumType

        public String getEnumType()
      • setEnumType

        public void setEnumType​(String enumType)
      • isPrimaryKey

        public boolean isPrimaryKey()
      • isSequence

        public boolean isSequence()
      • isNull

        public boolean isNull()
      • isLiteral

        public boolean isLiteral()
      • isCalc

        public boolean isCalc()
      • isIn

        public boolean isIn()
      • isOut

        public boolean isOut()
      • isExtStd

        public boolean isExtStd()
      • isExtStdOut

        public boolean isExtStdOut()
      • getLiteralName

        public String getLiteralName()
      • useName

        public String useName()
        If there is an alias uses that else returns name
      • useLiteral

        public String useLiteral()
        If there is an literal uses that else returns name
      • useLowerName

        public String useLowerName()
        If there is an alias uses that else returns name
      • useUpperName

        public String useUpperName()
        If there is an alias uses that else returns name
      • isEmptyAsNull

        public boolean isEmptyAsNull()
        Check for empty string as null type fields.
      • isCharEmptyAsNull

        public boolean isCharEmptyAsNull()
        Check for empty string as null type fields.
      • ansiIsNull

        public boolean ansiIsNull()
        Check for empty string as null type fields.
      • isEmptyOrAnsiAsNull

        public boolean isEmptyOrAnsiAsNull()
      • isCharEmptyOrAnsiAsNull

        public boolean isCharEmptyOrAnsiAsNull()