Remove defenses against non-JDBC4 class existance
This commit is contained in:
parent
b7d80b8e6d
commit
939d7fc4c9
|
@ -1135,10 +1135,6 @@ public interface CoreMessageLogger extends BasicLogger {
|
|||
@Message(value = "Unable to locate MBeanServer on JMX service shutdown", id = 332)
|
||||
void unableToLocateMBeanServer();
|
||||
|
||||
@LogMessage(level = INFO)
|
||||
@Message(value = "Could not locate 'java.sql.NClob' class; assuming JDBC 3", id = 333)
|
||||
void unableToLocateNClobClass();
|
||||
|
||||
@LogMessage(level = WARN)
|
||||
@Message(value = "Unable to locate requested UUID generation strategy class : %s", id = 334)
|
||||
void unableToLocateUuidGenerationStrategy(String strategyClassName);
|
||||
|
|
|
@ -33,7 +33,6 @@ import org.jboss.logging.Logger;
|
|||
|
||||
import org.hibernate.HibernateException;
|
||||
import org.hibernate.internal.CoreMessageLogger;
|
||||
import org.hibernate.internal.util.ReflectHelper;
|
||||
import org.hibernate.type.descriptor.BinaryStream;
|
||||
|
||||
/**
|
||||
|
@ -45,19 +44,8 @@ public class DataHelper {
|
|||
|
||||
private static final CoreMessageLogger LOG = Logger.getMessageLogger( CoreMessageLogger.class, DataHelper.class.getName() );
|
||||
|
||||
private static Class nClobClass;
|
||||
static {
|
||||
try {
|
||||
// NClobs are only JDBC 4 (JDK 1.6) and higher
|
||||
nClobClass = ReflectHelper.classForName( "java.sql.NClob", DataHelper.class );
|
||||
}
|
||||
catch ( ClassNotFoundException e ) {
|
||||
LOG.unableToLocateNClobClass();
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isNClob(Class type) {
|
||||
return nClobClass != null && nClobClass.isAssignableFrom( type );
|
||||
public static boolean isNClob(final Class type) {
|
||||
return java.sql.NClob.class.isAssignableFrom( type );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue