Class Size

java.lang.Object
org.hibernate.engine.jdbc.Size
All Implemented Interfaces:
Serializable

public class Size extends Object implements Serializable
Models size restrictions/requirements on a column's data type.
See Also:
Implementation Note:
Since we do not necessarily know the data type up front, and therefore do not necessarily know whether length or precision/scale sizing is needed, we simply account for both here.
  • Field Details

  • Constructor Details

  • Method Details

    • nil

      public static Size nil()
    • 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 Integer getPrecision()
    • getScale

      public Integer getScale()
    • getLength

      public Long getLength()
    • getArrayLength

      public Integer getArrayLength()
    • initialize

      public void initialize(Size size)
    • setPrecision

      public Size setPrecision(Integer precision)
    • setScale

      public Size setScale(Integer scale)
    • setLength

      public Size setLength(Long length)
    • setArrayLength

      public Size setArrayLength(Integer arrayLength)