CPD Results

The following document contains the results of PMD's CPD 5.0.2.

Duplications

File Line
org\jadira\usertype\spi\shared\AbstractParameterizedTemporalMultiColumnUserType.java 47
org\jadira\usertype\spi\shared\AbstractParameterizedTemporalUserType.java 58
	private void performDatabaseZoneConfiguration(DatabaseZoneConfigured next) {
		
        String databaseZone = null;
        if (getParameterValues() != null) {
        	databaseZone = getParameterValues().getProperty("databaseZone");
        }
		if (databaseZone == null) {
			databaseZone = ConfigurationHelper.getProperty("databaseZone");
		}
		
        if (databaseZone != null) {
            if ("jvm".equals(databaseZone)) {
                next.setDatabaseZone(null);
            } else {
            	next.setDatabaseZone(next.parseZone(databaseZone));
            }
        }
	}
	
	private <Z> void performJavaZoneConfiguration(JavaZoneConfigured<Z> next) {
		
		String javaZone = null;
        if (getParameterValues() != null) {
        	javaZone = getParameterValues().getProperty("javaZone");
        }
		if (javaZone == null) {
			javaZone = ConfigurationHelper.getProperty("javaZone");
		}
		
        if (javaZone != null) {
            if ("jvm".equals(javaZone)) {
                next.setJavaZone(null);
            } else {
            	next.setJavaZone(next.parseJavaZone(javaZone));
            }
        }
	}	
}
File Line
org\jadira\usertype\spi\shared\AbstractParameterizedMultiColumnUserType.java 47
org\jadira\usertype\spi\shared\AbstractParameterizedUserType.java 60
		}
    }
		
	@SuppressWarnings("unused")
	private void performJdbc42Configuration(Jdbc42Configured next) {
        
        Boolean jdbc42Apis = null;
        if (getParameterValues() != null) {
            String apisString = getParameterValues().getProperty("jdbc42Apis");
            if (apisString != null) {
                jdbc42Apis = Boolean.parseBoolean(apisString);
            }
        }
        if (jdbc42Apis == null) {
            jdbc42Apis = ConfigurationHelper.getUse42Api();
        }
        if (jdbc42Apis == null) {
            jdbc42Apis = Boolean.FALSE;
        }
        
        next.setUseJdbc42Apis(jdbc42Apis);
    }
	
	@Override
	protected SharedSessionContractImplementor doWrapSession(SharedSessionContractImplementor session) {
		SharedSessionContractImplementor mySession = session;
File Line
org\jadira\usertype\spi\shared\AbstractDateColumnMapper.java 49
org\jadira\usertype\spi\shared\AbstractTimeColumnMapper.java 49
org\jadira\usertype\spi\shared\AbstractTimestampColumnMapper.java 49
    public abstract Date toNonNullValue(T value);

    @Override
    public abstract String toNonNullString(T value);
    
	@Override
	public void setDatabaseZone(TimeZone databaseZone) {
		this.databaseZone = databaseZone;
	}

	@Override
	public TimeZone parseZone(String zoneString) {
		return TimeZone.getTimeZone(zoneString);
	}

	@Override
	public TimeZone getDatabaseZone() {
		return databaseZone;
	}

	public SharedSessionContractImplementor wrapSession(SharedSessionContractImplementor session) {
		
		final SharedSessionContractImplementor mySession;

		if (databaseZone != null) {
			mySession = new TimeZoneProvidingSharedSessionContractImplementor(session, databaseZone);
		} else {
			mySession = session;
		}
		
		return mySession;
	}
}
File Line
org\jadira\usertype\spi\shared\AbstractParameterizedTemporalMultiColumnUserType.java 9
org\jadira\usertype\spi\shared\AbstractParameterizedTemporalUserType.java 24
	@Override
	public void applyConfiguration(SessionFactory sessionFactory) {
		super.applyConfiguration(sessionFactory);
		doApplyConfiguration();
    }
    
	private <Z> void doApplyConfiguration() {
	    
		if (DatabaseZoneConfigured.class.isAssignableFrom(this.getClass())) {
			
			DatabaseZoneConfigured next = (DatabaseZoneConfigured)this;			
			performDatabaseZoneConfiguration(next);
		}
		if (JavaZoneConfigured.class.isAssignableFrom(this.getClass())) {
			
			@SuppressWarnings("unchecked")
			JavaZoneConfigured<Z> next = (JavaZoneConfigured<Z>)this;			
			performJavaZoneConfiguration(next);
		}
File Line
org\jadira\usertype\spi\shared\AbstractParameterizedMultiColumnUserType.java 16
org\jadira\usertype\spi\shared\AbstractParameterizedUserType.java 31
	private Properties parameterValues;
    
    @Override
    public void setParameterValues(Properties parameters) {
    	this.parameterValues = new ConcurrentHashMapBackedProperties(parameters);
    }
    
    protected Properties getParameterValues() {
    	return parameterValues;
    }

	@Override
	public void applyConfiguration(SessionFactory sessionFactory) {
		doApplyConfiguration();
    }
    
	private <Z> void doApplyConfiguration() {

	    if (JavaVersion.isJava8OrLater() &&
	            Jdbc42Configured.class.isAssignableFrom(this.getClass())) {
	        Jdbc42Configured next = (Jdbc42Configured)this;
	        performJdbc42Configuration(next);
	    }
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 77
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 78
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 78
							javaTypeDescriptor.unwrap(value, Date.class, options), cal);	
				}
			}
		};
	}
	
	public <X> ValueExtractor<X> getExtractor(
			final JavaTypeDescriptor<X> javaTypeDescriptor) {
		return new BasicExtractor<X>(javaTypeDescriptor, (SqlTypeDescriptor) this) {
			@Override
			protected X doExtract(ResultSet rs, String name,
					WrapperOptions options) throws SQLException {
				if (cal == null) {
					return javaTypeDescriptor.wrap(rs.getDate(name), options);
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 50
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 50
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 50
	public DstSafeDateTypeDescriptor(Calendar cal) {
		this.cal = cal;
	}
	
	public <X> ValueBinder<X> getBinder(final JavaTypeDescriptor<X> javaTypeDescriptor) {

		return new BasicBinder<X>(javaTypeDescriptor, (SqlTypeDescriptor) this) {
			@Override
			protected void doBind(PreparedStatement st, X value, int index,
					WrapperOptions options) throws SQLException {
				if (cal == null) {
					st.setDate(index,
File Line
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 133
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 141
	public void list(PrintStream out) {
		out.println("-- listing properties --");
		for (Map.Entry<Object, Object> entry : properties.entrySet()) {
			out.println(entry.getKey().toString() + "=" + entry.getValue().toString());
		}
	}

	@Override
	public void list(PrintWriter out) {
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 184
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 319
	public void nullSafeSet(PreparedStatement st, Object value, int index,
			SharedSessionContractImplementor session) throws HibernateException, SQLException {
		
		final Object param = value == null ? null : columnMapper.toNonNullValue((T) value);		
		columnMapper.getHibernateType().nullSafeSet(st, param, index, session);
	}
File Line
org\jadira\usertype\spi\shared\AbstractUserTypeHibernateIntegrator.java 120
org\jadira\usertype\spi\shared\AbstractUserTypeHibernateIntegrator.java 133
    private void autoRegisterUsertypes(Configuration configuration) {
	
		for(UserType next : getUserTypes()) {

			registerType(configuration, next);
		}
		
		for(CompositeUserType next : getCompositeUserTypes()) {

			registerType(configuration, next);
		}
	}
    
    private void autoRegisterUsertypes(MetadataImplementor configuration) {
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 65
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 66
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 66
							javaTypeDescriptor.unwrap(value, Date.class, options), cal);	
				}
			}

			@Override
			protected void doBind(CallableStatement st, X value, String name, WrapperOptions options)
					throws SQLException {
				if (cal == null) {
					st.setDate(name,
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 92
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 93
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 92
					return javaTypeDescriptor.wrap(rs.getDate(name, cal), options);	
				}
			}
			
			protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException {
				if (cal == null) {
					return javaTypeDescriptor.wrap(statement.getDate(index), options);
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 100
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 101
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 100
					return javaTypeDescriptor.wrap(statement.getDate(index, cal), options);	
				}
			}

			protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException {
				if (cal == null) {
					return javaTypeDescriptor.wrap(statement.getDate(name), options);
File Line
org\jadira\usertype\spi\jta\HibernateEntityManagerFactoryBean.java 50
org\jadira\usertype\spi\jta\HibernateSessionFactoryBean.java 49
            return super.createNativeEntityManagerFactory();
        } finally {

            if (this.transactionManager != null) {
                configurationTransactionManagerHolder.set(null);
            }
        }
    }

    /**
     * Associate a transaction manager with this session
     * @param transactionManager The {@link JtaTransactionManager}
     */
    public void setTransactionManager(JtaTransactionManager transactionManager) {
        this.transactionManager = transactionManager;
    }
}
File Line
org\jadira\usertype\spi\shared\AbstractMultiColumnUserType.java 108
org\jadira\usertype\spi\shared\AbstractSingleColumnUserType.java 64
    @Override
    public T nullSafeGet(ResultSet resultSet, String[] strings, SharedSessionContractImplementor session, Object object) throws SQLException {

    	beforeNullSafeOperation(session);
    	
    	final SharedSessionContractImplementor mySession = doWrapSession(session);
    	
    	try {
File Line
org\jadira\usertype\spi\jta\HibernateEntityManagerFactoryBean.java 32
org\jadira\usertype\spi\jta\HibernateSessionFactoryBean.java 31
public class HibernateEntityManagerFactoryBean extends LocalContainerEntityManagerFactoryBean {

    private JtaTransactionManager transactionManager;

    private static final ThreadLocal<JtaTransactionManager> configurationTransactionManagerHolder = new ThreadLocal<JtaTransactionManager>();

    static JtaTransactionManager getConfigurationTransactionManager() {
        return configurationTransactionManagerHolder.get();
    }

    @Override
    protected EntityManagerFactory createNativeEntityManagerFactory() throws PersistenceException {
File Line
org\jadira\usertype\spi\shared\AbstractMultiColumnUserType.java 146
org\jadira\usertype\spi\shared\AbstractSingleColumnUserType.java 91
    @Override
    public void nullSafeSet(PreparedStatement preparedStatement, Object value, int index, SharedSessionContractImplementor session) throws SQLException {

    	beforeNullSafeOperation(session);
    	
    	final SharedSessionContractImplementor mySession = doWrapSession(session);
    	
    	try {
	        final Object[] valuesToSet = new Object[getColumnMappers().length];
File Line
org\jadira\usertype\spi\jta\SpringWebSphereUowTransactionManager.java 190
org\jadira\usertype\spi\jta\SpringWebSphereUowTransactionManager.java 278
                throw new IllegalStateException("Could not access setRollbackOnly() on UOWManager: " + e.getMessage(),
                        e);
            } catch (InvocationTargetException e) {
                throw new IllegalStateException("Could not invoke setRollbackOnly() on UOWManager: " + e.getMessage(),
                        e);
            }
        }

        @Override
        public Transaction getTransaction() {
File Line
org\jadira\usertype\spi\shared\AbstractParameterizedMultiColumnUserType.java 77
org\jadira\usertype\spi\shared\AbstractParameterizedUserType.java 88
		}
		if (WrapsSession.class.isAssignableFrom(this.getClass())) {
			mySession = ((WrapsSession)this).wrapSession(mySession);
		}
		return mySession;
	}
}
File Line
org\jadira\usertype\spi\shared\AbstractKnownClassHeuristicUserType.java 45
org\jadira\usertype\spi\shared\AbstractReflectionUserType.java 67
		super.setParameterValues(parameters);
	}

    @SuppressWarnings("unchecked")
    @Override
    public Class<T> returnedClass() {
        return (Class<T>) TypeHelper.getTypeArguments(AbstractKnownClassHeuristicUserType.class, getClass()).get(0);
File Line
org\jadira\usertype\spi\shared\AbstractUserTypeHibernateIntegrator.java 156
org\jadira\usertype\spi\shared\AbstractUserTypeHibernateIntegrator.java 161
	private void registerType(Configuration configuration, CompositeUserType type) {
		String className = type.returnedClass().getName();
		configuration.registerTypeOverride(type, new String[] {className});
	}
	
	private void registerType(Configuration configuration, UserType type) {
File Line
org\jadira\usertype\spi\shared\AbstractUserTypeHibernateIntegrator.java 166
org\jadira\usertype\spi\shared\AbstractUserTypeHibernateIntegrator.java 171
	private void registerType(MetadataImplementor mi, CompositeUserType type) {
		String className = type.returnedClass().getName();
		mi.getTypeResolver().registerTypeOverride(type, new String[] {className});
	}
File Line
org\jadira\usertype\spi\shared\AbstractUserTypeHibernateIntegrator.java 56
org\jadira\usertype\spi\shared\AbstractUserTypeHibernateIntegrator.java 198
			String jdbc42Apis = configuration.getProperty(JDBC42_API_KEY);
			
			configureDefaultProperties(sessionFactory, javaZone, databaseZone, seed, currencyCode, jdbc42Apis);
		
			if (isEnabled != null && Boolean.valueOf(isEnabled)) {
				autoRegisterUsertypes(configuration);
File Line
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 104
org\jadira\usertype\spi\shared\AbstractMapUserType.java 69
    @Override
    public void nullSafeSet(PreparedStatement preparedStatement, Object value, int index, SharedSessionContractImplementor session) throws SQLException {

    	beforeNullSafeOperation(session);
    	
    	try {
    		doNullSafeSet(preparedStatement, value, index, session);
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 162
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 297
			SharedSessionContractImplementor session, Object owner)
			throws HibernateException, SQLException {

		@SuppressWarnings("unchecked") final J hibernateValue = (J) columnMapper.getHibernateType().nullSafeGet(rs, name, session, owner);
File Line
org\jadira\usertype\spi\shared\AbstractMapUserType.java 68
org\jadira\usertype\spi\shared\AbstractMultiColumnUserType.java 145
	@SuppressWarnings("unchecked")
	@Override
    public void nullSafeSet(PreparedStatement preparedStatement, Object value, int index, SharedSessionContractImplementor session) throws SQLException {

    	beforeNullSafeOperation(session);
File Line
org\jadira\usertype\spi\shared\AbstractKnownClassHeuristicUserType.java 45
org\jadira\usertype\spi\shared\AbstractMultiColumnUserType.java 96
org\jadira\usertype\spi\shared\AbstractReflectionUserType.java 67
		super.setParameterValues(parameters);
	}

    @SuppressWarnings("unchecked")
    @Override
    public Class<T> returnedClass() {
        return (Class<T>) TypeHelper.getTypeArguments(AbstractKnownClassHeuristicUserType.class, getClass()).get(0);
File Line
org\jadira\usertype\spi\shared\AbstractReflectionUserType.java 105
org\jadira\usertype\spi\shared\AbstractReflectionUserType.java 120
    	if (identifierMethod != null) {
    		try {
    			return String.valueOf(identifierMethod.invoke(object));
    		} catch (InvocationTargetException e) {
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 165
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 310
		@SuppressWarnings("unchecked") final J hibernateValue = (J) columnMapper.getHibernateType().nullSafeGet(rs, name, session, owner);
		if (hibernateValue == null) {
			return null;
		}
		return columnMapper.fromNonNullValue(hibernateValue);
	}

	@SuppressWarnings("unchecked")
	@Override
	public void nullSafeSet(PreparedStatement st, Object value, int index,
File Line
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 102
org\jadira\usertype\spi\shared\AbstractReflectionUserType.java 77
    public abstract Object doNullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner) throws HibernateException, SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException;
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 296
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 307
	public T nullSafeGet(ResultSet rs, String name,
			SharedSessionContractImplementor session) throws HibernateException, SQLException {

		@SuppressWarnings("unchecked") final J hibernateValue = (J) columnMapper.getHibernateType().nullSafeGet(rs, name, session);
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 252
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 259
	}

	@Override
	public Object replace(Object original, Object target,
			SharedSessionContractImplementor session, Object owner, @SuppressWarnings("rawtypes") Map copyCache)
File Line
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 75
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 148
	@Override
	public Object nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner) throws HibernateException, SQLException {
File Line
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 104
org\jadira\usertype\spi\shared\AbstractMapUserType.java 69
org\jadira\usertype\spi\shared\AbstractMultiColumnUserType.java 146
org\jadira\usertype\spi\shared\AbstractSingleColumnUserType.java 91
    @Override
    public void nullSafeSet(PreparedStatement preparedStatement, Object value, int index, SharedSessionContractImplementor session) throws SQLException {

    	beforeNullSafeOperation(session);
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 150
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 307
			SharedSessionContractImplementor session, Object owner)
			throws HibernateException, SQLException {

		@SuppressWarnings("unchecked") final J hibernateValue = (J)(columnMapper.getHibernateType().nullSafeGet(rs, names, session, owner));
File Line
org\jadira\usertype\spi\shared\DstSafeDateType.java 52
org\jadira\usertype\spi\shared\DstSafeTimeType.java 53
	}

	@Override
	public String[] getRegistrationKeys() {
		return new String[] {
				getName(),
				java.sql.Date.class.getName()
File Line
org\jadira\usertype\spi\jta\HibernateEntityManagerFactoryBean.java 43
org\jadira\usertype\spi\jta\HibernateSessionFactoryBean.java 42
    protected EntityManagerFactory createNativeEntityManagerFactory() throws PersistenceException {

        if (this.transactionManager != null) {
            configurationTransactionManagerHolder.set(this.transactionManager);
        }

        try {
            return super.createNativeEntityManagerFactory();
File Line
org\jadira\usertype\spi\jta\SpringWebSphereUowTransactionManager.java 59
org\jadira\usertype\spi\jta\SpringWebSphereUowTransactionManager.java 85
        } catch (SecurityException e) {
            throw new IllegalStateException(
                    "Not permitted to access WebSphereUowTransactionManager: " + e.getMessage(), e);
        } catch (NoSuchFieldException e) {
File Line
org\jadira\usertype\spi\shared\AbstractMapUserType.java 100
org\jadira\usertype\spi\shared\AbstractMapUserType.java 110
		if (!(value instanceof HashMap)) {
			throw new UnsupportedOperationException("can't convert " + value.getClass());
		}

		return new HashMap((HashMap) value);
File Line
org\jadira\usertype\spi\shared\AbstractParameterizedTemporalMultiColumnUserType.java 22
org\jadira\usertype\spi\shared\AbstractParameterizedTemporalMultiColumnUserType.java 37
org\jadira\usertype\spi\shared\AbstractParameterizedTemporalUserType.java 37
org\jadira\usertype\spi\shared\AbstractParameterizedTemporalUserType.java 49
		if (JavaZoneConfigured.class.isAssignableFrom(this.getClass())) {
			
			@SuppressWarnings("unchecked")
			JavaZoneConfigured<Z> next = (JavaZoneConfigured<Z>)this;			
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 149
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 161
	public Object nullSafeGet(ResultSet rs, String[] names,
			SharedSessionContractImplementor session, Object owner)
			throws HibernateException, SQLException {

		@SuppressWarnings("unchecked") final J hibernateValue = (J)(columnMapper.getHibernateType().nullSafeGet(rs, names, session, owner));
File Line
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 305
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 311
	public Object computeIfPresent(Object key,
			BiFunction<? super Object, ? super Object, ? extends Object> remappingFunction) {
		return properties.computeIfPresent(key, remappingFunction);
File Line
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 125
org\jadira\usertype\spi\shared\AbstractReflectionUserType.java 89
    public abstract void doNullSafeSet(PreparedStatement preparedStatement, Object value, int index, SharedSessionContractImplementor session) throws SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException;
File Line
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 129
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 137
    public String objectToSQLString(Object object) {
    	final JavaTypeDescriptor desc = type.getJavaTypeDescriptor();
    	return desc.toString(object);
    }

    @SuppressWarnings({ "rawtypes", "unchecked" })
File Line
org\jadira\usertype\spi\shared\AbstractMapUserType.java 36
org\jadira\usertype\spi\shared\AbstractUserType.java 45
    public int hashCode(Object x) throws HibernateException {
        assert (x != null);
        return x.hashCode();
    }
File Line
org\jadira\usertype\spi\shared\AbstractMapUserType.java 42
org\jadira\usertype\spi\shared\AbstractMultiColumnUserType.java 109
org\jadira\usertype\spi\shared\AbstractSingleColumnUserType.java 65
    public Map<K, V> nullSafeGet(ResultSet resultSet, String[] strings, SharedSessionContractImplementor session, Object object) throws SQLException {
        
    	beforeNullSafeOperation(session);
File Line
org\jadira\usertype\spi\shared\AbstractParameterizedMultiColumnUserType.java 37
org\jadira\usertype\spi\shared\AbstractParameterizedTemporalMultiColumnUserType.java 26
	        performJdbc42Configuration(next);
	    }
		
		for (int i = 0; i < getColumnMappers().length; i++) {
			
		    if (JavaVersion.isJava8OrLater() &&
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 153
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 299
		@SuppressWarnings("unchecked") final J hibernateValue = (J)(columnMapper.getHibernateType().nullSafeGet(rs, names, session, owner));
		if (hibernateValue == null) {
			return null;
		}
		return columnMapper.fromNonNullValue(hibernateValue);
	}

	@Override
	public Object nullSafeGet(ResultSet rs, String name,
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 96
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 104
			protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException {
				if (cal == null) {
					return javaTypeDescriptor.wrap(statement.getDate(index), options);
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 97
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 105
			protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException {
				if (cal == null) {
					return javaTypeDescriptor.wrap(statement.getTimestamp(index), options);
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 96
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 104
			protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException {
				if (cal == null) {
					return javaTypeDescriptor.wrap(statement.getTime(index), options);
File Line
org\jadira\usertype\spi\shared\DstSafeTimestampType.java 80
org\jadira\usertype\spi\shared\DstSafeTimeType.java 62
				: new Timestamp(value.getTime());
		// TODO : use JDBC date literal escape syntax? -> {d 'date-string'} in
		// yyyy-mm-dd hh:mm:ss[.f...] format
		return StringType.INSTANCE.objectToSQLString(ts.toString(), dialect);
	}
File Line
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 80
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 151
			super.load(reader);
			this.properties.putAll(this);
		}
		finally{
			super.clear();
		}
	}

	@Override
	public void load(InputStream inStream) throws IOException {
File Line
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 84
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 88
			} catch (IllegalArgumentException e) {
				throw new HibernateException(
						"Exception during nullSafeGet of type '" 
							+ identifierType.getName() + "'", e);
			} catch (IllegalAccessException e) {
File Line
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 87
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 114
							+ identifierType.getName() + "'", e);
			} catch (IllegalAccessException e) {
				throw new HibernateException(
File Line
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 111
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 115
		} catch (IllegalArgumentException e) {
			throw new HibernateException(
					"Exception during nullSafeSet of type '" 
							+ identifierType.getName() + "'", e);
		} catch (IllegalAccessException e) {
File Line
org\jadira\usertype\spi\shared\AbstractUserTypeHibernateIntegrator.java 64
org\jadira\usertype\spi\shared\AbstractUserTypeHibernateIntegrator.java 206
			final boolean use42Api = use42Api(configuration.getProperty(JDBC42_API_KEY), sessionFactory);
			ConfigurationHelper.setUse42Api(sessionFactory, use42Api);
			
			// doIntegrate(configuration, sessionFactory, serviceRegistry);
		} finally {
			ConfigurationHelper.setCurrentSessionFactory(null);
		}
	}
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 134
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 141
	public boolean isDirty(Object oldState, Object currentState,
			boolean[] checkable, SharedSessionContractImplementor session)
			throws HibernateException {
		return columnMapper.getHibernateType().isDirty(oldState, currentState, checkable, session);
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 169
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 179
		return columnMapper.fromNonNullValue(hibernateValue);
	}

	@SuppressWarnings("unchecked")
	@Override
	public void nullSafeSet(PreparedStatement st, Object value, int index,
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 256
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 264
			SharedSessionContractImplementor session, Object owner, @SuppressWarnings("rawtypes") Map copyCache)
			throws HibernateException {
		return columnMapper.getHibernateType().replace(original, target, session, owner, copyCache);
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 87
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 104
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 88
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 105
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 87
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 104
			protected X doExtract(ResultSet rs, String name,
					WrapperOptions options) throws SQLException {
				if (cal == null) {
					return javaTypeDescriptor.wrap(rs.getDate(name), options);
File Line
org\jadira\usertype\spi\shared\DstSafeDateType.java 58
org\jadira\usertype\spi\shared\DstSafeTimeType.java 57
				java.sql.Date.class.getName()
		};
	}

	public String objectToSQLString(Date value, Dialect dialect) throws Exception {
		final java.sql.Date jdbcDate = java.sql.Date.class.isInstance( value )
File Line
org\jadira\usertype\spi\shared\AbstractBigDecimalColumnMapper.java 24
org\jadira\usertype\spi\shared\AbstractBigIntegerColumnMapper.java 24
public abstract class AbstractBigDecimalColumnMapper<T> extends AbstractColumnMapper<T, BigDecimal> {

    private static final long serialVersionUID = 1702998875351962961L;

    @Override
    public final int getSqlType() {
        return Types.NUMERIC;
File Line
org\jadira\usertype\spi\shared\AbstractIntegerColumnMapper.java 23
org\jadira\usertype\spi\shared\AbstractLongColumnMapper.java 23
public abstract class AbstractIntegerColumnMapper<T> extends AbstractColumnMapper<T, Integer> {

    private static final long serialVersionUID = 6892220362704239520L;

    @Override
    public final int getSqlType() {
        return Types.INTEGER;
File Line
org\jadira\usertype\spi\shared\AbstractMultiColumnUserType.java 212
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 216
        return super.disassemble(value);
    }

    @Override
    public Object assemble(Serializable cached, SharedSessionContractImplementor session, Object owner) throws HibernateException {
        return super.assemble(cached, owner);
File Line
org\jadira\usertype\spi\shared\AbstractUserTypeHibernateIntegrator.java 163
org\jadira\usertype\spi\shared\AbstractUserTypeHibernateIntegrator.java 168
		configuration.registerTypeOverride(type, new String[] {className});
	}
	
	private void registerType(MetadataImplementor mi, CompositeUserType type) {
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 153
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 310
		@SuppressWarnings("unchecked") final J hibernateValue = (J)(columnMapper.getHibernateType().nullSafeGet(rs, names, session, owner));
		if (hibernateValue == null) {
			return null;
		}
		return columnMapper.fromNonNullValue(hibernateValue);
	}

	@Override
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 175
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 184
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 319
			boolean[] settable, SharedSessionContractImplementor session)
			throws HibernateException, SQLException {

		final Object param = value == null ? null : columnMapper.fromNonNullValue((J) value);
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 61
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 73
					st.setDate(index,
							javaTypeDescriptor.unwrap(value, Date.class, options));
				} else {
					st.setDate(index,
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 96
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 105
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 104
			protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException {
				if (cal == null) {
					return javaTypeDescriptor.wrap(statement.getDate(index), options);
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeDateTypeDescriptor.java 104
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 97
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 96
			protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException {
				if (cal == null) {
					return javaTypeDescriptor.wrap(statement.getDate(name), options);
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 62
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimestampTypeDescriptor.java 74
					st.setTimestamp(index,
							javaTypeDescriptor.unwrap(value, Timestamp.class, options));
				} else {
					st.setTimestamp(index,
File Line
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 62
org\jadira\usertype\spi\shared\descriptor\sql\DstSafeTimeTypeDescriptor.java 74
					st.setTime(index,
							javaTypeDescriptor.unwrap(value, Time.class, options));
				} else {
					st.setTime(index,
File Line
org\jadira\usertype\spi\shared\DstSafeDateType.java 52
org\jadira\usertype\spi\shared\DstSafeTimestampType.java 57
org\jadira\usertype\spi\shared\DstSafeTimeType.java 53
	}

	@Override
	public String[] getRegistrationKeys() {
		return new String[] {
				getName(),
File Line
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 80
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 91
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 151
			super.load(reader);
			this.properties.putAll(this);
		}
		finally{
			super.clear();
		}
	}

	@Override
File Line
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 305
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 311
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 316
	public Object computeIfPresent(Object key,
			BiFunction<? super Object, ? super Object, ? extends Object> remappingFunction) {
		return properties.computeIfPresent(key, remappingFunction);
File Line
org\jadira\usertype\spi\jta\SpringWebSphereUowTransactionManager.java 90
org\jadira\usertype\spi\jta\SpringWebSphereUowTransactionManager.java 231
org\jadira\usertype\spi\jta\SpringWebSphereUowTransactionManager.java 276
org\jadira\usertype\spi\jta\SpringWebSphereUowTransactionManager.java 303
                    + e.getMessage(), e);
        } catch (IllegalAccessException e) {
            throw new IllegalStateException("Unexpected exception accessing WebSphereUowTransactionManager: "
File Line
org\jadira\usertype\spi\jta\SpringWebSphereUowTransactionManager.java 190
org\jadira\usertype\spi\jta\SpringWebSphereUowTransactionManager.java 234
org\jadira\usertype\spi\jta\SpringWebSphereUowTransactionManager.java 278
org\jadira\usertype\spi\jta\SpringWebSphereUowTransactionManager.java 306
                throw new IllegalStateException("Could not access setRollbackOnly() on UOWManager: " + e.getMessage(),
                        e);
            } catch (InvocationTargetException e) {
                throw new IllegalStateException("Could not invoke setRollbackOnly() on UOWManager: " + e.getMessage(),
File Line
org\jadira\usertype\spi\repository\JpaBaseRepository.java 91
org\jadira\usertype\spi\repository\JpaBaseRepository.java 115
			getEntityManager().remove(entity);
		}
		// Case of unattached entity, first it is necessary to perform
		// a merge, before doing the remove
		else {
			entity = getEntityManager().merge(entity);
			getEntityManager().remove(entity);
File Line
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 76
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 149
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 231
	public Object nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner) throws HibernateException, SQLException {
File Line
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 84
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 88
org\jadira\usertype\spi\shared\AbstractHeuristicUserType.java 92
			} catch (IllegalArgumentException e) {
				throw new HibernateException(
						"Exception during nullSafeGet of type '" 
							+ identifierType.getName() + "'", e);
			} catch (IllegalAccessException e) {
File Line
org\jadira\usertype\spi\shared\AbstractParameterizedMultiColumnUserType.java 43
org\jadira\usertype\spi\shared\AbstractParameterizedUserType.java 57
		            Jdbc42Configured.class.isAssignableFrom(getColumnMappers()[i].getClass())) {
		        Jdbc42Configured next = (Jdbc42Configured)this;
		        performJdbc42Configuration(next);
		    }
		}
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 153
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 165
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 299
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 310
		@SuppressWarnings("unchecked") final J hibernateValue = (J)(columnMapper.getHibernateType().nullSafeGet(rs, names, session, owner));
		if (hibernateValue == null) {
			return null;
		}
		return columnMapper.fromNonNullValue(hibernateValue);
	}

	@Override
File Line
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 214
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 238
org\jadira\usertype\spi\shared\ColumnMapperSingleColumnTypeAdapter.java 244
	public Serializable disassemble(Object value, SharedSessionContractImplementor session,
			Object owner) throws HibernateException {
		return columnMapper.getHibernateType().disassemble(value, session, owner);
File Line
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 122
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 134
org\jadira\usertype\spi\utils\lang\ConcurrentHashMapBackedProperties.java 142
		bw.newLine();
		for (Map.Entry<Object, Object> entry : properties.entrySet()) {