File tree Expand file tree Collapse file tree 3 files changed +25
-15
lines changed
hibernate-core/src/main/java/org/hibernate/type/descriptor/jdbc Expand file tree Collapse file tree 3 files changed +25
-15
lines changed Original file line number Diff line number Diff line change 14
14
public class LongVarbinaryJdbcType extends VarbinaryJdbcType {
15
15
public static final LongVarbinaryJdbcType INSTANCE = new LongVarbinaryJdbcType ();
16
16
17
- private final int jdbcTypeCode ;
17
+ private final int defaultSqlTypeCode ;
18
18
19
19
public LongVarbinaryJdbcType () {
20
- this (Types .LONGVARBINARY );
20
+ this ( Types .LONGVARBINARY );
21
21
}
22
22
23
- public LongVarbinaryJdbcType (int jdbcTypeCode ) {
24
- this .jdbcTypeCode = jdbcTypeCode ;
23
+ public LongVarbinaryJdbcType (int defaultSqlTypeCode ) {
24
+ this .defaultSqlTypeCode = defaultSqlTypeCode ;
25
+ }
26
+
27
+ @ Override
28
+ public int getDefaultSqlTypeCode () {
29
+ return defaultSqlTypeCode ;
25
30
}
26
31
27
32
@ Override
@@ -31,6 +36,6 @@ public String toString() {
31
36
32
37
@ Override
33
38
public int getJdbcTypeCode () {
34
- return jdbcTypeCode ;
39
+ return Types . LONGVARBINARY ;
35
40
}
36
41
}
Original file line number Diff line number Diff line change 4
4
*/
5
5
package org .hibernate .type .descriptor .jdbc ;
6
6
7
- import java .sql .Types ;
8
-
9
7
import org .hibernate .type .SqlTypes ;
10
8
import org .hibernate .type .descriptor .java .JavaType ;
11
9
import org .hibernate .type .descriptor .jdbc .spi .JdbcTypeRegistry ;
12
10
import org .hibernate .type .spi .TypeConfiguration ;
13
11
12
+ import java .sql .Types ;
13
+
14
14
/**
15
15
* Descriptor for {@link Types#LONGVARCHAR LONGVARCHAR} handling.
16
16
*
19
19
public class LongVarcharJdbcType extends VarcharJdbcType {
20
20
public static final LongVarcharJdbcType INSTANCE = new LongVarcharJdbcType ();
21
21
22
- private final int jdbcTypeCode ;
22
+ private final int defaultSqlTypeCode ;
23
23
24
24
public LongVarcharJdbcType () {
25
- this (Types .LONGVARCHAR );
25
+ this ( Types .LONGVARCHAR );
26
26
}
27
27
28
- public LongVarcharJdbcType (int jdbcTypeCode ) {
29
- this .jdbcTypeCode = jdbcTypeCode ;
28
+ public LongVarcharJdbcType (int defaultSqlTypeCode ) {
29
+ this .defaultSqlTypeCode = defaultSqlTypeCode ;
30
30
}
31
31
32
32
@ Override
@@ -36,7 +36,12 @@ public String toString() {
36
36
37
37
@ Override
38
38
public int getJdbcTypeCode () {
39
- return jdbcTypeCode ;
39
+ return Types .LONGVARCHAR ;
40
+ }
41
+
42
+ @ Override
43
+ public int getDefaultSqlTypeCode () {
44
+ return defaultSqlTypeCode ;
40
45
}
41
46
42
47
@ Override
Original file line number Diff line number Diff line change @@ -85,12 +85,12 @@ public static void prime(BaselineTarget target) {
85
85
target .addDescriptor ( BinaryJdbcType .INSTANCE );
86
86
target .addDescriptor ( VarbinaryJdbcType .INSTANCE );
87
87
target .addDescriptor ( LongVarbinaryJdbcType .INSTANCE );
88
- target .addDescriptor ( new LongVarbinaryJdbcType (SqlTypes .LONG32VARBINARY ) );
88
+ target .addDescriptor ( new LongVarbinaryJdbcType ( SqlTypes .LONG32VARBINARY ) );
89
89
90
90
target .addDescriptor ( CharJdbcType .INSTANCE );
91
91
target .addDescriptor ( VarcharJdbcType .INSTANCE );
92
92
target .addDescriptor ( LongVarcharJdbcType .INSTANCE );
93
- target .addDescriptor ( new LongVarcharJdbcType (SqlTypes .LONG32VARCHAR ) );
93
+ target .addDescriptor ( new LongVarcharJdbcType ( SqlTypes .LONG32VARCHAR ) );
94
94
95
95
target .addDescriptor ( BlobJdbcType .DEFAULT );
96
96
target .addDescriptor ( ClobJdbcType .DEFAULT );
@@ -101,7 +101,7 @@ public static void prime(BaselineTarget target) {
101
101
target .addDescriptor ( Types .NVARCHAR , VarcharJdbcType .INSTANCE );
102
102
target .addDescriptor ( Types .LONGNVARCHAR , LongVarcharJdbcType .INSTANCE );
103
103
target .addDescriptor ( Types .NCLOB , ClobJdbcType .DEFAULT );
104
- target .addDescriptor ( new LongVarcharJdbcType (SqlTypes .LONG32NVARCHAR ) );
104
+ target .addDescriptor ( new LongVarcharJdbcType ( SqlTypes .LONG32NVARCHAR ) );
105
105
106
106
target .addDescriptor ( RowIdJdbcType .INSTANCE );
107
107
}
You can’t perform that action at this time.
0 commit comments