/*
 * Copyright (c) 2009-2013 Topi Nieminen
 */
package fi.tnie.db.model;

public class LongAdditionModel<A extends Number, B extends Number>
	extends AbstractArithmeticLongModel<A, B> {
		
	public LongAdditionModel(ValueModel<A> a, ValueModel<B> b) {
		super(a, b);		
	}

	@Override
	protected Long compute(A a, B b) {
		if (a == null || b == null) {
			return null;
		}
		
		return Long.valueOf(a.longValue() + b.longValue());
	}
}

@@ -259,18 +259,16 @@
 r(a, b);
-%09%09
 %0A%09%7D%0A%0A%09@O
@@ -417,16 +417,83 @@
 gValue()
-);%0A%09%7D
+ + getConstant());%0A%09%7D%0A%0A%09public long getConstant() %7B%0A%09%09return 0;%0A%09%7D%0A%09%0A%09%0A%09
 %0A%7D%0A

Add optional constant term into LongAdditionModel