CPD Results

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

Duplications

File Line
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantity.java 113
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 87
	}
	
	private void performValidTypesConfiguration(ValidTypesConfigured<Unit<?>> next) {
		
        String validTypesString = null;
        if (getParameterValues() != null) {
        	validTypesString = getParameterValues().getProperty("validTypes");
        }
		if (validTypesString != null) {
			String[] validTypes = validTypesString.split(",");
			List<Class<Unit<?>>> units = new ArrayList<>();
			for (String nextType : validTypes) {
				
				
				try {
					@SuppressWarnings("unchecked")
					Class<Unit<?>> nextClass = (Class<Unit<?>>)(ClassLoaderUtils.classForName(nextType));
					units.add(nextClass);
				} catch (ClassNotFoundException e) {
					throw new IllegalStateException("Cannot find specified class " + nextType, e);
				}
				
			}
			next.setValidTypes(units);
		}
	}

	@Override
	public void setValidTypes(List<Class<Unit<?>>> types) {
		for (Class<Unit<?>> next : types) {
			Unit<?> unit;
			try {
				unit = next.newInstance();
			} catch (InstantiationException | IllegalAccessException e) {
				throw new IllegalStateException("Cannot instantiate " + next.getName() + ": " + e.getMessage(), e);
			}
			unitsMap.put(unit.getSymbol(), unit);
		}
		this.validTypes = Collections.unmodifiableList(types);
	}

	@Override
	public List<Class<Unit<?>>> getValidTypes() {
		return this.validTypes;
	}
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 37
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 35
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new TimestampColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneWithOffsetMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "datetime", "offset" };

    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    public String[] getPropertyNames() {
        return ArrayUtils.copyOf(PROPERTY_NAMES);
    }

    @Override
    protected DateTime fromConvertedColumns(Object[] convertedColumns) {

        LocalDateTime datePart = (LocalDateTime) convertedColumns[0];
        DateTimeZoneWithOffset offset = (DateTimeZoneWithOffset) convertedColumns[1];

        DateTime result;

        if (datePart == null) {
            result = null;
        } else {
            result = datePart.toDateTime(offset.getStandardDateTimeZone());
        }
        
        // Handling DST rollover
        if (result != null && offset.getOffsetDateTimeZone() != null &&
        		offset.getStandardDateTimeZone().getOffset(result) > offset.getOffsetDateTimeZone().getOffset(result)) {
        	return result.withLaterOffsetAtOverlap();
        }

        return result;
    }

    @Override
    protected Object[] toConvertedColumns(DateTime value) {
        return new Object[] { value.toLocalDateTime(), new DateTimeZoneWithOffset(value.getZone(), value.getZone().isFixed() ? null : DateTimeZone.forOffsetMillis(value.getZone().getOffset(value))) };
    }
}
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 49
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 47
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 41
    }

    @Override
    protected DateTime fromConvertedColumns(Object[] convertedColumns) {

        LocalDateTime datePart = (LocalDateTime) convertedColumns[0];
        DateTimeZoneWithOffset offset = (DateTimeZoneWithOffset) convertedColumns[1];

        DateTime result;

        if (datePart == null) {
            result = null;
        } else {
            result = datePart.toDateTime(offset.getStandardDateTimeZone());
        }
        
        // Handling DST rollover
        if (result != null && offset.getOffsetDateTimeZone() != null &&
        		offset.getStandardDateTimeZone().getOffset(result) > offset.getOffsetDateTimeZone().getOffset(result)) {
        	return result.withLaterOffsetAtOverlap();
        }

        return result;
    }

    @Override
    protected Object[] toConvertedColumns(DateTime value) {
        return new Object[] { value.toLocalDateTime(), new DateTimeZoneWithOffset(value.getZone(), value.getZone().isFixed() ? null : DateTimeZone.forOffsetMillis(value.getZone().getOffset(value))) };
    }
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 32
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMajorPart = (Long) convertedColumns[1];

        BigMoney theMoney = BigMoney.ofMajor(currencyUnitPart, amountMajorPart);
        if (theMoney.getScale() < currencyUnitPart.getDecimalPlaces()) {
        	theMoney = theMoney.withCurrencyScale();
        }

        return theMoney;
    }

    @Override
    protected Object[] toConvertedColumns(BigMoney value) {

        return new Object[] { value.getCurrencyUnit(), value.getAmountMajorLong() };
    }
    
    @Override
	public String[] getPropertyNames() {
		return PROPERTY_NAMES;
	}
}
File Line
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 77
org\jadira\usertype\unitsofmeasurement\indriya\PersistentUnit.java 53
		performValidTypesConfiguration(next);
//		}
//		if (ValidTypesConfigured.class.isAssignableFrom(getColumnMapper().getClass())) {			
//		ValidTypesConfigured<Unit<?>> next = (ValidTypesConfigured<Unit<?>>)getColumnMapper();
//		performValidTypesConfiguration(next);
//		}
//		if (UnitConfigured.class.isAssignableFrom(this.getClass())) {
//		UnitConfigured unitConfigured = (UnitConfigured)this;			
//		performUnitConfiguration(unitConfigured);
//		}
	}
	
	private void performValidTypesConfiguration(ValidTypesConfigured<Unit<?>> next) {
		
        String validTypesString = null;
        if (getParameterValues() != null) {
        	validTypesString = getParameterValues().getProperty("validTypes");
        }
		if (validTypesString != null) {
			String[] validTypes = validTypesString.split(",");
			List<Class<Unit<?>>> units = new ArrayList<>();
			for (String nextType : validTypes) {
				
				
				try {
					@SuppressWarnings("unchecked")
					Class<Unit<?>> nextClass = (Class<Unit<?>>)(ClassLoaderUtils.classForName(nextType));
					units.add(nextClass);
				} catch (ClassNotFoundException e) {
					throw new IllegalStateException("Cannot find specified class " + nextType, e);
				}
				
			}
			next.setValidTypes(units);
		}
	}
File Line
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantity.java 113
org\jadira\usertype\unitsofmeasurement\indriya\PersistentUnit.java 55
	}
	
	private void performValidTypesConfiguration(ValidTypesConfigured<Unit<?>> next) {
		
        String validTypesString = null;
        if (getParameterValues() != null) {
        	validTypesString = getParameterValues().getProperty("validTypes");
        }
		if (validTypesString != null) {
			String[] validTypes = validTypesString.split(",");
			List<Class<Unit<?>>> units = new ArrayList<>();
			for (String nextType : validTypes) {
				
				
				try {
					@SuppressWarnings("unchecked")
					Class<Unit<?>> nextClass = (Class<Unit<?>>)(ClassLoaderUtils.classForName(nextType));
					units.add(nextClass);
				} catch (ClassNotFoundException e) {
					throw new IllegalStateException("Cannot find specified class " + nextType, e);
				}
				
			}
			next.setValidTypes(units);
		}
	}
File Line
org\jadira\usertype\moneyandcurrency\joda\AbstractSingleColumnMoneyUserType.java 33
org\jadira\usertype\moneyandcurrency\moneta\AbstractSingleColumnMoneyUserType.java 35
public abstract class AbstractSingleColumnMoneyUserType<T, J, C extends ColumnMapper<T, J>> extends AbstractSingleColumnUserType<T, J, C> implements ParameterizedType, IntegratorConfiguredType {

	private static final long serialVersionUID = 8244061728586173961L;

	private Properties parameterValues;

    private CurrencyUnit currencyUnit;
    
    @Override
    public void setParameterValues(Properties parameters) {
    	this.parameterValues = new ConcurrentHashMapBackedProperties(parameters);
    }
    
    protected Properties getParameterValues() {
    	return parameterValues;
    }
    
    @Override
	public void applyConfiguration(SessionFactory sessionFactory) {

    	CurrencyUnitConfigured columnMapper = (CurrencyUnitConfigured) getColumnMapper();
    	if (currencyUnit == null) {

    		String currencyString = null;
			if (parameterValues != null) {
				currencyString = parameterValues.getProperty("currencyCode");
			}
			if (currencyString == null) {
				currencyString = ConfigurationHelper.getProperty("currencyCode");
			}
			if (currencyString != null) {

				currencyUnit = CurrencyUnit.of(currencyString);
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 32
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMinor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMinorPart = (Long) convertedColumns[1];
        BigMoney money = BigMoney.ofMinor(currencyUnitPart, amountMinorPart);

        return money;
    }

    @Override
    protected Object[] toConvertedColumns(BigMoney value) {

        return new Object[] { value.getCurrencyUnit(), value.getAmountMinorLong() };
    }
    
    @Override
	public String[] getPropertyNames() {
		return PROPERTY_NAMES;
	}
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 32
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected Money fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMajorPart = (Long) convertedColumns[1];
        Money money = Money.ofMajor(currencyUnitPart, amountMajorPart);

        return money;
    }

    @Override
    protected Object[] toConvertedColumns(Money value) {

        return new Object[] { value.getCurrencyUnit(), value.getAmountMajorLong() };
    }
    
    @Override
	public String[] getPropertyNames() {
		return PROPERTY_NAMES;
	}
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 32
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMinor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected Money fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMinorPart = (Long) convertedColumns[1];
        Money money = Money.ofMinor(currencyUnitPart, amountMinorPart);

        return money;
    }

    @Override
    protected Object[] toConvertedColumns(Money value) {

        return new Object[] { value.getCurrencyUnit(), value.getAmountMinorLong() };
    }
    
    @Override
	public String[] getPropertyNames() {
		return PROPERTY_NAMES;
	}
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 34
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amount" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        BigDecimal amountPart = (BigDecimal) convertedColumns[1];
        BigMoney money = BigMoney.of(currencyUnitPart, amountPart);

        return money;
    }

    @Override
    protected Object[] toConvertedColumns(BigMoney value) {

        return new Object[] { value.getCurrencyUnit(), value.getAmount() };
    }
    
    @Override
	public String[] getPropertyNames() {
		return PROPERTY_NAMES;
	}
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 34
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amount" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected Money fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        BigDecimal amountPart = (BigDecimal) convertedColumns[1];
        Money money = Money.of(currencyUnitPart, amountPart);

        return money;
    }

    @Override
    protected Object[] toConvertedColumns(Money value) {

        return new Object[] { value.getCurrencyUnit(), value.getAmount() };
    }
    
    @Override
	public String[] getPropertyNames() {
		return PROPERTY_NAMES;
	}
}
File Line
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsLongAndStringOffset.java 35
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsStringAndStringOffset.java 35
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsTimeAndStringOffset.java 35
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new LongColumnLocalTimeMapper(), new StringColumnZoneOffsetMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "time", "offset" };

    @Override
    protected OffsetTime fromConvertedColumns(Object[] convertedColumns) {

        LocalTime datePart = (LocalTime) convertedColumns[0];
        ZoneOffset offset = (ZoneOffset) convertedColumns[1];

        return OffsetTime.of(datePart, offset);
    }


    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    protected Object[] toConvertedColumns(OffsetTime value) {

        return new Object[] { value.toLocalTime(), value.getOffset() };
    }

    @Override
    public String[] getPropertyNames() {
        return PROPERTY_NAMES;
    }
}
File Line
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\StringColumnUnitMapper.java 39
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantity.java 138
    }

	@Override
	public void setValidTypes(List<Class<Unit<?>>> types) {
		for (Class<Unit<?>> next : types) {
			Unit<?> unit;
			try {
				unit = next.newInstance();
			} catch (InstantiationException | IllegalAccessException e) {
				throw new IllegalStateException("Cannot instantiate " + next.getName() + ": " + e.getMessage(), e);
			}
			unitsMap.put(unit.getSymbol(), unit);
		}
		this.validTypes = Collections.unmodifiableList(types);
	}

	@Override
	public List<Class<Unit<?>>> getValidTypes() {
		return this.validTypes;
	}
}
File Line
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\StringColumnUnitMapper.java 39
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 112
    }

	@Override
	public void setValidTypes(List<Class<Unit<?>>> types) {
		for (Class<Unit<?>> next : types) {
			Unit<?> unit;
			try {
				unit = next.newInstance();
			} catch (InstantiationException | IllegalAccessException e) {
				throw new IllegalStateException("Cannot instantiate " + next.getName() + ": " + e.getMessage(), e);
			}
			unitsMap.put(unit.getSymbol(), unit);
		}
		this.validTypes = Collections.unmodifiableList(types);
	}

	@Override
	public List<Class<Unit<?>>> getValidTypes() {
		return this.validTypes;
	}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 31
public class PersistentMoneyMajorAmountAndCurrency extends AbstractMultiColumnUserType<Money> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected Money fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMajorPart = (Long) convertedColumns[1];
        Money money = Money.ofMajor(currencyUnitPart, amountMajorPart);
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 30
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 32
public class PersistentMoneyAmountAndCurrency extends AbstractMultiColumnUserType<Money> {

	private static final long serialVersionUID = 3735995469031558183L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amount" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected Money fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        BigDecimal amountPart = (BigDecimal) convertedColumns[1];
        Money money = Money.of(currencyUnitPart, amountPart);
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 32
public class PersistentMoneyMinorAmountAndCurrency extends AbstractMultiColumnUserType<Money> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMinor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected Money fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMinorPart = (Long) convertedColumns[1];
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 43
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 48
        return MonetaryQueries.extractMajorPart().queryFrom(value).longValue();
    }

	@Override
	public FastMoney fromNonNullString(String s) {
		
		int separator = s.indexOf(' ');
		
		String currency = s.substring(0, separator);
		String value = s.substring(separator + 1);
		
		return FastMoney.of(Long.parseLong(value), Monetary.getCurrency(currency));
	}

	@Override
	public String toNonNullString(MonetaryAmount value) {
		return value.toString();
	}
	
	@Override
    public void setCurrencyUnit(CurrencyUnit currencyUnit) {
        this.currencyUnit = currencyUnit;
    }
}
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnFastMoneyMapper.java 44
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 43
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 48
    	return value.getNumber().numberValue(BigDecimal.class);
    }

	@Override
	public FastMoney fromNonNullString(String s) {
		
		int separator = s.indexOf(' ');
		
		String currency = s.substring(0, separator);
		String value = s.substring(separator + 1);
		
		return FastMoney.of(Long.parseLong(value), Monetary.getCurrency(currency));
	}

	@Override
	public String toNonNullString(MonetaryAmount value) {
		return value.toString();
	}
	
	@Override
    public void setCurrencyUnit(CurrencyUnit currencyUnit) {
        this.currencyUnit = currencyUnit;
    }
}
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 44
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 49
    	return value.getNumber().numberValue(BigDecimal.class);
    }

	@Override
	public Money fromNonNullString(String s) {
		
		int separator = s.indexOf(' ');
		
		String currency = s.substring(0, separator);
		String value = s.substring(separator + 1);
		
		return Money.of(Long.parseLong(value), Monetary.getCurrency(currency));
	}

	@Override
	public String toNonNullString(MonetaryAmount value) {
		return value.toString();
	}
	
	@Override
    public void setCurrencyUnit(CurrencyUnit currencyUnit) {
        this.currencyUnit = currencyUnit;
    }
}
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 38
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 38
    	return FastMoney.of(minorVal, currencyUnit);
    }

    @Override
    public Long toNonNullValue(MonetaryAmount value) {
    	if (!currencyUnit.equals(value.getCurrency())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrency());
    	}
		BigDecimal val = value.getNumber().numberValue(BigDecimal.class);
    	
    	return val.movePointRight(currencyUnit.getDefaultFractionDigits()).longValue();
    }

	@Override
	public FastMoney fromNonNullString(String s) {
File Line
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 31
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 31
public class PersistentFastMoneyMajorAmountAndCurrency extends AbstractMultiColumnUserType<MonetaryAmount> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected FastMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 32
public class PersistentFastMoneyMinorAmountAndCurrency extends AbstractMultiColumnUserType<MonetaryAmount> {

    private static final long serialVersionUID = -3990523657883978202L;

    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] {
            new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[] { "currencyUnit", "amountMinor" };

    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    protected FastMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 31
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 31
public class PersistentBigMoneyMajorAmountAndCurrency extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 28
public class PersistentBigMoneyMajorAmountAndCurrencyAsInteger extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 32
public class PersistentBigMoneyMinorAmountAndCurrency extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMinor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 28
public class PersistentBigMoneyMinorAmountAndCurrencyAsInteger extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMinor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 32
public class PersistentFastMoneyAmountAndCurrency extends AbstractMultiColumnUserType<MonetaryAmount> {

	private static final long serialVersionUID = 3735995469031558183L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amount" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected FastMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 54
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 54
        return FastMoney.of(majorVal, currencyUnitPart);
    }

    @Override
    protected Object[] toConvertedColumns(MonetaryAmount value) {

        BigDecimal minorVal = value.getNumber().numberValue(BigDecimal.class);
        minorVal = minorVal.movePointRight(value.getCurrency().getDefaultFractionDigits());

        return new Object[] { value.getCurrency(), minorVal.longValue() };
    }

    @Override
    public String[] getPropertyNames() {
        return PROPERTY_NAMES;
    }
}
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 47
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 43
    public TimeOfDay fromNonNullValue(Time value) {

        DateTime dateTime = new DateTime(value.getTime());
        LocalTime localTime = dateTime.toLocalTime();

        final TimeOfDay timeOfDay = new TimeOfDay(localTime.getHourOfDay(), localTime.getMinuteOfHour(), localTime.getSecondOfMinute(), localTime.getMillisOfSecond(), localTime.getChronology());
        return timeOfDay;
    }

    @Override
    public String toNonNullString(TimeOfDay value) {
        return value.toString();
    }

    @Override
    public Time toNonNullValue(TimeOfDay value) {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 35
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected Money fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMajorPart = (Long) convertedColumns[1];
        Money money = Money.ofMajor(currencyUnitPart, amountMajorPart);
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 36
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amount" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected Money fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        BigDecimal amountPart = (BigDecimal) convertedColumns[1];
        Money money = Money.of(currencyUnitPart, amountPart);
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 30
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 30
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 32
public class PersistentBigMoneyAmountAndCurrency extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = 3735995469031558183L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amount" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 30
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 30
public class PersistentBigMoneyAmountAndCurrencyAsInteger extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = 3735995469031558183L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amount" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 37
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMinor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected Money fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMinorPart = (Long) convertedColumns[1];
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 35
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 35
        return FastMoney.of(val, currencyUnit);
    }

    @Override
    public Long toNonNullValue(MonetaryAmount value) {
    	if (!currencyUnit.equals(value.getCurrency())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrency());
    	}
        return MonetaryQueries.extractMajorPart().queryFrom(value).longValue();
    }

	@Override
	public FastMoney fromNonNullString(String s) {
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnFastMoneyMapper.java 36
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 36
        return FastMoney.of(val, currencyUnit);
    }

    @Override
    public BigDecimal toNonNullValue(MonetaryAmount value) {
    	if (!currencyUnit.equals(value.getCurrency())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrency());
    	}
    	return value.getNumber().numberValue(BigDecimal.class);
    }

	@Override
	public FastMoney fromNonNullString(String s) {
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetDateTimeMapper.java 74
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnZonedDateTimeMapper.java 71
    public Timestamp toNonNullValue(OffsetDateTime value) {
        
        final Timestamp timestamp = new Timestamp((value.toEpochSecond() * MILLIS_IN_SECOND));
        timestamp.setNanos(value.getNano());
        return timestamp;
    }
    
    @Override
    public void setJavaZone(ZoneId javaZone) {
        this.javaZone = javaZone;
    }
        
	@Override
	public ZoneId parseJavaZone(String zoneString) {
		return ZoneId.of(zoneString);
	}
}
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 56
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 62
    public Time toNonNullValue(LocalTime value) {

    	DateTime zonedValue = new LocalDateTime(
    			1970,1,1,value.getHourOfDay(), value.getMinuteOfHour(), value.getSecondOfMinute(), value.getMillisOfSecond(), value.getChronology()
    	).toDateTime();

        final Time time = new Time(zonedValue.getMillis());
        return time;
    }
}
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 52
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 58
    public Timestamp toNonNullValue(LocalTime value) {

    	DateTime zonedValue = new LocalDateTime(
    			1970,1,1,value.getHourOfDay(), value.getMinuteOfHour(), value.getSecondOfMinute(), value.getMillisOfSecond(), value.getChronology()
    	).toDateTime();

        final Timestamp timestamp = new Timestamp(zonedValue.getMillis());
        return timestamp;
    }
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 28
public class PersistentBigMoneyMajorAmountAndCurrency extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 28
public class PersistentBigMoneyMajorAmountAndCurrencyAsInteger extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 28
public class PersistentMoneyMajorAmountAndCurrency extends AbstractMultiColumnUserType<Money> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 28
public class PersistentMoneyMajorAmountAndCurrencyAsInteger extends AbstractMultiColumnUserType<Money> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
File Line
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 31
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 31
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 32
public class PersistentFastMoneyMajorAmountAndCurrency extends AbstractMultiColumnUserType<MonetaryAmount> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
File Line
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 49
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 49
        FastMoney money = FastMoney.of(amountMajorPart, currencyUnitPart);

        return money;
    }

    @Override
    protected Object[] toConvertedColumns(MonetaryAmount value) {

        return new Object[] { value.getCurrency(), MonetaryQueries.extractMajorPart().queryFrom(value).longValue() };
    }
    
    @Override
	public String[] getPropertyNames() {
		return PROPERTY_NAMES;
	}
}
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateMidnight.java 30
org\jadira\usertype\dateandtime\joda\PersistentDateMidnightAsString.java 30
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new DateColumnLocalDateMapper(), new StringColumnDateTimeZoneWithOffsetMapper() };

    private static final String[] PROPERTY_NAMES = new String[] { "date", "offset" };

    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    public String[] getPropertyNames() {
        return ArrayUtils.copyOf(PROPERTY_NAMES);
    }
}
File Line
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyAmountAndCurrency.java 50
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 50
        FastMoney money = FastMoney.of(amountPart, currencyUnitPart);

        return money;
    }

    @Override
    protected Object[] toConvertedColumns(MonetaryAmount value) {

        return new Object[] { value.getCurrency(), value.getNumber().numberValue(BigDecimal.class) };
    }
    
    @Override
	public String[] getPropertyNames() {
		return PROPERTY_NAMES;
	}
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 32
public class PersistentBigMoneyMajorAmountAndCurrency extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 28
public class PersistentBigMoneyMajorAmountAndCurrencyAsInteger extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 31
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 31
public class PersistentBigMoneyMinorAmountAndCurrency extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMinor" };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 28
public class PersistentBigMoneyMinorAmountAndCurrencyAsInteger extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMinor" };
File Line
org\jadira\usertype\corejava\collections\PersistentStringMapAsPostgreSQLJson.java 43
org\jadira\usertype\json\jackson\PersistentJsonObjectAsPostgreSQLJson.java 59
		if (identifier instanceof PGobject) {
			PGobject pg = (PGobject) identifier;
			jsonText = pg.getValue();
		} else if (identifier instanceof String) { // some PostgreSQL Dialects /
													// Versions return String
													// not PGObject
			jsonText = (String) identifier;
		} else {
			throw new IllegalArgumentException("PersistentJsonObjectAsPostgreSQLJson type expected PGobject, received "
					+ identifier.getClass().getName() + " with value of '" + identifier + "'");
		}
File Line
org\jadira\usertype\corejava\enumerated\PersistentEnumAsPostgreSQLEnum.java 34
org\jadira\usertype\json\jackson\PersistentJsonObjectAsPostgreSQLJson.java 37
	private static boolean HAS_POSTGRES_DRIVER;
    
	static {
		
		try {
		Class.forName("org.postgresql.util.PGobject");
		HAS_POSTGRES_DRIVER = true;
		} catch (ClassNotFoundException e) {
			HAS_POSTGRES_DRIVER = false;
		}
	}
	
    @Override
    public Object doNullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner) throws HibernateException, SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnInstantMapper.java 26
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalDateTimeMapper.java 26
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnMonthDayMapper.java 27
public class TimestampColumnInstantMapper extends AbstractVersionableTimestampColumnMapper<Instant> {

    private static final long serialVersionUID = -7670411089210984705L;

    public static final DateTimeFormatter LOCAL_DATETIME_FORMATTER = new DateTimeFormatterBuilder().appendPattern("yyyy-MM-dd HH:mm:ss").appendOptional(new DateTimeFormatterBuilder().appendLiteral('.').appendFraction(ChronoField.NANO_OF_SECOND, 1, 9, false).toFormatter()).toFormatter();

	public TimestampColumnInstantMapper() {
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetDateTimeMapper.java 34
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnZonedDateTimeMapper.java 33
public class TimestampColumnOffsetDateTimeMapper extends AbstractVersionableTimestampColumnMapper<OffsetDateTime> implements JavaZoneConfigured<ZoneId> {

    private static final long serialVersionUID = -7670411089210984705L;

    public static final DateTimeFormatter DATETIME_FORMATTER = new DateTimeFormatterBuilder().appendPattern("yyyy-MM-dd HH:mm:ss").appendFraction(ChronoField.NANO_OF_SECOND, 0, 9, false).toFormatter();

	private static final int MILLIS_IN_SECOND = 1000;

    private ZoneId javaZone = null;

	public TimestampColumnOffsetDateTimeMapper() {
File Line
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnDateMapper.java 135
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnTimestampMapper.java 76
        if (milliseconds == 0) {
        	tsString = sdf.format(value);
        } else {
        	String nanosString = "" + milliseconds + "000000000";
        	nanosString = nanosString.substring(0, 9);
        	tsString = sdf.format(value) + "." + nanosString;
        }
    	
        return tsString;
    }

    @Override
    public Timestamp toNonNullValue(java.util.Date value) {
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnBigMoneyMapper.java 41
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMajorMapper.java 43
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMinorMapper.java 39
        return BigMoney.of(value).getAmount();
    }

	@Override
	public BigMoney fromNonNullString(String s) {
		return BigMoney.parse(s);
	}

	@Override
	public String toNonNullString(BigMoney value) {
		return value.toString();
	}
	
	@Override
    public void setCurrencyUnit(CurrencyUnit currencyUnit) {
        this.currencyUnit = currencyUnit;
    }
}
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnMoneyMapper.java 41
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMajorMapper.java 39
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMinorMapper.java 39
        return value.getAmount();
    }

	@Override
	public Money fromNonNullString(String s) {
		return Money.parse(s);
	}

	@Override
	public String toNonNullString(Money value) {
		return value.toString();
	}
	
	@Override
    public void setCurrencyUnit(CurrencyUnit currencyUnit) {
        this.currencyUnit = currencyUnit;
    }
}
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMajorMapper.java 31
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMinorMapper.java 31
        return Money.ofMajor(currencyUnit, val);
    }

    @Override
    public Long toNonNullValue(Money value) {
    	if (!currencyUnit.equals(value.getCurrencyUnit())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrencyUnit());
    	}
        return value.getAmountMajorLong();
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 53
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 54
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 58
		String value = s.substring(separator + 1);
		
		return Money.of(Long.parseLong(value), Monetary.getCurrency(currency));
	}

	@Override
	public String toNonNullString(MonetaryAmount value) {
		return value.toString();
	}
	
	@Override
    public void setCurrencyUnit(CurrencyUnit currencyUnit) {
        this.currencyUnit = currencyUnit;
    }
}
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMajorMapper.java 36
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMinorMapper.java 32
    }

    @Override
    public Long toNonNullValue(BigMoney value) {
    	if (!currencyUnit.equals(value.getCurrencyUnit())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrencyUnit());
    	}
        return value.toBigMoney().getAmountMajorLong();
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnLocalTimeMapper.java 32
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnTimeOfDayMapper.java 30
    public String toNonNullValue(LocalTime value) {
        if (value.getMillisOfSecond() == 0) {
            if (value.getSecondOfMinute() == 0) {
                return Formatter.LOCAL_TIME_NOSECONDS_PRINTER.print(value);
            }
            return Formatter.LOCAL_TIME_NOMILLIS_PRINTER.print(value);
        } else {
            return value.toString();
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 56
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 52
    public Time toNonNullValue(LocalTime value) {

    	DateTime zonedValue = new LocalDateTime(
    			1970,1,1,value.getHourOfDay(), value.getMinuteOfHour(), value.getSecondOfMinute(), value.getMillisOfSecond(), value.getChronology()
    	).toDateTime();

        final Time time = new Time(zonedValue.getMillis());
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 62
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 58
    public Time toNonNullValue(TimeOfDay value) {

    	DateTime zonedValue = new LocalDateTime(
    			1970,1,1,value.getHourOfDay(), value.getMinuteOfHour(), value.getSecondOfMinute(), value.getMillisOfSecond(), value.getChronology()
    	).toDateTime();

        final Time time = new Time(zonedValue.getMillis());
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 37
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 39
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new TimestampColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneWithOffsetMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "datetime", "offset" };

    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
File Line
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantity.java 62
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 65
	}
	
	@Override
	public void applyConfiguration(SessionFactory sessionFactory) {
		super.applyConfiguration(sessionFactory);
		doApplyConfiguration();
    }
    
	private <Z> void doApplyConfiguration() {

//		if (ValidTypesConfigured.class.isAssignableFrom(this.getClass())) {
		ValidTypesConfigured<Unit<?>> next = (ValidTypesConfigured<Unit<?>>)this;			
		performValidTypesConfiguration(next);
File Line
org\jadira\usertype\bindings\PersistentBoundClass.java 114
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 109
	}

    @Override
    public void doNullSafeSet(PreparedStatement preparedStatement, Object value, int index, SharedSessionContractImplementor session) throws SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {

    	if (value == null) {
			preparedStatement.setNull(index, getType().sqlType());
		} else {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnLocalDateMapper.java 26
org\jadira\usertype\dateandtime\threeten\columnmapper\DateColumnLocalDateMapper.java 25
public class DateColumnLocalDateMapper extends AbstractDateColumnMapper<LocalDate> {

    private static final long serialVersionUID = 6734385103313158326L;

    public static final DateTimeFormatter LOCAL_DATE_FORMATTER = new DateTimeFormatterBuilder().appendPattern("yyyy-MM-dd").toFormatter();

    public DateColumnLocalDateMapper() {
    }

    @Override
    public LocalDate fromNonNullString(String s) {
        return new LocalDate(s);
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnMonthDayMapper.java 21
org\jadira\usertype\dateandtime\threeten\columnmapper\StringColumnMonthDayMapper.java 22
public class StringColumnMonthDayMapper extends AbstractStringColumnMapper<MonthDay> {

    private static final long serialVersionUID = 982411452349850753L;

    @Override
    public MonthDay fromNonNullValue(String s) {
        return MonthDay.parse(s);
    }

    @Override
    public String toNonNullValue(MonthDay value) {
        return value.toString();
    }
}
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnYearMonthMapper.java 21
org\jadira\usertype\dateandtime\threeten\columnmapper\StringColumnYearMonthMapper.java 22
public class StringColumnYearMonthMapper extends AbstractStringColumnMapper<YearMonth> {

    private static final long serialVersionUID = 982411452349850753L;

    @Override
    public YearMonth fromNonNullValue(String s) {
        return YearMonth.parse(s);
    }

    @Override
    public String toNonNullValue(YearMonth value) {
        return value.toString();
    }
}
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 27
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnLocalTimeMapper.java 26
public class TimeColumnLocalTimeMapper extends AbstractTimeColumnMapper<LocalTime> {

    private static final long serialVersionUID = 6734385103313158326L;

    public static final DateTimeFormatter LOCAL_TIME_FORMATTER = new DateTimeFormatterBuilder().appendPattern("HH:mm:ss").toFormatter();

    public TimeColumnLocalTimeMapper() {
    }

    @Override
    public LocalTime fromNonNullString(String s) {
        return new LocalTime(s);
File Line
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnDateMapper.java 125
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnTimestampMapper.java 66
        final SimpleDateFormat sdf = DATETIME_FORMAT.get();
        sdf.setTimeZone(gmtZone);
        
        Calendar now = Calendar.getInstance(gmtZone);
        now.clear();
        now.setTime(value);
        
        final String tsString;
        
        long milliseconds = now.get(Calendar.MILLISECOND);
        if (milliseconds == 0) {
File Line
org\jadira\usertype\dateandtime\legacyjdk\PersistentDate.java 33
org\jadira\usertype\dateandtime\legacyjdk\PersistentTimestamp.java 31
public class PersistentDate extends AbstractVersionableUserType<java.util.Date, Timestamp, TimestampColumnDateMapper> implements ParameterizedType, IntegratorConfiguredType {

    private static final long serialVersionUID = -6656619988954550389L;

    @Override
    public int compare(Object o1, Object o2) {
        return ((java.util.Date) o1).compareTo((java.util.Date) o2);
    }
}
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetDateTimeMapper.java 58
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetTimeMapper.java 62
    public OffsetDateTime fromNonNullValue(Timestamp value) {

        ZoneId currentJavaZone = javaZone == null ? getDefaultZoneId() : javaZone;

        ZonedDateTime zonedDateTime = value.toInstant().with(ChronoField.NANO_OF_SECOND, value.getNanos()).atZone(currentJavaZone);
        OffsetDateTime dateTime = zonedDateTime.toOffsetDateTime();
File Line
org\jadira\usertype\json\jackson\PersistentJsonObjectAsPostgreSQLJson.java 71
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 100
		} catch (JsonParseException e) {
			throw new HibernateException("Problem parsing retrieved JSON String: " + jsonText, e);
		} catch (JsonMappingException e) {
			throw new HibernateException("Problem mapping retrieved JSON String: " + jsonText, e);
		} catch (IOException e) {
			throw new HibernateException("Problem reading JSON String: " + jsonText, e);
		}
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnFastMoneyMapper.java 55
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 55
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 54
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 59
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 55
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 60
		return FastMoney.of(Long.parseLong(value), Monetary.getCurrency(currency));
	}

	@Override
	public String toNonNullString(MonetaryAmount value) {
		return value.toString();
	}
	
	@Override
    public void setCurrencyUnit(CurrencyUnit currencyUnit) {
        this.currencyUnit = currencyUnit;
    }
}
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnInstantMapper.java 30
org\jadira\usertype\dateandtime\joda\util\Formatter.java 26
        .appendLiteral('T').appendHourOfDay(2)
        .appendLiteral(':').appendMinuteOfHour(2)
        .appendLiteral(':').appendSecondOfMinute(2)
        .appendOptional(new DateTimeFormatterBuilder().appendLiteral('.').appendFractionOfSecond(3, 9).toParser())
        .appendTimeZoneOffset("Z", true, 2, 4).toFormatter();
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 56
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 58
    public Time toNonNullValue(LocalTime value) {

    	DateTime zonedValue = new LocalDateTime(
    			1970,1,1,value.getHourOfDay(), value.getMinuteOfHour(), value.getSecondOfMinute(), value.getMillisOfSecond(), value.getChronology()
    	).toDateTime();

        final Time time = new Time(zonedValue.getMillis());
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 62
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 52
    public Time toNonNullValue(TimeOfDay value) {

    	DateTime zonedValue = new LocalDateTime(
    			1970,1,1,value.getHourOfDay(), value.getMinuteOfHour(), value.getSecondOfMinute(), value.getMillisOfSecond(), value.getChronology()
    	).toDateTime();

        final Time time = new Time(zonedValue.getMillis());
File Line
org\jadira\usertype\moneyandcurrency\joda\integrator\UserTypeJodaMoneyHibernateIntegrator.java 52
org\jadira\usertype\moneyandcurrency\moneta\integrator\UserTypeMonetaMoneyHibernateIntegrator.java 53
				new PersistentMoneyAmount(),
				new PersistentCurrencyUnit()
			};
			
		} else {
			userTypes = new UserType[]{};
		}
	}
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	protected CompositeUserType[] getCompositeUserTypes() {
		return COMPOSITE_USER_TYPES;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected UserType[] getUserTypes() {
		return userTypes;
	}	
}
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 35
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 38
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 35
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 38
        return FastMoney.of(val, currencyUnit);
    }

    @Override
    public Long toNonNullValue(MonetaryAmount value) {
    	if (!currencyUnit.equals(value.getCurrency())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrency());
    	}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 32
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 35
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 35
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 32
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMinor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 37
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 37
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMinor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 43
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 49
        return MonetaryQueries.extractMajorPart().queryFrom(value).longValue();
    }

	@Override
	public Money fromNonNullString(String s) {
		
		int separator = s.indexOf(' ');
		
		String currency = s.substring(0, separator);
		String value = s.substring(separator + 1);
File Line
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantity.java 64
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 67
org\jadira\usertype\unitsofmeasurement\indriya\PersistentUnit.java 38
	@Override
	public void applyConfiguration(SessionFactory sessionFactory) {
		super.applyConfiguration(sessionFactory);
		doApplyConfiguration();
    }
    
	private <Z> void doApplyConfiguration() {

//		if (ValidTypesConfigured.class.isAssignableFrom(this.getClass())) {
		ValidTypesConfigured<Unit<?>> next = (ValidTypesConfigured<Unit<?>>)this;			
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 42
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 38
    public LocalTime fromNonNullValue(Time value) {

        DateTime dateTime = new DateTime(value.getTime());
        LocalTime localTime = dateTime.toLocalTime();

        return localTime;
    }

    @Override
    public String toNonNullString(LocalTime value) {
        return value.toString();
    }

    @Override
    public Time toNonNullValue(LocalTime value) {
File Line
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 128
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 142
    public String objectToSQLString(final Object object) {
    	
    	if (object == null) {
    		return null;
    	}

    	try {
			return objectWriter.writeValueAsString(object);
		} catch (JsonProcessingException e) {
			throw new HibernateException("Cannot serialize JSON object: " + e.getMessage(), e);
		}
    }
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 34
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amount" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 36
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amount" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\LongColumnQuantityMapper.java 41
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\LongColumnQuantityMapper.java 59
    public Long toNonNullValue(Q value) {
    	if (!unit.getClass().isAssignableFrom(value.getUnit().getClass())) {
    		throw new IllegalStateException("Expected unit " + unit + " but was " + value.getUnit());
    	}
    	return Long.parseLong(value.getValue().toString());
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnMoneyMapper.java 37
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMajorMapper.java 35
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMinorMapper.java 35
    public BigDecimal toNonNullValue(Money value) {
    	if (!currencyUnit.equals(value.getCurrencyUnit())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrencyUnit());
    	}
        return value.getAmount();
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetDateTimeMapper.java 58
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetTimeMapper.java 62
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnZonedDateTimeMapper.java 57
    public OffsetDateTime fromNonNullValue(Timestamp value) {

        ZoneId currentJavaZone = javaZone == null ? getDefaultZoneId() : javaZone;

        ZonedDateTime zonedDateTime = value.toInstant().with(ChronoField.NANO_OF_SECOND, value.getNanos()).atZone(currentJavaZone);
File Line
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 47
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 47
    protected FastMoney fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMinorPart = (Long) convertedColumns[1];

        BigDecimal majorVal = BigDecimal.valueOf(amountMinorPart, currencyUnitPart.getDefaultFractionDigits());

        return FastMoney.of(majorVal, currencyUnitPart);
File Line
org\jadira\usertype\dateandtime\joda\AbstractMultiColumnDateMidnight.java 59
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 76
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 75
    	return new Object[] { value.toLocalDate(), new DateTimeZoneWithOffset(value.getZone(), value.getZone().isFixed() ? null : DateTimeZone.forOffsetMillis(value.getZone().getOffset(value))) };
    }
}
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnBigMoneyMapper.java 37
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMajorMapper.java 39
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMinorMapper.java 35
    public BigDecimal toNonNullValue(BigMoney value) {
    	if (!currencyUnit.equals(value.getCurrencyUnit())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrencyUnit());
    	}
        return BigMoney.of(value).getAmount();
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnFastMoneyMapper.java 40
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 40
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 39
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 39
    public BigDecimal toNonNullValue(MonetaryAmount value) {
    	if (!currencyUnit.equals(value.getCurrency())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrency());
    	}
    	return value.getNumber().numberValue(BigDecimal.class);
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 44
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 43
    	return value.getNumber().numberValue(BigDecimal.class);
    }

	@Override
	public Money fromNonNullString(String s) {
		
		int separator = s.indexOf(' ');
		
		String currency = s.substring(0, separator);
		String value = s.substring(separator + 1);
File Line
org\jadira\usertype\dateandtime\joda\AbstractMultiColumnDateMidnight.java 59
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 69
    	return new Object[] { value.toLocalDate(), new DateTimeZoneWithOffset(value.getZone(), value.getZone().isFixed() ? null : DateTimeZone.forOffsetMillis(value.getZone().getOffset(value))) };
    }
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnInstantMapper.java 38
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnInstantMapper.java 44
        Instant instant = new Instant(value.getTime());       
        return instant;
    }

    @Override
    public String toNonNullString(Instant value) {
        return value.toString();
    }

    @Override
    public Timestamp toNonNullValue(Instant value) {
        
        final Timestamp timestamp = new Timestamp(value.getMillis());
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 30
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 33
public class PersistentDateTimeAndZone extends AbstractParameterizedTemporalMultiColumnUserType<DateTime> {

    private static final long serialVersionUID = 1364221029392346011L;

    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new TimestampColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneMapper() };
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 34
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 39
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new TimestampColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "datetime", "offset" };

    @Override
    protected DateTime fromConvertedColumns(Object[] convertedColumns) {

        LocalDateTime datePart = (LocalDateTime) convertedColumns[0];
File Line
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnDateMapper.java 37
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnTimestampMapper.java 33
    private static final ThreadLocal<SimpleDateFormat> DATETIME_FORMAT = new ThreadLocal<SimpleDateFormat>() {
    	@Override protected SimpleDateFormat initialValue() {
    		
    		final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.US);
    		format.setTimeZone(GMT);
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnMoneyMapper.java 37
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMajorMapper.java 39
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMinorMapper.java 35
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMajorMapper.java 35
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMinorMapper.java 35
    public BigDecimal toNonNullValue(Money value) {
    	if (!currencyUnit.equals(value.getCurrencyUnit())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrencyUnit());
    	}
        return value.getAmount();
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 34
    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMajorPart = (Long) convertedColumns[1];
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 37
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 39
    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected Money fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMajorPart = (Long) convertedColumns[1];
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnFastMoneyMapper.java 40
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 40
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 42
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 42
    public BigDecimal toNonNullValue(MonetaryAmount value) {
    	if (!currencyUnit.equals(value.getCurrency())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrency());
    	}
File Line
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 37
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 39
    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected FastMoney fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMajorPart = (Long) convertedColumns[1];
File Line
org\jadira\usertype\bindings\PersistentBoundClass.java 114
org\jadira\usertype\json\jackson\PersistentJsonObjectAsPostgreSQLJson.java 78
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 109
	}

    @Override
    public void doNullSafeSet(PreparedStatement preparedStatement, Object value, int index, SharedSessionContractImplementor session) throws SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {

    	if (value == null) {
			preparedStatement.setNull(index, getType().sqlType());
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnDurationMapper.java 34
org\jadira\usertype\dateandtime\threeten\columnmapper\BigIntegerColumnDurationMapper.java 36
        return Duration.millis(value.divide(BigInteger.valueOf(1000000L)).longValue());
    }

    @Override
    public String toNonNullString(Duration value) {
        return value.toString();
    }

    @Override
    public BigInteger toNonNullValue(Duration value) {
        return BigInteger.valueOf(value.getMillis()).multiply(BigInteger.valueOf(1000000L));
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 57
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 144
        return new Object[] { value.toLocalDateTime(), value.getZone() };
    }
    
    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    public String[] getPropertyNames() {
        return ArrayUtils.copyOf(PROPERTY_NAMES);
    }
}
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\StringColumnInstantMapper.java 29
org\jadira\usertype\dateandtime\threeten\columnmapper\StringColumnLocalDateTimeMapper.java 27
    public static final DateTimeFormatter INSTANT_FORMATTER = new DateTimeFormatterBuilder()
        .appendPattern("yyyy-MM-dd'T'HH:mm:ss").appendOptional(new DateTimeFormatterBuilder().appendLiteral('.').appendFraction(ChronoField.NANO_OF_SECOND, 1, 9, false).toFormatter()).appendLiteral('Z').toFormatter();
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 34
    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amount" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 38
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 37
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 39
    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amount" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected Money fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
File Line
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyAmountAndCurrency.java 38
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 37
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 39
    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amount" };
	
	@Override
	protected ColumnMapper<?, ?>[] getColumnMappers() {
		return COLUMN_MAPPERS;
	}

    @Override
    protected FastMoney fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 57
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 69
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 144
        return new Object[] { value.toLocalDateTime(), value.getZone() };
    }
    
    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    public String[] getPropertyNames() {
        return ArrayUtils.copyOf(PROPERTY_NAMES);
    }
}
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetDateTimeMapper.java 38
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetTimeMapper.java 42
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnZonedDateTimeMapper.java 37
    public static final DateTimeFormatter DATETIME_FORMATTER = new DateTimeFormatterBuilder().appendPattern("yyyy-MM-dd HH:mm:ss").appendFraction(ChronoField.NANO_OF_SECOND, 0, 9, false).toFormatter();

	private static final int MILLIS_IN_SECOND = 1000;

    private ZoneId javaZone = null;

	public TimestampColumnOffsetDateTimeMapper() {
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetDateTimeMapper.java 76
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetTimeMapper.java 83
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnZonedDateTimeMapper.java 73
        final Timestamp timestamp = new Timestamp((value.toEpochSecond() * MILLIS_IN_SECOND));
        timestamp.setNanos(value.getNano());
        return timestamp;
    }
    
    @Override
    public void setJavaZone(ZoneId javaZone) {
        this.javaZone = javaZone;
    }
        
	@Override
	public ZoneId parseJavaZone(String zoneString) {
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnBigMoneyMapper.java 37
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnMoneyMapper.java 37
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMajorMapper.java 35
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMinorMapper.java 35
    public BigDecimal toNonNullValue(BigMoney value) {
    	if (!currencyUnit.equals(value.getCurrencyUnit())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrencyUnit());
    	}
        return BigMoney.of(value).getAmount();
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateMidnight.java 32
org\jadira\usertype\dateandtime\joda\PersistentDateMidnightAsString.java 32
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 39
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 37
    private static final String[] PROPERTY_NAMES = new String[] { "date", "offset" };

    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    public String[] getPropertyNames() {
        return ArrayUtils.copyOf(PROPERTY_NAMES);
    }
File Line
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\StringColumnUnitMapper.java 19
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 49
	private static SystemOfUnitsService SYSTEM_OF_UNITS_SERVICE = ServiceProvider.current().getSystemOfUnitsService();
    
    private final Map<String, Unit<?>> unitsMap = new HashMap<String, Unit<?>>();

	private List<Class<Unit<?>>> validTypes;
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateMidnight.java 32
org\jadira\usertype\dateandtime\joda\PersistentDateMidnightAsString.java 32
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 58
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 70
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 145
    private static final String[] PROPERTY_NAMES = new String[] { "date", "offset" };

    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    public String[] getPropertyNames() {
        return ArrayUtils.copyOf(PROPERTY_NAMES);
    }
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 28
public class PersistentBigMoneyMajorAmountAndCurrency extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 28
public class PersistentMoneyMajorAmountAndCurrency extends AbstractMultiColumnUserType<Money> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnFastMoneyMapper.java 48
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 48
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 47
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 52
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 53
	public FastMoney fromNonNullString(String s) {
		
		int separator = s.indexOf(' ');
		
		String currency = s.substring(0, separator);
		String value = s.substring(separator + 1);
		
		return FastMoney.of(Long.parseLong(value), Monetary.getCurrency(currency));
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 58
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 39
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 37
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 70
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 145
    }
    
    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    public String[] getPropertyNames() {
        return ArrayUtils.copyOf(PROPERTY_NAMES);
    }
File Line
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsLongAndStringOffset.java 31
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsStringAndStringOffset.java 31
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsTimeAndStringOffset.java 31
public class PersistentOffsetTimeAsLongAndStringOffset extends AbstractMultiColumnUserType<OffsetTime> {

    private static final long serialVersionUID = 1364221029392346011L;

    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new LongColumnLocalTimeMapper(), new StringColumnZoneOffsetMapper() };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 30
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 30
public class PersistentBigMoneyAmountAndCurrency extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = 3735995469031558183L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 30
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 30
public class PersistentMoneyAmountAndCurrency extends AbstractMultiColumnUserType<Money> {

	private static final long serialVersionUID = 3735995469031558183L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnFastMoneyMapper.java 48
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 47
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 52
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 47
	public FastMoney fromNonNullString(String s) {
		
		int separator = s.indexOf(' ');
		
		String currency = s.substring(0, separator);
		String value = s.substring(separator + 1);
File Line
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\StringColumnUnitMapper.java 21
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantity.java 56
    private final Map<String, Unit<?>> unitsMap = new HashMap<String, Unit<?>>();

	private List<Class<Unit<?>>> validTypes;
    		
    public StringColumnUnitMapper() {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnLocalTimeMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnLocalTimeMapper.java 33
        return LocalTime.fromMillisOfDay(value / 1000000L);
    }

    @Override
    public String toNonNullString(LocalTime value) {
        return value.toString();
    }

    @Override
    public Long toNonNullValue(LocalTime value) {
        return Long.valueOf(value.getMillisOfDay() * 1000000L);
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 54
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 54
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 54
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 54
    protected Object[] toConvertedColumns(BigMoney value) {

        return new Object[] { value.getCurrencyUnit(), value.getAmount() };
    }
    
    @Override
	public String[] getPropertyNames() {
		return PROPERTY_NAMES;
	}
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 56
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 56
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 52
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 52
    protected Object[] toConvertedColumns(BigMoney value) {

        return new Object[] { value.getCurrencyUnit(), value.getAmountMajorLong() };
    }
    
    @Override
	public String[] getPropertyNames() {
		return PROPERTY_NAMES;
	}
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 52
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 52
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 52
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 52
    protected Object[] toConvertedColumns(BigMoney value) {

        return new Object[] { value.getCurrencyUnit(), value.getAmountMinorLong() };
    }
    
    @Override
	public String[] getPropertyNames() {
		return PROPERTY_NAMES;
	}
}
File Line
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\LongColumnQuantityMapper.java 41
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\StringColumnQuantityMapper.java 41
    public Long toNonNullValue(Q value) {
    	if (!unit.getClass().isAssignableFrom(value.getUnit().getClass())) {
    		throw new IllegalStateException("Expected unit " + unit + " but was " + value.getUnit());
File Line
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantity.java 56
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 51
    private static final Map<String, Unit<?>> unitsMap = new HashMap<String, Unit<?>>();
    
	private List<Class<Unit<?>>> validTypes;
File Line
org\jadira\usertype\bindings\PersistentBoundClass.java 100
org\jadira\usertype\json\jackson\PersistentJsonObjectAsPostgreSQLJson.java 47
	}

	@Override
	public Object doNullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner) throws HibernateException, SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {

		Object identifier = getType().get(rs, names[0], session);
File Line
org\jadira\usertype\dateandtime\joda\AbstractMultiColumnDateMidnight.java 48
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 66
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 64
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 58
        if (datePart != null && offset.getOffsetDateTimeZone() != null &&
        		offset.getStandardDateTimeZone().getOffset(result) > offset.getOffsetDateTimeZone().getOffset(result)) {
        	return new DateMidnight(datePart.getYear(), datePart.getMonthOfYear(), datePart.getDayOfMonth(), offset.getOffsetDateTimeZone());
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnLocalDateMapper.java 47
org\jadira\usertype\dateandtime\threeten\columnmapper\DateColumnLocalDateMapper.java 45
    }

    @Override
    public String toNonNullString(LocalDate value) {
        return value.toString();
    }

    @Override
    public Date toNonNullValue(LocalDate value) {

        return Date.valueOf(LOCAL_DATE_FORMATTER.print((LocalDate) value));
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnDurationMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnDurationMapper.java 33
        return (value == null ? new Duration(null) : Duration.millis(1000L * value.intValue()));
    }

    @Override
    public String toNonNullString(Duration value) {
        return value.toString();
    }

    @Override
    public Integer toNonNullValue(Duration value) {
        long longValue = value.getStandardSeconds();
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\StringColumnLocalDateTimeMapper.java 27
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnInstantMapper.java 30
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalDateTimeMapper.java 30
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnMonthDayMapper.java 31
	public static final DateTimeFormatter DATETIME_FORMATTER = new DateTimeFormatterBuilder().appendPattern("yyyy-MM-dd'T'HH:mm:ss").appendOptional(new DateTimeFormatterBuilder().appendLiteral('.').appendFraction(ChronoField.NANO_OF_SECOND, 1, 9, false).toFormatter()).toFormatter();
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnOffsetTimeMapper.java 39
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetTimeMapper.java 52
	public TimeColumnOffsetTimeMapper(ZoneOffset javaZone) {
		this.javaZone = javaZone;
	}
    
    @Override
    public OffsetTime fromNonNullString(String s) {
        return OffsetTime.parse(s);
    }

    @Override
    public OffsetTime fromNonNullValue(Time value) {
File Line
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\LongColumnQuantityMapper.java 59
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\StringColumnQuantityMapper.java 41
	public String toNonNullString(Q value) {
    	if (!unit.getClass().isAssignableFrom(value.getUnit().getClass())) {
    		throw new IllegalStateException("Expected unit " + unit + " but was " + value.getUnit());
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnDurationMapper.java 23
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnDurationMapper.java 21
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnDurationMapper.java 21
public class BigIntegerColumnDurationMapper extends AbstractBigIntegerColumnMapper<Duration> {

    private static final long serialVersionUID = 8408450977695192938L;

    @Override
    public Duration fromNonNullString(String s) {
        return new Duration(s);
    }

    @Override
    public Duration fromNonNullValue(BigInteger value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnInstantMapper.java 23
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnInstantMapper.java 21
public class BigIntegerColumnInstantMapper extends AbstractVersionableBigIntegerColumnMapper<Instant> {

    private static final long serialVersionUID = 8408450977695192938L;

    @Override
    public Instant fromNonNullString(String s) {
        return new Instant(s);
    }

    @Override
    public Instant fromNonNullValue(BigInteger value) {
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateMidnight.java 26
org\jadira\usertype\dateandtime\joda\PersistentDateMidnightAsString.java 26
public class PersistentDateMidnight extends AbstractMultiColumnDateMidnight {

    private static final long serialVersionUID = 1364221029392346011L;

    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new DateColumnLocalDateMapper(), new StringColumnDateTimeZoneWithOffsetMapper() };
File Line
org\jadira\usertype\dateandtime\threeten\PersistentOffsetDateTimeAsStringAndStringOffset.java 44
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsLongAndStringOffset.java 45
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsStringAndStringOffset.java 45
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsTimeAndStringOffset.java 45
        return OffsetDateTime.of(datePart, offset);
    }


    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    protected Object[] toConvertedColumns(OffsetDateTime value) {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 28
public class PersistentBigMoneyMajorAmountAndCurrency extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 31
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 31
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 32
public class PersistentBigMoneyMajorAmountAndCurrencyAsInteger extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = -3990523657883978202L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnInstantMapper.java 34
org\jadira\usertype\dateandtime\threeten\columnmapper\BigIntegerColumnInstantMapper.java 41
        return new Instant(value.divide(BigInteger.valueOf(1000000L)).longValue());
    }

    @Override
    public String toNonNullString(Instant value) {
        return value.toString();
    }

    @Override
    public BigInteger toNonNullValue(Instant value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnDurationMapper.java 42
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnDurationMapper.java 43
        long longValue = value.getStandardSeconds();
        if (longValue < Integer.MIN_VALUE || longValue > Integer.MAX_VALUE) {
            throw new IllegalStateException(longValue + " cannot be cast to int without changing its value.");
        }
        return (int)longValue;
    }
}
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 30
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 33
org\jadira\usertype\dateandtime\threeten\PersistentOffsetDateTimeAsStringAndStringOffset.java 30
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsLongAndStringOffset.java 31
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsStringAndStringOffset.java 31
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsTimeAndStringOffset.java 31
public class PersistentDateTimeAndZone extends AbstractParameterizedTemporalMultiColumnUserType<DateTime> {

    private static final long serialVersionUID = 1364221029392346011L;

    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new TimestampColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneMapper() };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 30
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 30
public class PersistentBigMoneyAmountAndCurrency extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = 3735995469031558183L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 30
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 30
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 32
public class PersistentBigMoneyAmountAndCurrencyAsInteger extends AbstractMultiColumnUserType<BigMoney> {

	private static final long serialVersionUID = 3735995469031558183L;

	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };
File Line
org\jadira\usertype\bindings\PersistentBoundClass.java 100
org\jadira\usertype\corejava\enumerated\PersistentEnumAsPostgreSQLEnum.java 44
org\jadira\usertype\json\jackson\PersistentJsonObjectAsPostgreSQLJson.java 47
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 86
	}

	@Override
	public Object doNullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner) throws HibernateException, SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
File Line
org\jadira\usertype\corejava\enumerated\PersistentEnumAsPostgreSQLEnum.java 65
org\jadira\usertype\json\jackson\PersistentJsonObjectAsPostgreSQLJson.java 76
            throw new IllegalArgumentException("PersistentEnum type expected PGobject, received " + identifier.getClass().getName() + " with value of '" + identifier + "'");
        }
    }

    @Override
    public void doNullSafeSet(PreparedStatement preparedStatement, Object value, int index, SharedSessionContractImplementor session) throws SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {

    	if (!HAS_POSTGRES_DRIVER) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnInstantMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnInstantMapper.java 33
        return new Instant(value);
    }

    @Override
    public String toNonNullString(Instant value) {
        return value.toString();
    }

    @Override
    public Long toNonNullValue(Instant value) {
        return Long.valueOf(value.getMillis());
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnYearsMapper.java 23
org\jadira\usertype\dateandtime\threeten\columnmapper\StringColumnYearMapper.java 24
public class StringColumnYearsMapper extends AbstractStringColumnMapper<Years> {

    private static final long serialVersionUID = -7158493703736747997L;

    public static final DateTimeFormatter YEAR_FORMATTER = new DateTimeFormatterBuilder().appendPattern("MMM").toFormatter();

    @Override
    public Years fromNonNullValue(String value) {
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateMidnight.java 26
org\jadira\usertype\dateandtime\joda\PersistentDateMidnightAsString.java 26
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 30
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 33
org\jadira\usertype\dateandtime\threeten\PersistentOffsetDateTimeAsStringAndStringOffset.java 30
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsLongAndStringOffset.java 31
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsStringAndStringOffset.java 31
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsTimeAndStringOffset.java 31
public class PersistentDateMidnight extends AbstractMultiColumnDateMidnight {

    private static final long serialVersionUID = 1364221029392346011L;

    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new DateColumnLocalDateMapper(), new StringColumnDateTimeZoneWithOffsetMapper() };
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\StringColumnInstantMapper.java 30
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnInstantMapper.java 30
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalDateTimeMapper.java 30
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnMonthDayMapper.java 31
        .appendPattern("yyyy-MM-dd'T'HH:mm:ss").appendOptional(new DateTimeFormatterBuilder().appendLiteral('.').appendFraction(ChronoField.NANO_OF_SECOND, 1, 9, false).toFormatter()).appendLiteral('Z').toFormatter();
File Line
org\jadira\usertype\dateandtime\joda\integrator\UserTypeJodaTimeHibernateIntegrator.java 62
org\jadira\usertype\dateandtime\threeten\integrator\UserTypeThreeTenHibernateIntegrator.java 61
					new PersistentDurationAsString(),
					new PersistentInstantAsTimestamp(),
					new PersistentLocalDate(),
					new PersistentLocalDateTime(),
					new PersistentLocalTime(),
					new PersistentMonthDayAsString(),
					new PersistentPeriodAsString(),
File Line
org\jadira\usertype\dateandtime\joda\util\Formatter.java 26
org\jadira\usertype\dateandtime\joda\util\Formatter.java 29
org\jadira\usertype\dateandtime\joda\util\Formatter.java 32
    public static final DateTimeFormatter LOCAL_TIME_FORMATTER = new DateTimeFormatterBuilder().appendHourOfDay(2).appendLiteral(':').appendMinuteOfHour(2).appendLiteral(':').appendSecondOfMinute(2)
    .appendOptional(new DateTimeFormatterBuilder().appendLiteral('.').appendFractionOfSecond(3, 9).toParser()).toFormatter();
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMajorMapper.java 23
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMinorMapper.java 23
public class LongColumnMoneyMajorMapper extends AbstractLongColumnMapper<Money> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public Money fromNonNullValue(Long val) {
        return Money.ofMajor(currencyUnit, val);
File Line
org\jadira\usertype\bindings\PersistentBoundClass.java 114
org\jadira\usertype\corejava\enumerated\PersistentEnumAsPostgreSQLEnum.java 67
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 109
	}

    @Override
    public void doNullSafeSet(PreparedStatement preparedStatement, Object value, int index, SharedSessionContractImplementor session) throws SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {

    	if (value == null) {
File Line
org\jadira\usertype\corejava\collections\PersistentStringMapAsPostgreSQLJson.java 34
org\jadira\usertype\json\jackson\PersistentJsonObjectAsPostgreSQLJson.java 50
			throws HibernateException, SQLException {

		Object identifier = rs.getObject(names[0]);

		if (rs.wasNull()) {
			return null;
		}

		final String jsonText;
		if (identifier instanceof PGobject) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnDateTimeMapper.java 40
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnLocalDateTimeMapper.java 29
        .toFormatter();

   
    private static final DateTimeFormatter DATE_TIME_PRINTER_PREFIX = new DateTimeFormatterBuilder()
            .append(ISODateTimeFormat.yearMonth()).appendLiteral("-")
            .toFormatter();
File Line
org\jadira\usertype\dateandtime\joda\PersistentInstantAsMillisLong.java 34
org\jadira\usertype\dateandtime\joda\PersistentInstantAsNanosBigInteger.java 34
org\jadira\usertype\dateandtime\joda\PersistentInstantAsTimestamp.java 42
org\jadira\usertype\dateandtime\threeten\PersistentInstantAsMillisLong.java 35
org\jadira\usertype\dateandtime\threeten\PersistentInstantAsNanosBigInteger.java 34
org\jadira\usertype\dateandtime\threeten\PersistentInstantAsTimestamp.java 42
    @Override
    public int compare(Object o1, Object o2) {
        return ((Instant) o1).compareTo((Instant) o2);
    }
}
File Line
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnTimestampMapper.java 53
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnTimestampMapper.java 88
    public java.sql.Timestamp fromNonNullValue(Timestamp value) {

        final Timestamp timestamp = new Timestamp(value.getTime());
        timestamp.setNanos(value.getNanos());

        return timestamp;
    }
File Line
org\jadira\usertype\dateandtime\threeten\PersistentOffsetDateTime.java 43
org\jadira\usertype\dateandtime\threeten\PersistentZonedDateTime.java 44
    @Override
    public int compare(Object o1, Object o2) {
        return ((OffsetDateTime) o1).compareTo((OffsetDateTime) o2);
    }
   
}
File Line
org\jadira\usertype\moneyandcurrency\joda\AbstractSingleColumnMoneyUserType.java 65
org\jadira\usertype\moneyandcurrency\moneta\AbstractSingleColumnMoneyUserType.java 67
				currencyUnit = CurrencyUnit.of(currencyString);
			} else {
				throw new IllegalStateException(getClass().getSimpleName() + " requires currencyCode to be defined as a parameter, or the jadira.usertype.currencyCode Hibernate property to be defined");
			}
    	}
    	columnMapper.setCurrencyUnit(currencyUnit);
    }
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 48
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 48
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 46
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 46
        BigMoney money = BigMoney.of(currencyUnitPart, amountPart);

        return money;
    }

    @Override
    protected Object[] toConvertedColumns(BigMoney value) {

        return new Object[] { value.getCurrencyUnit(), value.getAmount() };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 48
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 48
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 46
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 46
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 46
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 46
        Money money = Money.of(currencyUnitPart, amountPart);

        return money;
    }

    @Override
    protected Object[] toConvertedColumns(Money value) {

        return new Object[] { value.getCurrencyUnit(), value.getAmount() };
File Line
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyAmountAndCurrency.java 50
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 49
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 50
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 49
        FastMoney money = FastMoney.of(amountPart, currencyUnitPart);

        return money;
    }

    @Override
    protected Object[] toConvertedColumns(MonetaryAmount value) {

        return new Object[] { value.getCurrency(), value.getNumber().numberValue(BigDecimal.class) };
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnLocalDateMapper.java 26
org\jadira\usertype\dateandtime\threeten\columnmapper\DateColumnLocalDateMapper.java 25
org\jadira\usertype\dateandtime\threeten\columnmapper\DateColumnMonthDayMapper.java 25
public class DateColumnLocalDateMapper extends AbstractDateColumnMapper<LocalDate> {

    private static final long serialVersionUID = 6734385103313158326L;

    public static final DateTimeFormatter LOCAL_DATE_FORMATTER = new DateTimeFormatterBuilder().appendPattern("yyyy-MM-dd").toFormatter();

    public DateColumnLocalDateMapper() {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnLocalTimeMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnLocalTimeMapper.java 34
        return LocalTime.fromMillisOfDay(value);
    }

    @Override
    public String toNonNullString(LocalTime value) {
        return value.toString();
    }

    @Override
    public Integer toNonNullValue(LocalTime value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnDurationMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnDurationMapper.java 38
        return (value == null ? new Duration(null) : Duration.millis(value));
    }

    @Override
    public String toNonNullString(Duration value) {
        return value.toString();
    }

    @Override
    public Long toNonNullValue(Duration value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 27
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnLocalTimeMapper.java 26
public class TimeColumnLocalTimeMapper extends AbstractTimeColumnMapper<LocalTime> {

    private static final long serialVersionUID = 6734385103313158326L;

    public static final DateTimeFormatter LOCAL_TIME_FORMATTER = new DateTimeFormatterBuilder().appendPattern("HH:mm:ss").toFormatter();

    public TimeColumnLocalTimeMapper() {
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 34
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 39
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new TimestampColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneMapper() };
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 49
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 68
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 66
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 60
            result = datePart.toDateTime(zone);
        }

        return result;
    }

    @Override
    protected Object[] toConvertedColumns(DateTime value) {
        return new Object[] { value.toLocalDateTime(), value.getZone() };
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 35
org\jadira\usertype\dateandtime\threeten\PersistentOffsetDateTimeAsStringAndStringOffset.java 34
org\jadira\usertype\dateandtime\threeten\PersistentZonedDateTimeAsStringAndStringZone.java 34
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneWithOffsetMapper() };
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\BigDecimalColumnDurationMapper.java 27
org\jadira\usertype\dateandtime\threeten\columnmapper\BigIntegerColumnDurationMapper.java 27
    private static final BigDecimal NANOS_IN_SECOND = BigDecimal.valueOf(1_000_000_000L);
    
    @Override
    public Duration fromNonNullString(String s) {
        return Duration.parse(s);
    }

    @Override
    public Duration fromNonNullValue(BigDecimal value) {
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnMoneyMapper.java 25
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 28
public class BigDecimalColumnMoneyMapper extends AbstractBigDecimalColumnMapper<Money> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public Money fromNonNullValue(BigDecimal val) {
        return Money.of(currencyUnit, val);
File Line
org\jadira\usertype\moneyandcurrency\joda\integrator\UserTypeJodaMoneyHibernateIntegrator.java 58
org\jadira\usertype\moneyandcurrency\legacyjdk\integrator\UserTypeLegacyJdkMoneyHibernateIntegrator.java 31
org\jadira\usertype\moneyandcurrency\moneta\integrator\UserTypeMonetaMoneyHibernateIntegrator.java 59
		}
	}
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	protected CompositeUserType[] getCompositeUserTypes() {
		return COMPOSITE_USER_TYPES;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected UserType[] getUserTypes() {
		return userTypes;
	}	
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 35
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 35
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 36
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 32
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new BigDecimalBigDecimalColumnMapper() };
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnLocalTimeMapper.java 21
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnLocalTimeMapper.java 22
public class IntegerColumnLocalTimeMapper extends AbstractIntegerColumnMapper<LocalTime> {

    private static final long serialVersionUID = -3448788221055335510L;

    @Override
    public LocalTime fromNonNullString(String s) {
        return new LocalTime(s);
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnDateTimeMapper.java 35
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnDateTimeMapper.java 47
        .append(ISODateTimeFormat.date())
        .appendLiteral('T')
        .append(ISODateTimeFormat.hourMinuteSecondFraction())
        .appendLiteral('_')
        .appendTimeZoneId()
        .toFormatter();
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnDurationMapper.java 21
org\jadira\usertype\dateandtime\threeten\columnmapper\StringColumnDurationMapper.java 22
public class StringColumnDurationMapper extends AbstractStringColumnMapper<Duration> {

    private static final long serialVersionUID = -5741261927204773374L;

    @Override
    public Duration fromNonNullValue(String s) {
        return new Duration(s);
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnLocalTimeMapper.java 22
org\jadira\usertype\dateandtime\threeten\columnmapper\StringColumnLocalTimeMapper.java 22
public class StringColumnLocalTimeMapper extends AbstractStringColumnMapper<LocalTime> {

    private static final long serialVersionUID = -6885561256539185520L;

    @Override
    public LocalTime fromNonNullValue(String s) {
        return new LocalTime(s);
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 27
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnLocalTimeMapper.java 26
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnOffsetTimeMapper.java 28
public class TimeColumnLocalTimeMapper extends AbstractTimeColumnMapper<LocalTime> {

    private static final long serialVersionUID = 6734385103313158326L;

    public static final DateTimeFormatter LOCAL_TIME_FORMATTER = new DateTimeFormatterBuilder().appendPattern("HH:mm:ss").toFormatter();
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 48
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnLocalTimeMapper.java 44
    }

    @Override
    public String toNonNullString(LocalTime value) {
        return value.toString();
    }

    @Override
    public Time toNonNullValue(LocalTime value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalDateTimeMapper.java 44
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalDateTimeMapper.java 45
    }

    @Override
    public String toNonNullString(LocalDateTime value) {
        return value.toString();
    }

    @Override
    public Timestamp toNonNullValue(LocalDateTime value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 44
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalTimeMapper.java 48
    }

    @Override
    public String toNonNullString(LocalTime value) {
        return value.toString();
    }

    @Override
    public Timestamp toNonNullValue(LocalTime value) {
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 35
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 39
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneWithOffsetMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "datetime", "offset" };

    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnOffsetTimeMapper.java 66
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetTimeMapper.java 89
    public void setJavaZone(ZoneOffset javaZone) {
        this.javaZone = javaZone;
    }
        
	@Override
	public ZoneOffset parseJavaZone(String zoneString) {
		return ZoneOffset.of(zoneString);
	}
}
File Line
org\jadira\usertype\dateandtime\threeten\integrator\UserTypeThreeTenHibernateIntegrator.java 82
org\jadira\usertype\moneyandcurrency\joda\integrator\UserTypeJodaMoneyHibernateIntegrator.java 59
org\jadira\usertype\moneyandcurrency\legacyjdk\integrator\UserTypeLegacyJdkMoneyHibernateIntegrator.java 33
org\jadira\usertype\moneyandcurrency\moneta\integrator\UserTypeMonetaMoneyHibernateIntegrator.java 60
	private static final CompositeUserType[] COMPOSITE_USER_TYPES = new CompositeUserType[]{};
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	protected CompositeUserType[] getCompositeUserTypes() {
		return COMPOSITE_USER_TYPES;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected UserType[] getUserTypes() {
		return userTypes;
	}	
}
File Line
org\jadira\usertype\dateandtime\threeten\PersistentOffsetDateTimeAsStringAndStringOffset.java 44
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsLongAndStringOffset.java 45
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsStringAndStringOffset.java 45
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsTimeAndStringOffset.java 45
org\jadira\usertype\dateandtime\threeten\PersistentZonedDateTimeAsStringAndStringZone.java 44
        return OffsetDateTime.of(datePart, offset);
    }


    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    protected Object[] toConvertedColumns(OffsetDateTime value) {
File Line
org\jadira\usertype\moneyandcurrency\joda\integrator\UserTypeJodaMoneyHibernateIntegrator.java 27
org\jadira\usertype\moneyandcurrency\moneta\integrator\UserTypeMonetaMoneyHibernateIntegrator.java 26
public class UserTypeJodaMoneyHibernateIntegrator extends AbstractUserTypeHibernateIntegrator implements Integrator {

	private static UserType[] userTypes;
	private static final CompositeUserType[] COMPOSITE_USER_TYPES = new CompositeUserType[]{};

	static {
		
		boolean found = false;
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 44
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 44
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 44
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 44
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyAmountAndCurrency.java 46
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 46
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        BigDecimal amountPart = (BigDecimal) convertedColumns[1];
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 42
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 42
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 42
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 42
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 45
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 45
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMajorPart = (Long) convertedColumns[1];
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 42
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 42
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 42
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 42
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 47
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 47
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMinorPart = (Long) convertedColumns[1];
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 27
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 28
public class LongColumnFastMoneyMajorMapper extends AbstractLongColumnMapper<MonetaryAmount> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public FastMoney fromNonNullValue(Long val) {
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 27
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 28
public class LongColumnMoneyMajorMapper extends AbstractLongColumnMapper<MonetaryAmount> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public Money fromNonNullValue(Long val) {
File Line
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\LongColumnQuantityMapper.java 26
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\StringColumnQuantityMapper.java 26
public class LongColumnQuantityMapper<Q extends Quantity<Q>> extends AbstractLongColumnMapper<Q> implements UnitConfigured<Q> {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private Unit<Q> unit;
    
	@Override
    public Q fromNonNullValue(Long val) {
File Line
org\jadira\usertype\bindings\PersistentBoundClass.java 105
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 91
		Object identifier = getType().get(rs, names[0], session);
		
		if (rs.wasNull()) {
			return null;
		}
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnDurationMapper.java 21
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnDurationMapper.java 22
public class IntegerColumnDurationMapper extends AbstractIntegerColumnMapper<Duration> {

    private static final long serialVersionUID = 8408450977695192938L;

    @Override
    public Duration fromNonNullString(String s) {
        return new Duration(s);
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnInstantMapper.java 21
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnInstantMapper.java 22
public class LongColumnInstantMapper extends AbstractVersionableLongColumnMapper<Instant> {

    private static final long serialVersionUID = 8408450977695192938L;

    @Override
    public Instant fromNonNullString(String s) {
        return new Instant(s);
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnLocalTimeMapper.java 21
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnLocalTimeMapper.java 22
public class LongColumnLocalTimeMapper extends AbstractLongColumnMapper<LocalTime> {

    private static final long serialVersionUID = 8408450977695192938L;

    @Override
    public LocalTime fromNonNullString(String s) {
        return new LocalTime(s);
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnInstantMapper.java 30
org\jadira\usertype\dateandtime\joda\util\Formatter.java 29
org\jadira\usertype\dateandtime\joda\util\Formatter.java 32
        .appendLiteral('T').appendHourOfDay(2)
        .appendLiteral(':').appendMinuteOfHour(2)
        .appendLiteral(':').appendSecondOfMinute(2)
        .appendOptional(new DateTimeFormatterBuilder().appendLiteral('.').appendFractionOfSecond(3, 9).toParser())
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 33
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 29
    public TimeColumnLocalTimeMapper() {
    }

    @Override
    public LocalTime fromNonNullString(String s) {
        return new LocalTime(s);
    }

    @Override
    public LocalTime fromNonNullValue(Time value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 38
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 34
    public TimeColumnTimeOfDayMapper() {
    }

    @Override
    public TimeOfDay fromNonNullString(String s) {
        return new TimeOfDay(s);
    }

    @Override
    public TimeOfDay fromNonNullValue(Time value) {
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnLocalTimeMapper.java 55
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalTimeMapper.java 58
    				1970, 1, 1, value.getHour(), value.getMinute(), value.getSecond(), value.getNano()
    			);
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnBigMoneyMapper.java 50
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnMoneyMapper.java 50
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMajorMapper.java 52
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMinorMapper.java 48
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMajorMapper.java 48
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMinorMapper.java 48
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnFastMoneyMapper.java 59
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 59
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 58
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 63
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 59
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 64
	public String toNonNullString(BigMoney value) {
		return value.toString();
	}
	
	@Override
    public void setCurrencyUnit(CurrencyUnit currencyUnit) {
        this.currencyUnit = currencyUnit;
    }
}
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMajorMapper.java 23
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMinorMapper.java 23
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 27
public class LongColumnMoneyMajorMapper extends AbstractLongColumnMapper<Money> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public Money fromNonNullValue(Long val) {
        return Money.ofMajor(currencyUnit, val);
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\StringColumnCurrencyUnitMapper.java 21
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\StringColumnCurrencyUnitMapper.java 23
public class StringColumnCurrencyUnitMapper extends AbstractStringColumnMapper<CurrencyUnit> {

    private static final long serialVersionUID = 4205713919952452881L;

    @Override
    public CurrencyUnit fromNonNullValue(String s) {
        return CurrencyUnit.of(s);
File Line
org\jadira\usertype\moneyandcurrency\joda\integrator\UserTypeJodaMoneyHibernateIntegrator.java 27
org\jadira\usertype\moneyandcurrency\legacyjdk\integrator\UserTypeLegacyJdkMoneyHibernateIntegrator.java 24
org\jadira\usertype\moneyandcurrency\moneta\integrator\UserTypeMonetaMoneyHibernateIntegrator.java 26
public class UserTypeJodaMoneyHibernateIntegrator extends AbstractUserTypeHibernateIntegrator implements Integrator {

	private static UserType[] userTypes;
	private static final CompositeUserType[] COMPOSITE_USER_TYPES = new CompositeUserType[]{};

	static {
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 51
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 51
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 53
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 53
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 49
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 49
    }

    @Override
    protected Object[] toConvertedColumns(BigMoney value) {

        return new Object[] { value.getCurrencyUnit(), value.getAmount() };
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnDurationMapper.java 43
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnInstantMapper.java 43
    public BigInteger toNonNullValue(Duration value) {
        return BigInteger.valueOf(value.getMillis()).multiply(BigInteger.valueOf(1000000L));
    }
}
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 42
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 47
    public LocalTime fromNonNullValue(Time value) {

        DateTime dateTime = new DateTime(value.getTime());
        LocalTime localTime = dateTime.toLocalTime();
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 38
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 43
    public LocalTime fromNonNullValue(Timestamp value) {

        DateTime dateTime = new DateTime(value.getTime());
        LocalTime localTime = dateTime.toLocalTime();
File Line
org\jadira\usertype\dateandtime\joda\integrator\UserTypeJodaTimeHibernateIntegrator.java 47
org\jadira\usertype\dateandtime\threeten\integrator\UserTypeThreeTenHibernateIntegrator.java 47
org\jadira\usertype\moneyandcurrency\joda\integrator\UserTypeJodaMoneyHibernateIntegrator.java 37
			Class.forName("org.joda.time.DateTime", false, ClassLoaderUtils.getClassLoader());
			found = true;
		} catch (ClassNotFoundException e) {
		}

		try {
			Class.forName("org.joda.time.DateTime");
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 42
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 55
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 53
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 47
        DateTimeZone zone = (DateTimeZone) convertedColumns[1];

        DateTime result;

        if (datePart == null) {
            result = null;
        } else {
            result = datePart.toDateTime(zone);
File Line
org\jadira\usertype\dateandtime\threeten\utils\ZoneHelper.java 35
org\jadira\usertype\dateandtime\threeten\utils\ZoneHelper.java 59
                    zone = ZoneOffset.of(id);
                }
            } catch (RuntimeException ex) {
                zone = null;
            }
            if (zone == null) {
                zone = ZoneOffset.ofTotalSeconds(java.util.TimeZone.getDefault().getOffset(System.currentTimeMillis()) / MILLIS_IN_SECOND);
File Line
org\jadira\usertype\dateandtime\threeten\utils\ZoneHelper.java 59
org\jadira\usertype\dateandtime\threeten\utils\ZoneHelper.java 65
                    zone = ZoneId.of(id);
                }
            } catch (RuntimeException ex) {
                zone = null;
            }
            if (zone == null) {
                zone = ZoneId.of(java.util.TimeZone.getDefault().getID());
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 35
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 35
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 37
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 37
	private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new IntegerColumnCurrencyUnitMapper(), new LongLongColumnMapper<Long>() };

    private static final String[] PROPERTY_NAMES = new String[]{ "currencyUnit", "amountMajor" };
File Line
org\jadira\usertype\corejava\collections\PersistentStringMapAsJson.java 53
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 135
			return OBJECT_WRITER.writeValueAsString(map);
		} catch (JsonProcessingException e) {
			throw new HibernateException("Cannot serialize JSON object: " + e.getMessage(), e);
		}
	}

	@SuppressWarnings("unchecked")
File Line
org\jadira\usertype\dateandtime\joda\integrator\UserTypeJodaTimeHibernateIntegrator.java 53
org\jadira\usertype\dateandtime\threeten\integrator\UserTypeThreeTenHibernateIntegrator.java 53
org\jadira\usertype\moneyandcurrency\joda\integrator\UserTypeJodaMoneyHibernateIntegrator.java 43
			Class.forName("org.joda.time.DateTime");
			found = true;
		} catch (ClassNotFoundException e) {
		}

		if (found) {

			userTypes = new UserType[] {
					new PersistentDateTime(),
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\BigDecimalColumnDurationMapper.java 27
org\jadira\usertype\dateandtime\threeten\columnmapper\BigIntegerColumnDurationMapper.java 27
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnDurationMapper.java 29
    private static final BigDecimal NANOS_IN_SECOND = BigDecimal.valueOf(1_000_000_000L);
    
    @Override
    public Duration fromNonNullString(String s) {
        return Duration.parse(s);
    }

    @Override
    public Duration fromNonNullValue(BigDecimal value) {
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\DateColumnMonthDayMapper.java 34
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnMonthDayMapper.java 35
	}
    
    @Override
    public MonthDay fromNonNullString(String s) {
        return MonthDay.parse(s);
    }

    @Override
    public MonthDay fromNonNullValue(Date value) {
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnLocalTimeMapper.java 33
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalTimeMapper.java 37
	}
    
    @Override
    public LocalTime fromNonNullString(String s) {
        return LocalTime.parse(s);
    }

    @Override
    public LocalTime fromNonNullValue(Time value) {
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnLocalTimeMapper.java 43
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalTimeMapper.java 47
        return value.toLocalTime();
    }

    @Override
    public String toNonNullString(LocalTime value) {
        return value.toString();
    }

    @Override
    public Time toNonNullValue(LocalTime value) {
File Line
org\jadira\usertype\dateandtime\threeten\utils\ZoneHelper.java 30
org\jadira\usertype\dateandtime\threeten\utils\ZoneHelper.java 54
        ZoneOffset zone = null;
        try {
            try {
                String id = System.getProperty("user.timezone");
                if (id != null) {
                    zone = ZoneOffset.of(id);
File Line
org\jadira\usertype\json\jackson\PersistentJsonObjectAsPostgreSQLJson.java 101
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 120
	            preparedStatement.setObject(index, jsonObject);
			} catch (JsonProcessingException e) {
				throw new HibernateException("Problem writing JSON String: " + e.getMessage(), e);
			}
		}
    }
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMajorMapper.java 23
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMinorMapper.java 23
public class LongColumnBigMoneyMajorMapper extends AbstractLongColumnMapper<BigMoney> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public BigMoney fromNonNullValue(Long value) {
File Line
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\LongColumnQuantityMapper.java 63
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\StringColumnQuantityMapper.java 45
		return value.toString();
	}
	
	@Override
    public void setUnit(Unit<Q> unit) {
        this.unit = unit;
    }
}
File Line
org\jadira\usertype\corejava\collections\PersistentStringMapAsJson.java 53
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 149
			return OBJECT_WRITER.writeValueAsString(map);
		} catch (JsonProcessingException e) {
			throw new HibernateException("Cannot serialize JSON object: " + e.getMessage(), e);
		}
	}
File Line
org\jadira\usertype\corejava\collections\PersistentStringMapAsPostgreSQLJson.java 36
org\jadira\usertype\corejava\enumerated\PersistentEnumAsPostgreSQLEnum.java 53
org\jadira\usertype\json\jackson\PersistentJsonObjectAsPostgreSQLJson.java 52
		Object identifier = rs.getObject(names[0]);

		if (rs.wasNull()) {
			return null;
		}
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnDurationMapper.java 34
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnInstantMapper.java 34
        return Duration.millis(value.divide(BigInteger.valueOf(1000000L)).longValue());
    }

    @Override
    public String toNonNullString(Duration value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnDurationMapper.java 34
org\jadira\usertype\dateandtime\threeten\columnmapper\BigDecimalColumnDurationMapper.java 45
org\jadira\usertype\dateandtime\threeten\columnmapper\BigIntegerColumnDurationMapper.java 36
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnDurationMapper.java 33
        return Duration.millis(value.divide(BigInteger.valueOf(1000000L)).longValue());
    }

    @Override
    public String toNonNullString(Duration value) {
        return value.toString();
    }

    @Override
    public BigInteger toNonNullValue(Duration value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnLocalTimeMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnLocalTimeMapper.java 33
        return LocalTime.fromMillisOfDay(value);
    }

    @Override
    public String toNonNullString(LocalTime value) {
        return value.toString();
    }

    @Override
    public Integer toNonNullValue(LocalTime value) {
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateMidnight.java 30
org\jadira\usertype\dateandtime\joda\PersistentDateMidnightAsString.java 30
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 34
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 37
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 35
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 39
org\jadira\usertype\dateandtime\threeten\PersistentOffsetDateTimeAsStringAndStringOffset.java 34
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsLongAndStringOffset.java 35
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsStringAndStringOffset.java 35
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsTimeAndStringOffset.java 35
org\jadira\usertype\dateandtime\threeten\PersistentZonedDateTimeAsStringAndStringZone.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 32
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 32
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 35
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 35
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 36
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 55
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new DateColumnLocalDateMapper(), new StringColumnDateTimeZoneWithOffsetMapper() };
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 56
org\jadira\usertype\dateandtime\threeten\PersistentZonedDateTimeAsStringAndStringZone.java 53
    protected Object[] toConvertedColumns(DateTime value) {
        return new Object[] { value.toLocalDateTime(), value.getZone() };
    }
    
    @Override
File Line
org\jadira\usertype\dateandtime\joda\PersistentInstantAsTimestamp.java 38
org\jadira\usertype\dateandtime\threeten\PersistentInstantAsTimestamp.java 38
public class PersistentInstantAsTimestamp extends AbstractVersionableUserType<Instant, Timestamp, TimestampColumnInstantMapper> implements ParameterizedType, IntegratorConfiguredType {

    private static final long serialVersionUID = -1402055314572075132L;
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\BigDecimalColumnDurationMapper.java 29
org\jadira\usertype\dateandtime\threeten\columnmapper\BigIntegerColumnDurationMapper.java 29
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnDurationMapper.java 26
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnDurationMapper.java 31
    @Override
    public Duration fromNonNullString(String s) {
        return Duration.parse(s);
    }

    @Override
    public Duration fromNonNullValue(BigDecimal value) {
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\BigIntegerColumnInstantMapper.java 31
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnInstantMapper.java 26
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnInstantMapper.java 35
    @Override
    public Instant fromNonNullString(String s) {
        return Instant.parse(s);
    }

    @Override
    public Instant fromNonNullValue(BigInteger value) {
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnLocalTimeMapper.java 26
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnLocalTimeMapper.java 26
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnLocalTimeMapper.java 35
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalTimeMapper.java 39
    @Override
    public LocalTime fromNonNullString(String s) {
        return LocalTime.parse(s);
    }

    @Override
    public LocalTime fromNonNullValue(Integer value) {
File Line
org\jadira\usertype\dateandtime\threeten\PersistentOffsetDateTimeAsStringAndStringOffset.java 56
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsLongAndStringOffset.java 57
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsStringAndStringOffset.java 57
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsTimeAndStringOffset.java 55
        return new Object[] { value.toLocalDateTime(), value.getOffset() };
    }

    @Override
    public String[] getPropertyNames() {
        return PROPERTY_NAMES;
    }
}
File Line
org\jadira\usertype\dateandtime\threeten\utils\ZoneHelper.java 35
org\jadira\usertype\dateandtime\threeten\utils\ZoneHelper.java 41
                    zone = ZoneOffset.of(id);
                }
            } catch (RuntimeException ex) {
                zone = null;
            }
            if (zone == null) {
                zone = ZoneOffset.ofTotalSeconds(java.util.TimeZone.getDefault().getOffset(System.currentTimeMillis()) / MILLIS_IN_SECOND);
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMajorMapper.java 23
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMinorMapper.java 23
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 28
public class LongColumnMoneyMajorMapper extends AbstractLongColumnMapper<Money> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public Money fromNonNullValue(Long val) {
File Line
org\jadira\usertype\dateandtime\joda\AbstractMultiColumnDateMidnight.java 44
org\jadira\usertype\dateandtime\joda\AbstractMultiColumnDateMidnight.java 50
            result = new DateMidnight(datePart.getYear(), datePart.getMonthOfYear(), datePart.getDayOfMonth(), offset.getStandardDateTimeZone());
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnDurationMapper.java 34
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnDurationMapper.java 32
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnDurationMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\BigDecimalColumnDurationMapper.java 45
org\jadira\usertype\dateandtime\threeten\columnmapper\BigIntegerColumnDurationMapper.java 36
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnDurationMapper.java 33
        return Duration.millis(value.divide(BigInteger.valueOf(1000000L)).longValue());
    }

    @Override
    public String toNonNullString(Duration value) {
        return value.toString();
    }

    @Override
    public BigInteger toNonNullValue(Duration value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnInstantMapper.java 27
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnInstantMapper.java 25
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnInstantMapper.java 30
    @Override
    public Instant fromNonNullString(String s) {
        return new Instant(s);
    }

    @Override
    public Instant fromNonNullValue(BigInteger value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnLocalTimeMapper.java 25
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnLocalTimeMapper.java 25
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 36
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 32
    @Override
    public LocalTime fromNonNullString(String s) {
        return new LocalTime(s);
    }

    @Override
    public LocalTime fromNonNullValue(Integer value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnTimeOfDayMapper.java 29
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnTimeOfDayMapper.java 31
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 41
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 37
    @Override
    public TimeOfDay fromNonNullString(String s) {
        return new TimeOfDay(s);
    }

    @Override
    public TimeOfDay fromNonNullValue(Integer value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 42
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 43
    public LocalTime fromNonNullValue(Time value) {

        DateTime dateTime = new DateTime(value.getTime());
        LocalTime localTime = dateTime.toLocalTime();
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 47
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 38
    public TimeOfDay fromNonNullValue(Time value) {

        DateTime dateTime = new DateTime(value.getTime());
        LocalTime localTime = dateTime.toLocalTime();
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnDateTimeMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetDateTimeMapper.java 34
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnZonedDateTimeMapper.java 33
public class TimestampColumnDateTimeMapper extends AbstractVersionableTimestampColumnMapper<DateTime> implements JavaZoneConfigured<DateTimeZone>, VersionableColumnMapper<DateTime, Timestamp>  {

    private static final long serialVersionUID = -7670411089210984705L;

    public static final DateTimeFormatter DATETIME_FORMATTER = new DateTimeFormatterBuilder().appendPattern("yyyy-MM-dd HH:mm:ss'.'").appendFractionOfSecond(0, 9).toFormatter();
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 34
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 37
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 35
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 39
org\jadira\usertype\dateandtime\threeten\PersistentOffsetDateTimeAsStringAndStringOffset.java 34
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new TimestampColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "datetime", "offset" };

    @Override
    protected DateTime fromConvertedColumns(Object[] convertedColumns) {
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 36
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 49
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 47
    private static final String[] PROPERTY_NAMES = new String[]{ "datetime", "offset" };

    @Override
    protected DateTime fromConvertedColumns(Object[] convertedColumns) {

        LocalDateTime datePart = (LocalDateTime) convertedColumns[0];
File Line
org\jadira\usertype\dateandtime\joda\PersistentLocalDate.java 35
org\jadira\usertype\dateandtime\threeten\PersistentLocalDate.java 35
public class PersistentLocalDate extends AbstractParameterizedTemporalUserType<LocalDate, Date, DateColumnLocalDateMapper> implements ParameterizedType, IntegratorConfiguredType {

	private static final long serialVersionUID = 2918856421618299370L;
File Line
org\jadira\usertype\dateandtime\joda\PersistentLocalDateTime.java 38
org\jadira\usertype\dateandtime\threeten\PersistentLocalDateTime.java 38
public class PersistentLocalDateTime extends AbstractParameterizedTemporalUserType<LocalDateTime, Timestamp, TimestampColumnLocalDateTimeMapper> implements ParameterizedType, IntegratorConfiguredType {

    private static final long serialVersionUID = 1651096099046282660L;
File Line
org\jadira\usertype\dateandtime\joda\PersistentLocalTime.java 38
org\jadira\usertype\dateandtime\threeten\PersistentLocalTime.java 38
public class PersistentLocalTime extends AbstractParameterizedTemporalUserType<LocalTime, Time, TimeColumnLocalTimeMapper> implements ParameterizedType, IntegratorConfiguredType {

	private static final long serialVersionUID = 3987595078868454461L;
File Line
org\jadira\usertype\dateandtime\joda\PersistentLocalTimeAsTimestamp.java 33
org\jadira\usertype\dateandtime\threeten\PersistentLocalTimeAsTimestamp.java 35
public class PersistentLocalTimeAsTimestamp extends AbstractParameterizedTemporalUserType<LocalTime, Timestamp, TimestampColumnLocalTimeMapper> implements ParameterizedType, IntegratorConfiguredType {

    private static final long serialVersionUID = 3612572629922632710L;
File Line
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\StringColumnUnitMapper.java 26
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 62
    	for (Unit<?> next : SYSTEM_OF_UNITS_SERVICE.getSystemOfUnits().getUnits()) {
    		unitsMap.put(next.getSymbol(), next);
        }
	}	
    
    @Override
    public Unit<?> fromNonNullValue(String s) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnDurationMapper.java 23
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnDurationMapper.java 21
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnDurationMapper.java 22
public class BigIntegerColumnDurationMapper extends AbstractBigIntegerColumnMapper<Duration> {

    private static final long serialVersionUID = 8408450977695192938L;

    @Override
    public Duration fromNonNullString(String s) {
        return new Duration(s);
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnDurationMapper.java 34
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnDurationMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\BigDecimalColumnDurationMapper.java 45
org\jadira\usertype\dateandtime\threeten\columnmapper\BigIntegerColumnDurationMapper.java 36
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnDurationMapper.java 33
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnDurationMapper.java 38
        return Duration.millis(value.divide(BigInteger.valueOf(1000000L)).longValue());
    }

    @Override
    public String toNonNullString(Duration value) {
        return value.toString();
    }

    @Override
    public BigInteger toNonNullValue(Duration value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnInstantMapper.java 23
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnInstantMapper.java 22
public class BigIntegerColumnInstantMapper extends AbstractVersionableBigIntegerColumnMapper<Instant> {

    private static final long serialVersionUID = 8408450977695192938L;

    @Override
    public Instant fromNonNullString(String s) {
        return new Instant(s);
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnInstantMapper.java 34
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnInstantMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\BigIntegerColumnInstantMapper.java 41
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnInstantMapper.java 33
        return new Instant(value.divide(BigInteger.valueOf(1000000L)).longValue());
    }

    @Override
    public String toNonNullString(Instant value) {
        return value.toString();
    }

    @Override
    public BigInteger toNonNullValue(Instant value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnLocalTimeMapper.java 32
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnLocalTimeMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnLocalTimeMapper.java 34
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnLocalTimeMapper.java 33
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnLocalTimeMapper.java 43
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalTimeMapper.java 47
        return LocalTime.fromMillisOfDay(value);
    }

    @Override
    public String toNonNullString(LocalTime value) {
        return value.toString();
    }

    @Override
    public Integer toNonNullValue(LocalTime value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnTimeOfDayMapper.java 36
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnTimeOfDayMapper.java 38
        return TimeOfDay.fromMillisOfDay(value);
    }

    @Override
    public String toNonNullString(TimeOfDay value) {
        return value.toString();
    }

    @Override
    public Integer toNonNullValue(TimeOfDay value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnDurationMapper.java 27
org\jadira\usertype\dateandtime\threeten\columnmapper\StringColumnDurationMapper.java 28
        return new Duration(s);
    }

    @Override
    public String toNonNullValue(Duration value) {
        return value.toString();
    }
}
File Line
org\jadira\usertype\dateandtime\joda\PersistentDurationAsNanosBigInteger.java 26
org\jadira\usertype\dateandtime\threeten\PersistentDurationAsNanosBigInteger.java 27
public class PersistentDurationAsNanosBigInteger extends AbstractSingleColumnUserType<Duration, Long, LongColumnDurationMapper> {

    private static final long serialVersionUID = -2339112412473925328L;
}
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\DateColumnMonthDayMapper.java 44
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnMonthDayMapper.java 46
    	return MonthDay.parse(value.toString(), LOCAL_DATE_FORMATTER);
    }

    @Override
    public String toNonNullString(MonthDay value) {
        return value.toString();
    }

    @Override
    public Date toNonNullValue(MonthDay value) {
File Line
org\jadira\usertype\dateandtime\threeten\PersistentOffsetDateTimeAsStringAndStringOffset.java 45
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsLongAndStringOffset.java 46
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsStringAndStringOffset.java 46
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsTimeAndStringOffset.java 46
org\jadira\usertype\dateandtime\threeten\PersistentZonedDateTimeAsStringAndStringZone.java 45
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyAmountAndCurrency.java 38
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 37
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 39
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 38
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 37
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 39
    }


    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    protected Object[] toConvertedColumns(OffsetDateTime value) {
File Line
org\jadira\usertype\dateandtime\threeten\utils\ZoneHelper.java 35
org\jadira\usertype\dateandtime\threeten\utils\ZoneHelper.java 65
                    zone = ZoneOffset.of(id);
                }
            } catch (RuntimeException ex) {
                zone = null;
            }
            if (zone == null) {
                zone = ZoneOffset.ofTotalSeconds(java.util.TimeZone.getDefault().getOffset(System.currentTimeMillis()) / MILLIS_IN_SECOND);
File Line
org\jadira\usertype\dateandtime\threeten\utils\ZoneHelper.java 41
org\jadira\usertype\dateandtime\threeten\utils\ZoneHelper.java 59
                zone = ZoneOffset.ofTotalSeconds(java.util.TimeZone.getDefault().getOffset(System.currentTimeMillis()) / MILLIS_IN_SECOND);
            }
        } catch (RuntimeException ex) {
            zone = null;
        }
        if (zone == null) {
            zone = ZoneOffset.UTC;
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnBigMoneyMapper.java 25
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMajorMapper.java 23
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMinorMapper.java 23
public class BigDecimalColumnBigMoneyMapper extends AbstractBigDecimalColumnMapper<BigMoney> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public BigMoney fromNonNullValue(BigDecimal val) {
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnMoneyMapper.java 25
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMajorMapper.java 23
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMinorMapper.java 23
public class BigDecimalColumnMoneyMapper extends AbstractBigDecimalColumnMapper<Money> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public Money fromNonNullValue(BigDecimal val) {
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\StringColumnCurrencyUnitMapper.java 27
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\StringColumnCurrencyUnitMapper.java 29
        return CurrencyUnit.of(s);
    }

    @Override
    public String toNonNullValue(CurrencyUnit value) {
        return value.getCurrencyCode();
    }
}
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnFastMoneyMapper.java 28
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 27
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 28
public class BigDecimalColumnFastMoneyMapper extends AbstractBigDecimalColumnMapper<MonetaryAmount> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public FastMoney fromNonNullValue(BigDecimal val) {
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 28
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 27
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 28
public class BigDecimalColumnMoneyMapper extends AbstractBigDecimalColumnMapper<MonetaryAmount> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public Money fromNonNullValue(BigDecimal val) {
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 35
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 36
    public FastMoney fromNonNullValue(Long val) {
    	
    	BigDecimal minorVal = BigDecimal.valueOf(val, currencyUnit.getDefaultFractionDigits());
    	return FastMoney.of(minorVal, currencyUnit);
File Line
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantity.java 42
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 45
public class  PersistentQuantity<Q extends Quantity<Q>> extends AbstractParameterizedUserType<Q, String, StringColumnQuantityMapper<Q>> implements ValidTypesConfigured<Unit<?>> {

	private static final long serialVersionUID = -2015829087239519037L;
    
    private static final Map<String, Unit<?>> BASE_UNITS_MAP = new HashMap<String, Unit<?>>();
File Line
org\jadira\usertype\corejava\collections\PersistentStringMapAsPostgreSQLJson.java 60
org\jadira\usertype\json\jackson\PersistentJsonObjectAsPostgreSQLJson.java 81
			SharedSessionContractImplementor session) throws SQLException {

		if (value == null) {
			preparedStatement.setNull(index, Types.NULL);
		} else {
File Line
org\jadira\usertype\corejava\enumerated\PersistentEnum.java 32
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 62
	@SuppressWarnings({ "unchecked" })
	public void setParameterValues(Properties parameters) {

		if (parameters.containsKey("enumClass")) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnInstantMapper.java 35
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnInstantMapper.java 33
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnInstantMapper.java 40
org\jadira\usertype\dateandtime\threeten\columnmapper\BigIntegerColumnInstantMapper.java 42
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnInstantMapper.java 34
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnInstantMapper.java 47
    }

    @Override
    public String toNonNullString(Instant value) {
        return value.toString();
    }

    @Override
    public BigInteger toNonNullValue(Instant value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnLocalTimeMapper.java 33
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnLocalTimeMapper.java 33
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 48
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 44
org\jadira\usertype\dateandtime\threeten\columnmapper\IntegerColumnLocalTimeMapper.java 35
org\jadira\usertype\dateandtime\threeten\columnmapper\LongColumnLocalTimeMapper.java 34
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnLocalTimeMapper.java 44
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalTimeMapper.java 48
    }

    @Override
    public String toNonNullString(LocalTime value) {
        return value.toString();
    }

    @Override
    public Integer toNonNullValue(LocalTime value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnTimeOfDayMapper.java 37
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnTimeOfDayMapper.java 39
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 54
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 50
    }

    @Override
    public String toNonNullString(TimeOfDay value) {
        return value.toString();
    }

    @Override
    public Integer toNonNullValue(TimeOfDay value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnInstantMapper.java 24
org\jadira\usertype\dateandtime\threeten\columnmapper\StringColumnInstantMapper.java 25
public class StringColumnInstantMapper extends AbstractStringColumnMapper<Instant> {

    private static final long serialVersionUID = -6885561256539185520L;

    public static final DateTimeFormatter LOCAL_DATETIME_FORMATTER = new DateTimeFormatterBuilder()
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 65
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 69
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 73
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 77
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 81
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 85
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 89
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 93
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 97
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 101
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 105
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 109
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 113
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 117
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 121
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnPeriodMapper.java 125
			current = s.substring(PeriodType.standard().getName().length());
			
		} else if (current.startsWith(PeriodType.yearMonthDayTime().getName())) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnDateTimeMapper.java 36
org\jadira\usertype\dateandtime\joda\util\Formatter.java 35
    public static final DateTimeFormatter DATETIME_FORMATTER = new DateTimeFormatterBuilder().appendPattern("yyyy-MM-dd HH:mm:ss'.'").appendFractionOfSecond(0, 9).toFormatter();
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateMidnight.java 30
org\jadira\usertype\dateandtime\joda\PersistentDateMidnightAsString.java 30
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 37
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 35
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 39
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new DateColumnLocalDateMapper(), new StringColumnDateTimeZoneWithOffsetMapper() };

    private static final String[] PROPERTY_NAMES = new String[] { "date", "offset" };
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateMidnight.java 32
org\jadira\usertype\dateandtime\joda\PersistentDateMidnightAsString.java 32
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 58
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 39
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 37
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 70
org\jadira\usertype\dateandtime\threeten\PersistentOffsetDateTimeAsStringAndStringOffset.java 45
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsLongAndStringOffset.java 46
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsStringAndStringOffset.java 46
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsTimeAndStringOffset.java 46
org\jadira\usertype\dateandtime\threeten\PersistentZonedDateTimeAsStringAndStringZone.java 45
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMinorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrencyAsInteger.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.java 34
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrencyAsInteger.java 34
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyAmountAndCurrency.java 38
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 37
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 39
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyAmountAndCurrency.java 38
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 37
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 39
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 145
    private static final String[] PROPERTY_NAMES = new String[] { "date", "offset" };

    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
File Line
org\jadira\usertype\dateandtime\joda\PersistentDurationAsMillisLong.java 26
org\jadira\usertype\dateandtime\threeten\PersistentDurationAsMillisLong.java 27
public class PersistentDurationAsMillisLong extends AbstractSingleColumnUserType<Duration, Long, LongColumnDurationMapper> {

    private static final long serialVersionUID = 5223443949599090296L;

}
File Line
org\jadira\usertype\dateandtime\joda\PersistentDurationAsSecondsInteger.java 26
org\jadira\usertype\dateandtime\threeten\PersistentDurationAsSecondsInteger.java 27
public class PersistentDurationAsSecondsInteger extends AbstractSingleColumnUserType<Duration, Integer, IntegerColumnDurationMapper> {

    private static final long serialVersionUID = 5954125836252428928L;
}
File Line
org\jadira\usertype\dateandtime\joda\PersistentMonthDayAsString.java 25
org\jadira\usertype\dateandtime\threeten\PersistentMonthDayAsString.java 26
public class PersistentMonthDayAsString extends AbstractSingleColumnUserType<MonthDay, String, StringColumnMonthDayMapper> {

    private static final long serialVersionUID = 5686457807800307458L;
}
File Line
org\jadira\usertype\dateandtime\joda\PersistentYearMonthAsString.java 25
org\jadira\usertype\dateandtime\threeten\PersistentYearMonthAsString.java 26
public class PersistentYearMonthAsString extends AbstractSingleColumnUserType<YearMonth, String, StringColumnYearMonthMapper> {

    private static final long serialVersionUID = 2203287045641899191L;
}
File Line
org\jadira\usertype\dateandtime\joda\util\Formatter.java 26
org\jadira\usertype\dateandtime\joda\util\Formatter.java 29
org\jadira\usertype\dateandtime\joda\util\Formatter.java 31
org\jadira\usertype\dateandtime\joda\util\Formatter.java 32
    public static final DateTimeFormatter LOCAL_TIME_FORMATTER = new DateTimeFormatterBuilder().appendHourOfDay(2).appendLiteral(':').appendMinuteOfHour(2).appendLiteral(':').appendSecondOfMinute(2)
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimeColumnOffsetTimeMapper.java 52
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetTimeMapper.java 71
    }

    @Override
    public String toNonNullString(OffsetTime value) {
        return value.toString();
    }

    @Override
    public Time toNonNullValue(OffsetTime value) {
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalTimeMapper.java 32
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetTimeMapper.java 41
    public static final DateTimeFormatter LOCAL_DATETIME_PRINTER = new DateTimeFormatterBuilder().appendPattern("0001-01-01 HH:mm:ss").appendFraction(ChronoField.NANO_OF_SECOND, 0, 9, true).toFormatter();
File Line
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnLocalTimeMapper.java 33
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetDateTimeMapper.java 38
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnOffsetTimeMapper.java 42
org\jadira\usertype\dateandtime\threeten\columnmapper\TimestampColumnZonedDateTimeMapper.java 37
    public static final DateTimeFormatter LOCAL_DATETIME_PARSER = new DateTimeFormatterBuilder().appendPattern("yyyy-MM-dd HH:mm:ss").appendFraction(ChronoField.NANO_OF_SECOND, 0, 9, true).toFormatter();
File Line
org\jadira\usertype\dateandtime\threeten\PersistentOffsetDateTimeAsStringAndStringOffset.java 34
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsLongAndStringOffset.java 35
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsStringAndStringOffset.java 35
org\jadira\usertype\dateandtime\threeten\PersistentOffsetTimeAsTimeAndStringOffset.java 35
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnLocalDateTimeMapper(), new StringColumnZoneOffsetMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "datetime", "offset" };
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnBigMoneyMapper.java 38
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnMoneyMapper.java 38
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMajorMapper.java 40
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnBigMoneyMinorMapper.java 36
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMajorMapper.java 36
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMinorMapper.java 36
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnFastMoneyMapper.java 41
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 41
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 40
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 43
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 40
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 43
    	if (!currencyUnit.equals(value.getCurrencyUnit())) {
    		throw new IllegalStateException("Expected currency " + currencyUnit.getCurrencyCode() + " but was " + value.getCurrencyUnit());
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentCurrencyUnit.java 25
org\jadira\usertype\moneyandcurrency\moneta\PersistentCurrencyUnit.java 26
public class PersistentCurrencyUnit extends AbstractSingleColumnUserType<CurrencyUnit, String, StringColumnCurrencyUnitMapper> {

	private static final long serialVersionUID = 5653012946771904484L;
}
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnFastMoneyMapper.java 28
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 28
public class BigDecimalColumnFastMoneyMapper extends AbstractBigDecimalColumnMapper<MonetaryAmount> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public FastMoney fromNonNullValue(BigDecimal val) {
File Line
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMajorMapper.java 27
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnFastMoneyMinorMapper.java 28
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 27
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 28
public class LongColumnFastMoneyMajorMapper extends AbstractLongColumnMapper<MonetaryAmount> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public FastMoney fromNonNullValue(Long val) {
File Line
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\LongColumnQuantityMapper.java 42
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\LongColumnQuantityMapper.java 52
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\LongColumnQuantityMapper.java 60
    	if (!unit.getClass().isAssignableFrom(value.getUnit().getClass())) {
    		throw new IllegalStateException("Expected unit " + unit + " but was " + value.getUnit());
File Line
org\jadira\usertype\bindings\PersistentBoundClass.java 103
org\jadira\usertype\corejava\collections\PersistentStringMapAsPostgreSQLJson.java 33
org\jadira\usertype\corejava\enumerated\PersistentEnumAsPostgreSQLEnum.java 47
org\jadira\usertype\json\jackson\PersistentJsonObjectAsPostgreSQLJson.java 50
org\jadira\usertype\json\jackson\PersistentJsonObjectAsString.java 89
	public Object doNullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner) throws HibernateException, SQLException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnLocalDateMapper.java 30
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnYearMonthDayMapper.java 34
org\jadira\usertype\dateandtime\threeten\columnmapper\DateColumnLocalDateMapper.java 29
org\jadira\usertype\dateandtime\threeten\columnmapper\DateColumnMonthDayMapper.java 29
    public static final DateTimeFormatter LOCAL_DATE_FORMATTER = new DateTimeFormatterBuilder().appendPattern("yyyy-MM-dd").toFormatter();

    public DateColumnLocalDateMapper() {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnDateTimeMapper.java 34
org\jadira\usertype\dateandtime\joda\columnmapper\StringColumnInstantMapper.java 28
    private static final DateTimeFormatter DATE_TIME_PARSER = new DateTimeFormatterBuilder()
        .append(ISODateTimeFormat.date())
        .appendLiteral('T')
        .append(ISODateTimeFormat.hourMinuteSecondFraction())
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateMidnight.java 37
org\jadira\usertype\dateandtime\joda\PersistentDateMidnightAsString.java 37
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 63
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 75
org\jadira\usertype\dateandtime\joda\PersistentInterval.java 63
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantityAndUnit.java 150
    }

    @Override
    public String[] getPropertyNames() {
        return ArrayUtils.copyOf(PROPERTY_NAMES);
    }
}
File Line
org\jadira\usertype\dateandtime\joda\PersistentInstantAsNanosBigInteger.java 30
org\jadira\usertype\dateandtime\threeten\PersistentInstantAsNanosBigInteger.java 30
public class PersistentInstantAsNanosBigInteger extends AbstractVersionableUserType<Instant, BigInteger, BigIntegerColumnInstantMapper> {

    private static final long serialVersionUID = -1319869221068626293L;
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\BigDecimalColumnMoneyMapper.java 25
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMajorMapper.java 27
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\LongColumnMoneyMinorMapper.java 28
public class BigDecimalColumnMoneyMapper extends AbstractBigDecimalColumnMapper<Money> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public Money fromNonNullValue(BigDecimal val) {
File Line
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMajorMapper.java 23
org\jadira\usertype\moneyandcurrency\joda\columnmapper\LongColumnMoneyMinorMapper.java 23
org\jadira\usertype\moneyandcurrency\moneta\columnmapper\BigDecimalColumnMoneyMapper.java 28
public class LongColumnMoneyMajorMapper extends AbstractLongColumnMapper<Money> implements CurrencyUnitConfigured {

    private static final long serialVersionUID = 4205713919952452881L;
	
    private CurrencyUnit currencyUnit;

    @Override
    public Money fromNonNullValue(Long val) {
File Line
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMajorAmountAndCurrency.java 57
org\jadira\usertype\moneyandcurrency\moneta\PersistentFastMoneyMinorAmountAndCurrency.java 63
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMajorAmountAndCurrency.java 57
org\jadira\usertype\moneyandcurrency\moneta\PersistentMoneyMinorAmountAndCurrency.java 63
        return new Object[] { value.getCurrency(), MonetaryQueries.extractMajorPart().queryFrom(value).longValue() };
    }
    
    @Override
	public String[] getPropertyNames() {
		return PROPERTY_NAMES;
	}
}
File Line
org\jadira\usertype\unitsofmeasurement\indriya\columnmapper\StringColumnUnitMapper.java 25
org\jadira\usertype\unitsofmeasurement\indriya\PersistentQuantity.java 50
    public StringColumnUnitMapper() {
    	for (Unit<?> next : SYSTEM_OF_UNITS_SERVICE.getSystemOfUnits().getUnits()) {