HHH-17951 Deprecate unused Size.LobMultiplier
This commit is contained in:
parent
eb760db015
commit
8fdf86e8a5
|
@ -20,6 +20,8 @@ import java.io.Serializable;
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
public class Size implements Serializable {
|
public class Size implements Serializable {
|
||||||
|
|
||||||
|
@Deprecated( forRemoval = true )
|
||||||
public enum LobMultiplier {
|
public enum LobMultiplier {
|
||||||
NONE( 1 ),
|
NONE( 1 ),
|
||||||
K( NONE.factor * 1024 ),
|
K( NONE.factor * 1024 ),
|
||||||
|
@ -60,7 +62,9 @@ public class Size implements Serializable {
|
||||||
* @param scale numeric scale
|
* @param scale numeric scale
|
||||||
* @param length type length
|
* @param length type length
|
||||||
* @param lobMultiplier LOB length multiplier
|
* @param lobMultiplier LOB length multiplier
|
||||||
|
* @deprecated in favor of {@link Size#Size(Integer, Integer, Long)}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated( forRemoval = true )
|
||||||
public Size(Integer precision, Integer scale, Long length, LobMultiplier lobMultiplier) {
|
public Size(Integer precision, Integer scale, Long length, LobMultiplier lobMultiplier) {
|
||||||
this.precision = precision;
|
this.precision = precision;
|
||||||
this.scale = scale;
|
this.scale = scale;
|
||||||
|
@ -68,6 +72,10 @@ public class Size implements Serializable {
|
||||||
this.lobMultiplier = lobMultiplier;
|
this.lobMultiplier = lobMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated in favor of {@link Size#Size(Integer, Integer, Long)}
|
||||||
|
*/
|
||||||
|
@Deprecated( forRemoval = true )
|
||||||
public Size(Integer precision, Integer scale, Integer length, LobMultiplier lobMultiplier) {
|
public Size(Integer precision, Integer scale, Integer length, LobMultiplier lobMultiplier) {
|
||||||
this.precision = precision;
|
this.precision = precision;
|
||||||
this.scale = scale;
|
this.scale = scale;
|
||||||
|
@ -75,6 +83,10 @@ public class Size implements Serializable {
|
||||||
this.lobMultiplier = lobMultiplier;
|
this.lobMultiplier = lobMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Size(Integer precision, Integer scale, Long length) {
|
||||||
|
this( precision, scale, length, Size.LobMultiplier.NONE );
|
||||||
|
}
|
||||||
|
|
||||||
public static Size nil() {
|
public static Size nil() {
|
||||||
return new Size();
|
return new Size();
|
||||||
}
|
}
|
||||||
|
@ -111,6 +123,7 @@ public class Size implements Serializable {
|
||||||
return arrayLength;
|
return arrayLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated( forRemoval = true )
|
||||||
public LobMultiplier getLobMultiplier() {
|
public LobMultiplier getLobMultiplier() {
|
||||||
return lobMultiplier;
|
return lobMultiplier;
|
||||||
}
|
}
|
||||||
|
@ -141,6 +154,7 @@ public class Size implements Serializable {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated( forRemoval = true )
|
||||||
public Size setLobMultiplier(LobMultiplier lobMultiplier) {
|
public Size setLobMultiplier(LobMultiplier lobMultiplier) {
|
||||||
this.lobMultiplier = lobMultiplier;
|
this.lobMultiplier = lobMultiplier;
|
||||||
return this;
|
return this;
|
||||||
|
|
|
@ -26,7 +26,7 @@ public abstract class AbstractType implements Type {
|
||||||
protected static final Size LEGACY_DICTATED_SIZE = new Size();
|
protected static final Size LEGACY_DICTATED_SIZE = new Size();
|
||||||
|
|
||||||
@Deprecated(forRemoval = true)
|
@Deprecated(forRemoval = true)
|
||||||
protected static final Size LEGACY_DEFAULT_SIZE = new Size( 19, 2, 255L, Size.LobMultiplier.NONE ); // to match legacy behavior
|
protected static final Size LEGACY_DEFAULT_SIZE = new Size( 19, 2, 255L ); // to match legacy behavior
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isAssociationType() {
|
public boolean isAssociationType() {
|
||||||
|
|
Loading…
Reference in New Issue