类 Size

  • 所有已实现的接口:
    Serializable

    public class Size
    extends Object
    implements Serializable
    Models size restrictions/requirements on a column's datatype.

    IMPL NOTE: since we do not necessarily know the datatype up front, and therefore do not necessarily know whether length or precision/scale sizing is needed, we simply account for both here. Additionally LOB definitions, by standard, are allowed a "multiplier" consisting of 'K' (Kb), 'M' (Mb) or 'G' (Gb).

    作者:
    Steve Ebersole
    另请参阅:
    序列化表格
    • 字段详细资料

      • DEFAULT_LENGTH

        public static final int DEFAULT_LENGTH
        另请参阅:
        常量字段值
      • DEFAULT_PRECISION

        public static final int DEFAULT_PRECISION
        另请参阅:
        常量字段值
      • DEFAULT_SCALE

        public static final int DEFAULT_SCALE
        另请参阅:
        常量字段值
    • 构造器详细资料

      • Size

        public Size()
      • Size

        public Size​(int precision,
                    int scale,
                    long length,
                    Size.LobMultiplier lobMultiplier)
        Complete constructor.
        参数:
        precision - numeric precision
        scale - numeric scale
        length - type length
        lobMultiplier - LOB length multiplier
    • 方法详细资料

      • precision

        public static Size precision​(int precision)
      • precision

        public static Size precision​(int precision,
                                     int scale)
      • length

        public static Size length​(long length)
      • getPrecision

        public int getPrecision()
      • getScale

        public int getScale()
      • getLength

        public long getLength()
      • initialize

        public void initialize​(Size size)
      • setPrecision

        public void setPrecision​(int precision)
      • setScale

        public void setScale​(int scale)
      • setLength

        public void setLength​(long length)