Package org.hibernate.engine.jdbc
Class Size
java.lang.Object
org.hibernate.engine.jdbc.Size
- All Implemented Interfaces:
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. Additionally, LOB
sizes, by standard, are allowed a "multiplier":
K(Kb),M(Mb), orG(Gb).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longstatic final intstatic final intstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionSize()Size(Integer precision, Integer scale, Integer length, Size.LobMultiplier lobMultiplier) Deprecated, for removal: This API element is subject to removal in a future version.Size(Integer precision, Integer scale, Long length, Size.LobMultiplier lobMultiplier) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofSize(Integer, Integer, Long) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.getScale()voidinitialize(Size size) static Sizelength(long length) static Sizelength(long length, Size.LobMultiplier lobMultiplier) static Sizenil()static Sizeprecision(int precision) static Sizeprecision(int precision, int scale) setArrayLength(Integer arrayLength) setLobMultiplier(Size.LobMultiplier lobMultiplier) Deprecated, for removal: This API element is subject to removal in a future version.setPrecision(Integer precision)
-
Field Details
-
DEFAULT_LENGTH
public static final long DEFAULT_LENGTH- See Also:
-
LONG_LENGTH
public static final long LONG_LENGTH- See Also:
-
DEFAULT_LOB_LENGTH
public static final long DEFAULT_LOB_LENGTH- See Also:
-
DEFAULT_PRECISION
public static final int DEFAULT_PRECISION- See Also:
-
DEFAULT_SCALE
public static final int DEFAULT_SCALE- See Also:
-
-
Constructor Details
-
Size
public Size() -
Size
@Deprecated(forRemoval=true, since="6.5") public Size(Integer precision, Integer scale, Long length, Size.LobMultiplier lobMultiplier) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofSize(Integer, Integer, Long)Complete constructor.- Parameters:
precision- numeric precisionscale- numeric scalelength- type lengthlobMultiplier- LOB length multiplier
-
Size
@Deprecated(forRemoval=true, since="6.5") public Size(Integer precision, Integer scale, Integer length, Size.LobMultiplier lobMultiplier) Deprecated, for removal: This API element is subject to removal in a future version.in favor ofSize(Integer, Integer, Long) -
Size
-
-
Method Details
-
nil
-
precision
-
precision
-
length
-
length
-
getPrecision
-
getScale
-
getLength
-
getArrayLength
-
getLobMultiplier
Deprecated, for removal: This API element is subject to removal in a future version. -
initialize
-
setPrecision
-
setScale
-
setLength
-
setArrayLength
-
setLobMultiplier
@Deprecated(forRemoval=true, since="6.5") public Size setLobMultiplier(Size.LobMultiplier lobMultiplier) Deprecated, for removal: This API element is subject to removal in a future version.
-
Size(Integer, Integer, Long)