@@ -4732,27 +4732,36 @@ public int getMaxVarbinaryCapacity() {
4732
4732
}
4733
4733
4734
4734
/**
4735
- * The default length for a LOB column, if LOB columns have a length in
4736
- * this dialect.
4735
+ * This is the default length for a generated column of type
4736
+ * {@link SqlTypes#BLOB BLOB} or {@link SqlTypes#CLOB CLOB}
4737
+ * mapped to {@link Blob} or {@link Clob}, if LOB columns
4738
+ * have a length in this dialect.
4737
4739
*
4738
4740
* @return {@value Size#DEFAULT_LOB_LENGTH} by default
4739
4741
*
4740
4742
* @see Length#LOB_DEFAULT
4743
+ * @see org.hibernate.type.descriptor.java.BlobJavaType
4744
+ * @see org.hibernate.type.descriptor.java.ClobJavaType
4741
4745
*/
4742
4746
public long getDefaultLobLength () {
4743
4747
return Size .DEFAULT_LOB_LENGTH ;
4744
4748
}
4745
4749
4746
4750
/**
4747
- * This is the default precision for a generated
4748
- * column mapped to a {@link java.math.BigInteger}
4749
- * or {@link java.math.BigDecimal}.
4751
+ * This is the default precision for a generated column of
4752
+ * exact numeric type {@link SqlTypes#DECIMAL DECIMAL} or
4753
+ * {@link SqlTypes#NUMERIC NUMERIC} mapped to a
4754
+ * {@link java.math.BigInteger} or
4755
+ * {@link java.math.BigDecimal}.
4750
4756
* <p>
4751
4757
* Usually returns the maximum precision of the
4752
4758
* database, except when there is no such maximum
4753
4759
* precision, or the maximum precision is very high.
4754
4760
*
4755
4761
* @return the default precision, in decimal digits
4762
+ *
4763
+ * @see org.hibernate.type.descriptor.java.BigDecimalJavaType
4764
+ * @see org.hibernate.type.descriptor.java.BigIntegerJavaType
4756
4765
*/
4757
4766
public int getDefaultDecimalPrecision () {
4758
4767
//this is the maximum for Oracle, SQL Server,
@@ -4762,14 +4771,20 @@ public int getDefaultDecimalPrecision() {
4762
4771
}
4763
4772
4764
4773
/**
4765
- * This is the default precision for a generated
4766
- * column mapped to a {@link Timestamp} or
4767
- * {@link java.time.LocalDateTime}.
4774
+ * This is the default precision for a generated column of
4775
+ * type {@link SqlTypes#TIMESTAMP TIMESTAMP} mapped to a
4776
+ * {@link Timestamp} or {@link java.time.LocalDateTime}.
4768
4777
* <p>
4769
4778
* Usually 6 (microseconds) or 3 (milliseconds).
4770
4779
*
4771
4780
* @return the default precision, in decimal digits,
4772
4781
* of the fractional seconds field
4782
+ *
4783
+ * @see org.hibernate.type.descriptor.java.JdbcTimestampJavaType
4784
+ * @see org.hibernate.type.descriptor.java.LocalDateTimeJavaType
4785
+ * @see org.hibernate.type.descriptor.java.OffsetDateTimeJavaType
4786
+ * @see org.hibernate.type.descriptor.java.ZonedDateTimeJavaType
4787
+ * @see org.hibernate.type.descriptor.java.InstantJavaType
4773
4788
*/
4774
4789
public int getDefaultTimestampPrecision () {
4775
4790
//milliseconds or microseconds is the maximum
@@ -4779,6 +4794,23 @@ public int getDefaultTimestampPrecision() {
4779
4794
return 6 ; //microseconds!
4780
4795
}
4781
4796
4797
+ /**
4798
+ * This is the default scale for a generated column of type
4799
+ * {@link SqlTypes#INTERVAL_SECOND INTERVAL SECOND} mapped
4800
+ * to a {@link Duration}.
4801
+ * <p>
4802
+ * Usually 9 (nanoseconds) or 6 (microseconds).
4803
+ *
4804
+ * @return the default scale, in decimal digits,
4805
+ * of the fractional seconds field
4806
+ *
4807
+ * @see org.hibernate.type.descriptor.java.DurationJavaType
4808
+ */
4809
+ public int getDefaultIntervalSecondScale (){
4810
+ // The default scale necessary is 9 i.e. nanosecond resolution
4811
+ return 9 ;
4812
+ }
4813
+
4782
4814
/**
4783
4815
* Does this dialect round a temporal when converting from a precision higher to a lower one?
4784
4816
*
@@ -5477,16 +5509,4 @@ public FunctionalDependencyAnalysisSupport getFunctionalDependencyAnalysisSuppor
5477
5509
return FunctionalDependencyAnalysisSupportImpl .NONE ;
5478
5510
}
5479
5511
5480
- /**
5481
- * Resolves the default scale for a {@link SqlTypes.INTERVAL_SECOND} type code for the given column
5482
- * <p>
5483
- * Usually 9 (nanosecond) or 6 (microseconds).
5484
- *
5485
- * @return the default scale, in decimal digits,
5486
- * of the fractional seconds field
5487
- */
5488
- public int getDefaultIntervalSecondScale (){
5489
- // The default scale necessary is 9 i.e. nanosecond resolution
5490
- return 9 ;
5491
- }
5492
5512
}
0 commit comments