CPD Results

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

Duplications

File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 38
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 36
    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);
    }
    
    private DateTimeZone databaseZone = DateTimeZone.UTC;

    @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(databaseZone == null ? offset.getStandardDateTimeZone() : databaseZone);
            
            if (databaseZone != null) {
            	result = result.withZone(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) {

    	final DateTime myValue;
    	if (databaseZone == null) {
    		myValue = value;
    	} else {
    		myValue = value.withZone(databaseZone);
    	}
        return new Object[] { myValue.toLocalDateTime(), new DateTimeZoneWithOffset(value.getZone(), value.getZone().isFixed() ? null : DateTimeZone.forOffsetMillis(value.getZone().getOffset(value))) };
    }
    
	public void setDatabaseZone(DateTimeZone databaseZone) {
		this.databaseZone = databaseZone;
	}

	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
}
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 54
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 52
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 46
    @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(databaseZone == null ? offset.getStandardDateTimeZone() : databaseZone);
            
            if (databaseZone != null) {
            	result = result.withZone(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) {

    	final DateTime myValue;
    	if (databaseZone == null) {
    		myValue = value;
    	} else {
    		myValue = value.withZone(databaseZone);
    	}
        return new Object[] { myValue.toLocalDateTime(), new DateTimeZoneWithOffset(value.getZone(), value.getZone().isFixed() ? null : DateTimeZone.forOffsetMillis(value.getZone().getOffset(value))) };
    }
    
	public void setDatabaseZone(DateTimeZone databaseZone) {
		this.databaseZone = databaseZone;
	}

	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
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\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\joda\columnmapper\TimeColumnLocalTimeMapper.java 66
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 71
    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;
    }

	public void setDatabaseZone(DateTimeZone databaseZone) {
        this.databaseZone = databaseZone;
    }

	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
	
    @Override
    public final DstSafeTimeType getHibernateType() {
    	return databaseZone == null ? DstSafeTimeType.INSTANCE : new DstSafeTimeType(Calendar.getInstance(databaseZone.toTimeZone()));
    }
}
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 62
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 67
    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;
    }

	public void setDatabaseZone(DateTimeZone databaseZone) {
        this.databaseZone = databaseZone;
    }

	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
		
    @Override
    public final DstSafeTimestampType getHibernateType() {
    	return databaseZone == null ? DstSafeTimestampType.INSTANCE : new DstSafeTimestampType(Calendar.getInstance(databaseZone.toTimeZone()));
    }
}
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnLocalDateMapper.java 76
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnYearMonthDayMapper.java 80
    	DateTime zonedValue = value.toDateTime(value.toDateTimeAtStartOfDay());

        final Date date = new Date(zonedValue.getMillis());
        return date;
    }

    public void setDatabaseZone(DateTimeZone databaseZone) {
        this.databaseZone = databaseZone;
    }

	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
	
    @Override
    public final DstSafeDateType getHibernateType() {
    	return databaseZone == null ? DstSafeDateType.INSTANCE : new DstSafeDateType(Calendar.getInstance(databaseZone.toTimeZone()));
    }
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMajorAmountAndCurrency.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" };
	
	@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
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\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 56
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 52
    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\dateandtime\joda\columnmapper\TimestampColumnLocalDateTimeMapper.java 64
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 66
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 71
    	DateTime zonedValue = value.toDateTime(value.toDateTime());

        final Timestamp timestamp = new Timestamp(zonedValue.getMillis());
        return timestamp;
    }

	public void setDatabaseZone(DateTimeZone databaseZone) {
        this.databaseZone = databaseZone;
    }

	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
	
    @Override
    public final DstSafeTimestampType getHibernateType() {
    	return databaseZone == null ? DstSafeTimestampType.INSTANCE : new DstSafeTimestampType(Calendar.getInstance(databaseZone.toTimeZone()));
    }
}
File Line
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrency.java 30
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyAmountAndCurrency.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() };

    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\dateandtime\joda\columnmapper\TimestampColumnInstantMapper.java 60
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalDateTimeMapper.java 66
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 68
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 73
        final Timestamp timestamp = new Timestamp(value.getMillis());
        return timestamp;
    }

    public void setDatabaseZone(DateTimeZone databaseZone) {
        this.databaseZone = databaseZone;
    }
    
	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
		
    @Override
    public final DstSafeTimestampType getHibernateType() {
    	return databaseZone == null ? DstSafeTimestampType.INSTANCE : new DstSafeTimestampType(Calendar.getInstance(databaseZone.toTimeZone()));
    }
}
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 71
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 82
        return new Object[] { myValue.toLocalDateTime(), value.getZone() };
    }
    
	public void setDatabaseZone(DateTimeZone databaseZone) {
		this.databaseZone = databaseZone;
	}

	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
    
    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    public String[] getPropertyNames() {
        return ArrayUtils.copyOf(PROPERTY_NAMES);
    }
}
File Line
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnDateMapper.java 157
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnTimestampMapper.java 98
        final Timestamp timestamp = new Timestamp(value.getTime());
        return timestamp;
    }

    public void setDatabaseZone(TimeZone databaseZone) {
        this.databaseZone = databaseZone;
    }
        
	public TimeZone parseZone(String zoneString) {
		return TimeZone.getTimeZone(zoneString);
	}
	
    @Override
    public final DstSafeTimestampType getHibernateType() {
    	return databaseZone == null ? DstSafeTimestampType.INSTANCE : new DstSafeTimestampType(Calendar.getInstance(databaseZone));
    }
}
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\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\joda\PersistentBigMoneyMajorAmountAndCurrency.java 28
org\jadira\usertype\moneyandcurrency\joda\PersistentMoneyMinorAmountAndCurrency.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\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
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\dateandtime\legacyjdk\columnmapper\TimestampColumnDateMapper.java 143
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnTimestampMapper.java 83
        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\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\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 29
    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 66
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.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());
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 71
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 67
    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\PersistentDateTimeAndZone.java 57
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 76
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 74
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 68
        }

        return result;
    }

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

    	final DateTime myValue;
    	if (databaseZone == null) {
    		myValue = value;
    	} else {
    		myValue = value.withZone(databaseZone);
    	}
        return new Object[] { myValue.toLocalDateTime(), value.getZone() };
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();
	}
	
    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();
	}
	
    public void setCurrencyUnit(CurrencyUnit currencyUnit) {
        this.currencyUnit = currencyUnit;
    }
}
File Line
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnDateMapper.java 133
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnTimestampMapper.java 73
        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 31
org\jadira\usertype\dateandtime\legacyjdk\PersistentTimestamp.java 29
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\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\TimestampColumnDateTimeMapper.java 87
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnInstantMapper.java 66
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalDateTimeMapper.java 72
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 74
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 79
    }
    
	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
	
    @Override
    public final DstSafeTimestampType getHibernateType() {
    	return databaseZone == null ? DstSafeTimestampType.INSTANCE : new DstSafeTimestampType(Calendar.getInstance(databaseZone.toTimeZone()));
    }
}
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 66
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 67
    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 71
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 62
    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 38
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 40
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new TimestampColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneWithOffsetMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "datetime", "offset" };
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
	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
	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\dateandtime\joda\PersistentDateTimeAndZone.java 31
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 34
public class PersistentDateTimeAndZone extends AbstractParameterizedMultiColumnUserType<DateTime> implements DatabaseZoneConfigured<DateTimeZone> {

    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\columnmapper\TimeColumnLocalTimeMapper.java 52
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 48
    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\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
	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\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\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\dateandtime\joda\AbstractMultiColumnDateMidnight.java 58
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 90
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 88
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 82
    	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\legacyjdk\columnmapper\TimestampColumnDateMapper.java 39
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnTimestampMapper.java 35
    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
    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\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
    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\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\columnmapper\TimeColumnLocalTimeMapper.java 31
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 35
public class TimeColumnLocalTimeMapper extends AbstractTimeColumnMapper<LocalTime> implements DatabaseZoneConfigured<DateTimeZone> {

    private static final long serialVersionUID = 6734385103313158326L;

    private DateTimeZone databaseZone = null;

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

    public TimeColumnLocalTimeMapper() {
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 40
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 38
    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\dateandtime\joda\PersistentDateMidnight.java 32
org\jadira\usertype\dateandtime\joda\PersistentDateMidnightAsString.java 32
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 80
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 91
    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\dateandtime\joda\PersistentDateTimeAndZone.java 80
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 40
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 38
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 91
	}
    
    @Override
    protected ColumnMapper<?, ?>[] getColumnMappers() {
        return COLUMN_MAPPERS;
    }

    @Override
    public String[] getPropertyNames() {
        return ArrayUtils.copyOf(PROPERTY_NAMES);
    }
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\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\dateandtime\joda\AbstractMultiColumnDateMidnight.java 47
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 73
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 71
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 65
        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 80
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnYearMonthDayMapper.java 84
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 74
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 79
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnInstantMapper.java 62
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalDateTimeMapper.java 68
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 70
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 75
    }

    public void setDatabaseZone(DateTimeZone databaseZone) {
        this.databaseZone = databaseZone;
    }

	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
	
    @Override
    public final DstSafeDateType getHibernateType() {
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\columnmapper\TimeColumnLocalTimeMapper.java 42
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 38
    public TimeColumnLocalTimeMapper(DateTimeZone databaseZone) {
    	this.databaseZone = databaseZone;
    }

    @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 46
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 42
    public TimeColumnTimeOfDayMapper(DateTimeZone databaseZone) {
    	this.databaseZone = databaseZone;
    }

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

    @Override
    public TimeOfDay fromNonNullValue(Time value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnDateTimeMapper.java 75
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnInstantMapper.java 58
    public Timestamp toNonNullValue(DateTime value) {
    	
        final Timestamp timestamp = new Timestamp(value.getMillis());
        return timestamp;
    }

	public void setDatabaseZone(DateTimeZone databaseZone) {
        this.databaseZone = databaseZone;
    }

    public void setJavaZone(DateTimeZone javaZone) {
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\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
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\DateColumnLocalDateMapper.java 80
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnYearMonthDayMapper.java 84
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 74
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 79
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnInstantMapper.java 62
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalDateTimeMapper.java 68
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 70
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 75
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 72
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 83
    }

    public void setDatabaseZone(DateTimeZone databaseZone) {
        this.databaseZone = databaseZone;
    }

	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
	
    @Override
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 71
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 90
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 88
        return new Object[] { myValue.toLocalDateTime(), value.getZone() };
    }
    
	public void setDatabaseZone(DateTimeZone databaseZone) {
		this.databaseZone = databaseZone;
	}

	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
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
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\dateandtime\joda\PersistentDateMidnight.java 26
org\jadira\usertype\dateandtime\joda\PersistentDateMidnightAsString.java 26
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 31
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 34
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\joda\columnmapper\DateColumnLocalDateMapper.java 80
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnYearMonthDayMapper.java 84
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 74
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 79
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnInstantMapper.java 62
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalDateTimeMapper.java 68
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 70
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 75
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 91
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 89
    }

    public void setDatabaseZone(DateTimeZone databaseZone) {
        this.databaseZone = databaseZone;
    }

	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
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\dateandtime\joda\columnmapper\TimestampColumnDateTimeMapper.java 90
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnInstantMapper.java 69
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalDateTimeMapper.java 75
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 77
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 82
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnDateMapper.java 166
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnTimestampMapper.java 108
		return DateTimeZone.forID(zoneString);
	}
	
    @Override
    public final DstSafeTimestampType getHibernateType() {
    	return databaseZone == null ? DstSafeTimestampType.INSTANCE : new DstSafeTimestampType(Calendar.getInstance(databaseZone.toTimeZone()));
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTime.java 39
org\jadira\usertype\dateandtime\legacyjdk\PersistentDate.java 31
org\jadira\usertype\dateandtime\legacyjdk\PersistentTimestamp.java 29
public class PersistentDateTime extends AbstractVersionableUserType<DateTime, Timestamp, TimestampColumnDateTimeMapper> implements ParameterizedType, IntegratorConfiguredType {

    private static final long serialVersionUID = -6656619988954550389L;

    @Override
    public int compare(Object o1, Object o2) {
        return ((DateTime) o1).compareTo((DateTime) o2);
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 37
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 50
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 48
    private static final String[] PROPERTY_NAMES = new String[]{ "datetime", "offset" };

    private DateTimeZone databaseZone = DateTimeZone.UTC;

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

        LocalDateTime datePart = (LocalDateTime) convertedColumns[0];
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 45
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 58
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 56
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 50
        DateTimeZone zone = (DateTimeZone) convertedColumns[1];

        DateTime result;

        if (datePart == null) {
            result = null;
        } else {
            result = datePart.toDateTime(databaseZone == null ? zone : databaseZone);
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 38
    @Override
    public int compare(Object o1, Object o2) {
        return ((Instant) o1).compareTo((Instant) o2);
    }
}
File Line
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnTimestampMapper.java 60
org\jadira\usertype\dateandtime\legacyjdk\columnmapper\TimestampColumnTimestampMapper.java 95
    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\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\dateandtime\joda\PersistentDateTimeAndZone.java 35
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 40
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new TimestampColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneMapper() };
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
	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\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
    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
    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
    protected BigMoney fromConvertedColumns(Object[] convertedColumns) {

        CurrencyUnit currencyUnitPart = (CurrencyUnit) convertedColumns[0];
        Long amountMinorPart = (Long) convertedColumns[1];
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\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 52
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 56
    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 48
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 52
    public LocalTime fromNonNullValue(Timestamp value) {

        DateTime dateTime = new DateTime(value.getTime());
        LocalTime localTime = dateTime.toLocalTime();
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
	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
	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\dateandtime\joda\columnmapper\DateColumnLocalDateMapper.java 34
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnYearMonthDayMapper.java 38
    public static final DateTimeFormatter LOCAL_DATE_FORMATTER = new DateTimeFormatterBuilder().appendPattern("yyyy-MM-dd").toFormatter();

    /* Explicitly set this to null for preferred default behaviour. See https://jadira.atlassian.net/browse/JDF-26 */
    private DateTimeZone databaseZone = null;

    public DateColumnLocalDateMapper() {
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 36
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 40
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new StringColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneWithOffsetMapper() };

    private static final String[] PROPERTY_NAMES = new String[]{ "datetime", "offset" };
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
	public String toNonNullString(BigMoney value) {
		return value.toString();
	}
	
    public void setCurrencyUnit(CurrencyUnit currencyUnit) {
        this.currencyUnit = currencyUnit;
    }
}
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\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\PersistentDateMidnight.java 30
org\jadira\usertype\dateandtime\joda\PersistentDateMidnightAsString.java 30
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 35
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 38
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 36
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 40
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
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new DateColumnLocalDateMapper(), new StringColumnDateTimeZoneWithOffsetMapper() };
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 35
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 40
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new TimestampColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneMapper() };

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

    private DateTimeZone databaseZone = DateTimeZone.UTC;
File Line
org\jadira\usertype\dateandtime\joda\AbstractMultiColumnDateMidnight.java 43
org\jadira\usertype\dateandtime\joda\AbstractMultiColumnDateMidnight.java 49
            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
        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 40
    @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 46
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 42
    @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 28
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnTimeOfDayMapper.java 30
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 50
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 46
    @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 52
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 52
    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 56
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 48
    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 77
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalDateTimeMapper.java 66
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 68
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 73
        final Timestamp timestamp = new Timestamp(value.getMillis());
        return timestamp;
    }

	public void setDatabaseZone(DateTimeZone databaseZone) {
        this.databaseZone = databaseZone;
    }

    public void setJavaZone(DateTimeZone javaZone) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\BigIntegerColumnInstantMapper.java 34
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnInstantMapper.java 32
        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\DateColumnLocalDateMapper.java 70
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnYearMonthDayMapper.java 74
    public Date toNonNullValue(LocalDate value) {

        if (databaseZone==null) {
        	return Date.valueOf(LOCAL_DATE_FORMATTER.print((LocalDate) value));
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\IntegerColumnLocalTimeMapper.java 32
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnLocalTimeMapper.java 32
        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 35
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnTimeOfDayMapper.java 37
        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\PersistentDateTimeAndZone.java 41
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 46
    @Override
    protected DateTime fromConvertedColumns(Object[] convertedColumns) {

        LocalDateTime datePart = (LocalDateTime) convertedColumns[0];
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\PersistentBigMoneyAmountAndCurrency.java 36
org\jadira\usertype\moneyandcurrency\joda\PersistentBigMoneyAmountAndCurrencyAsInteger.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
    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\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
    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\dateandtime\joda\columnmapper\BigIntegerColumnInstantMapper.java 35
org\jadira\usertype\dateandtime\joda\columnmapper\LongColumnInstantMapper.java 33
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnInstantMapper.java 50
    }

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

    @Override
    public BigInteger toNonNullValue(Instant value) {
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnLocalDateMapper.java 84
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnYearMonthDayMapper.java 88
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnLocalTimeMapper.java 78
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 83
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnDateTimeMapper.java 87
    }

	public DateTimeZone parseZone(String zoneString) {
		return DateTimeZone.forID(zoneString);
	}
	
    @Override
    public final DstSafeDateType getHibernateType() {
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 58
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 54
    }

    @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
org\jadira\usertype\dateandtime\joda\columnmapper\TimeColumnTimeOfDayMapper.java 63
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 59
    }

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

    @Override
    public Integer toNonNullValue(TimeOfDay value) {
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 39
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 38
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 36
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 40
    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 80
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 40
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 38
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 91
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
    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\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\joda\columnmapper\DateColumnLocalDateMapper.java 55
org\jadira\usertype\dateandtime\joda\columnmapper\DateColumnYearMonthDayMapper.java 59
    		return new LocalDate(value.toString());
    	}

        DateTime dateTime = new DateTime(value.getTime());
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_FORMATTER = new DateTimeFormatterBuilder()
        .append(ISODateTimeFormat.date())
        .appendLiteral('T')
        .append(ISODateTimeFormat.hourMinuteSecondFraction())
File Line
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnLocalTimeMapper.java 29
org\jadira\usertype\dateandtime\joda\columnmapper\TimestampColumnTimeOfDayMapper.java 33
public class TimestampColumnLocalTimeMapper extends AbstractTimestampColumnMapper<LocalTime> implements DatabaseZoneConfigured<DateTimeZone> {

    private static final long serialVersionUID = 1921591625617366103L;

    private DateTimeZone databaseZone = null;

    public TimestampColumnLocalTimeMapper() {
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 85
org\jadira\usertype\dateandtime\joda\PersistentDateTimeWithZone.java 96
org\jadira\usertype\dateandtime\joda\PersistentInterval.java 63
    }

    @Override
    public String[] getPropertyNames() {
        return ArrayUtils.copyOf(PROPERTY_NAMES);
    }
}
File Line
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZone.java 35
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAndZoneWithOffset.java 38
org\jadira\usertype\dateandtime\joda\PersistentDateTimeAsString.java 36
    private static final ColumnMapper<?, ?>[] COLUMN_MAPPERS = new ColumnMapper<?, ?>[] { new TimestampColumnLocalDateTimeMapper(), new StringColumnDateTimeZoneMapper() };

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