HHH-18312 Suggested style changes
This commit is contained in:
parent
711dffa7e3
commit
1f1b86a085
|
@ -120,7 +120,7 @@ public class JsonAsStringJdbcType extends JsonJdbcType implements AdjustableJdbc
|
||||||
protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options)
|
protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
final String json = ( (JsonAsStringJdbcType) getJdbcType() ).toString( value, getJavaType(), options );
|
final String json = ( (JsonAsStringJdbcType) getJdbcType() ).toString( value, getJavaType(), options );
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNString( index, json );
|
st.setNString( index, json );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -132,7 +132,7 @@ public class JsonAsStringJdbcType extends JsonJdbcType implements AdjustableJdbc
|
||||||
protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
|
protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
final String json = ( (JsonAsStringJdbcType) getJdbcType() ).toString( value, getJavaType(), options );
|
final String json = ( (JsonAsStringJdbcType) getJdbcType() ).toString( value, getJavaType(), options );
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNString( name, json );
|
st.setNString( name, json );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -152,7 +152,7 @@ public class JsonAsStringJdbcType extends JsonJdbcType implements AdjustableJdbc
|
||||||
return new BasicExtractor<>( javaType, this ) {
|
return new BasicExtractor<>( javaType, this ) {
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException {
|
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return fromString( rs.getNString( paramIndex ), getJavaType(), options );
|
return fromString( rs.getNString( paramIndex ), getJavaType(), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -163,7 +163,7 @@ public class JsonAsStringJdbcType extends JsonJdbcType implements AdjustableJdbc
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
|
protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return fromString( statement.getNString( index ), getJavaType(), options );
|
return fromString( statement.getNString( index ), getJavaType(), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -174,7 +174,7 @@ public class JsonAsStringJdbcType extends JsonJdbcType implements AdjustableJdbc
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(CallableStatement statement, String name, WrapperOptions options)
|
protected X doExtract(CallableStatement statement, String name, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return fromString( statement.getNString( name ), getJavaType(), options );
|
return fromString( statement.getNString( name ), getJavaType(), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -46,7 +46,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
return new BasicExtractor<>( javaType, this ) {
|
return new BasicExtractor<>( javaType, this ) {
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException {
|
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return javaType.wrap( rs.getNClob( paramIndex ), options );
|
return javaType.wrap( rs.getNClob( paramIndex ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -57,7 +57,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
|
protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return javaType.wrap( statement.getNClob( index ), options );
|
return javaType.wrap( statement.getNClob( index ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -68,7 +68,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(CallableStatement statement, String name, WrapperOptions options)
|
protected X doExtract(CallableStatement statement, String name, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return javaType.wrap( statement.getNClob( name ), options );
|
return javaType.wrap( statement.getNClob( name ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -145,7 +145,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options)
|
protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNString( index, javaType.unwrap( value, String.class, options ) );
|
st.setNString( index, javaType.unwrap( value, String.class, options ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -156,7 +156,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
|
protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNString( name, javaType.unwrap( value, String.class, options ) );
|
st.setNString( name, javaType.unwrap( value, String.class, options ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -170,7 +170,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
return new BasicExtractor<>( javaType, this ) {
|
return new BasicExtractor<>( javaType, this ) {
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException {
|
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return javaType.wrap( rs.getNString( paramIndex ), options );
|
return javaType.wrap( rs.getNString( paramIndex ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -181,7 +181,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
|
protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return javaType.wrap( statement.getNString( index ), options );
|
return javaType.wrap( statement.getNString( index ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -192,7 +192,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(CallableStatement statement, String name, WrapperOptions options)
|
protected X doExtract(CallableStatement statement, String name, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return javaType.wrap( statement.getNString( name ), options );
|
return javaType.wrap( statement.getNString( name ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -220,7 +220,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options)
|
protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNClob( index, javaType.unwrap( value, NClob.class, options ) );
|
st.setNClob( index, javaType.unwrap( value, NClob.class, options ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -231,7 +231,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
|
protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNClob( name, javaType.unwrap( value, NClob.class, options ) );
|
st.setNClob( name, javaType.unwrap( value, NClob.class, options ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -260,7 +260,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options)
|
protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
final CharacterStream characterStream = javaType.unwrap( value, CharacterStream.class, options );
|
final CharacterStream characterStream = javaType.unwrap( value, CharacterStream.class, options );
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNCharacterStream( index, characterStream.asReader(), characterStream.getLength() );
|
st.setNCharacterStream( index, characterStream.asReader(), characterStream.getLength() );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -272,7 +272,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
|
protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
final CharacterStream characterStream = javaType.unwrap( value, CharacterStream.class, options );
|
final CharacterStream characterStream = javaType.unwrap( value, CharacterStream.class, options );
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNCharacterStream( name, characterStream.asReader(), characterStream.getLength() );
|
st.setNCharacterStream( name, characterStream.asReader(), characterStream.getLength() );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -300,7 +300,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options)
|
protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNString( index, javaType.unwrap( value, String.class, options ) );
|
st.setNString( index, javaType.unwrap( value, String.class, options ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -311,7 +311,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
|
protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNString( name, javaType.unwrap( value, String.class, options ) );
|
st.setNString( name, javaType.unwrap( value, String.class, options ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -326,7 +326,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
return new BasicExtractor<>( javaType, this ) {
|
return new BasicExtractor<>( javaType, this ) {
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException {
|
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return javaType.wrap( rs.getNString( paramIndex ), options );
|
return javaType.wrap( rs.getNString( paramIndex ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -337,7 +337,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
|
protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return javaType.wrap( statement.getNString( index ), options );
|
return javaType.wrap( statement.getNString( index ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -348,7 +348,7 @@ public abstract class NClobJdbcType implements JdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(CallableStatement statement, String name, WrapperOptions options)
|
protected X doExtract(CallableStatement statement, String name, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return javaType.wrap( statement.getNString( name ), options );
|
return javaType.wrap( statement.getNString( name ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -106,7 +106,7 @@ public class NVarcharJdbcType implements AdjustableJdbcType {
|
||||||
return new BasicBinder<>( javaType, this ) {
|
return new BasicBinder<>( javaType, this ) {
|
||||||
@Override
|
@Override
|
||||||
protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options) throws SQLException {
|
protected void doBind(PreparedStatement st, X value, int index, WrapperOptions options) throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNString( index, javaType.unwrap( value, String.class, options ) );
|
st.setNString( index, javaType.unwrap( value, String.class, options ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -117,7 +117,7 @@ public class NVarcharJdbcType implements AdjustableJdbcType {
|
||||||
@Override
|
@Override
|
||||||
protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
|
protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNString( name, javaType.unwrap( value, String.class, options ) );
|
st.setNString( name, javaType.unwrap( value, String.class, options ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -132,7 +132,7 @@ public class NVarcharJdbcType implements AdjustableJdbcType {
|
||||||
return new BasicExtractor<>( javaType, this ) {
|
return new BasicExtractor<>( javaType, this ) {
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException {
|
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return javaType.wrap( rs.getNString( paramIndex ), options );
|
return javaType.wrap( rs.getNString( paramIndex ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -142,7 +142,7 @@ public class NVarcharJdbcType implements AdjustableJdbcType {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException {
|
protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return javaType.wrap( statement.getNString( index ), options );
|
return javaType.wrap( statement.getNString( index ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -152,7 +152,7 @@ public class NVarcharJdbcType implements AdjustableJdbcType {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException {
|
protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return javaType.wrap( statement.getNString( name ), options );
|
return javaType.wrap( statement.getNString( name ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -130,7 +130,7 @@ public class XmlAsStringJdbcType extends XmlJdbcType implements AdjustableJdbcTy
|
||||||
getJavaType(),
|
getJavaType(),
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNString( index, xml );
|
st.setNString( index, xml );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -146,7 +146,7 @@ public class XmlAsStringJdbcType extends XmlJdbcType implements AdjustableJdbcTy
|
||||||
getJavaType(),
|
getJavaType(),
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
st.setNString( name, xml );
|
st.setNString( name, xml );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -189,7 +189,7 @@ public class XmlAsStringJdbcType extends XmlJdbcType implements AdjustableJdbcTy
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException {
|
protected X doExtract(ResultSet rs, int paramIndex, WrapperOptions options) throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return getObject( rs.getNString( paramIndex ), options );
|
return getObject( rs.getNString( paramIndex ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -200,7 +200,7 @@ public class XmlAsStringJdbcType extends XmlJdbcType implements AdjustableJdbcTy
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
|
protected X doExtract(CallableStatement statement, int index, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return getObject( statement.getNString( index ), options );
|
return getObject( statement.getNString( index ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -211,7 +211,7 @@ public class XmlAsStringJdbcType extends XmlJdbcType implements AdjustableJdbcTy
|
||||||
@Override
|
@Override
|
||||||
protected X doExtract(CallableStatement statement, String name, WrapperOptions options)
|
protected X doExtract(CallableStatement statement, String name, WrapperOptions options)
|
||||||
throws SQLException {
|
throws SQLException {
|
||||||
if (options.getDialect().supportsNationalizedMethods()) {
|
if ( options.getDialect().supportsNationalizedMethods() ) {
|
||||||
return getObject( statement.getNString( name ), options );
|
return getObject( statement.getNString( name ), options );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue