126
126
127
127
import jakarta .persistence .TemporalType ;
128
128
129
+ import static org .hibernate .dialect .HANAServerConfiguration .MAX_LOB_PREFETCH_SIZE_DEFAULT_VALUE ;
129
130
import static org .hibernate .query .sqm .produce .function .FunctionParameterType .ANY ;
130
131
import static org .hibernate .type .SqlTypes .BINARY ;
131
132
import static org .hibernate .type .SqlTypes .BOOLEAN ;
@@ -1763,7 +1764,7 @@ private X extract(NClob nclob, WrapperOptions options) throws SQLException {
1763
1764
if ( nclob == null ) {
1764
1765
return null ;
1765
1766
}
1766
- if ( nclob .length () < HANANClobJdbcType . this . maxLobPrefetchSize ) {
1767
+ if ( nclob .length () < maxLobPrefetchSize ) {
1767
1768
X retVal = javaType .wrap (nclob , options );
1768
1769
nclob .free ();
1769
1770
return retVal ;
@@ -1790,14 +1791,14 @@ protected X doExtract(CallableStatement statement, String name, WrapperOptions o
1790
1791
}
1791
1792
1792
1793
public int getMaxLobPrefetchSize () {
1793
- return this . maxLobPrefetchSize ;
1794
+ return maxLobPrefetchSize ;
1794
1795
}
1795
1796
}
1796
1797
1797
1798
public static class HANABlobType implements JdbcType {
1798
1799
1799
1800
private static final long serialVersionUID = 5874441715643764323L ;
1800
- public static final JdbcType INSTANCE = new HANABlobType ( HANAServerConfiguration . MAX_LOB_PREFETCH_SIZE_DEFAULT_VALUE );
1801
+ public static final JdbcType INSTANCE = new HANABlobType ( MAX_LOB_PREFETCH_SIZE_DEFAULT_VALUE );
1801
1802
1802
1803
final int maxLobPrefetchSize ;
1803
1804
@@ -1815,7 +1816,7 @@ public int getJdbcTypeCode() {
1815
1816
1816
1817
@ Override
1817
1818
public String getFriendlyName () {
1818
- return "BLOB (hana )" ;
1819
+ return "BLOB (HANA )" ;
1819
1820
}
1820
1821
1821
1822
@ Override
@@ -1830,7 +1831,7 @@ private X extract(Blob blob, WrapperOptions options) throws SQLException {
1830
1831
if ( blob == null ) {
1831
1832
return null ;
1832
1833
}
1833
- if (blob .length () < HANABlobType . this . maxLobPrefetchSize ) {
1834
+ if ( blob .length () < maxLobPrefetchSize ) {
1834
1835
X retVal = javaType .wrap (blob , options );
1835
1836
blob .free ();
1836
1837
return retVal ;
@@ -1868,7 +1869,7 @@ protected void doBind(PreparedStatement st, X value, int index, WrapperOptions o
1868
1869
descriptor = BlobJdbcType .PRIMITIVE_ARRAY_BINDING ;
1869
1870
}
1870
1871
else if ( options .useStreamForLobBinding () ) {
1871
- descriptor = HANABlobType . this . hanaStreamBlobTypeDescriptor ;
1872
+ descriptor = hanaStreamBlobTypeDescriptor ;
1872
1873
}
1873
1874
descriptor .getBinder ( javaType ).bind ( st , value , index , options );
1874
1875
}
@@ -1881,15 +1882,15 @@ protected void doBind(CallableStatement st, X value, String name, WrapperOptions
1881
1882
descriptor = BlobJdbcType .PRIMITIVE_ARRAY_BINDING ;
1882
1883
}
1883
1884
else if ( options .useStreamForLobBinding () ) {
1884
- descriptor = HANABlobType . this . hanaStreamBlobTypeDescriptor ;
1885
+ descriptor = hanaStreamBlobTypeDescriptor ;
1885
1886
}
1886
1887
descriptor .getBinder ( javaType ).bind ( st , value , name , options );
1887
1888
}
1888
1889
};
1889
1890
}
1890
1891
1891
1892
public int getMaxLobPrefetchSize () {
1892
- return this . maxLobPrefetchSize ;
1893
+ return maxLobPrefetchSize ;
1893
1894
}
1894
1895
}
1895
1896
0 commit comments