}
else {
String payeeID = new String(resultSet.getString("PAYEE_ID"));
if (!resultSet.wasNull()) {
String payeeWhere = "WHERE PAYEE_ID = '" + payeeID.toString() + "' ";
DAO dao = daoFactory.getDAO("payee");
List payeeList = dao.load(payeeWhere, null, true);
if (payeeList.size()>0) {
Payee parentPayee = (Payee)payeeList.get(0);
transaction.setPayee(parentPayee);
}
}
}
}
if (resultSet.wasNull())
transaction.setPayee(null);
transaction.setActive(new Boolean(resultSet.getBoolean("ACTIVE")));
if (resultSet.wasNull())
transaction.setActive(null);
Date lastUpdateDate = resultSet.getDate("LAST_UPDATE");
if (!resultSet.wasNull()) {
Calendar lastUpdateCalendar = new GregorianCalendar();
lastUpdateCalendar.setTime(lastUpdateDate);
transaction.setLastUpdate(lastUpdateCalendar);
}
if (resultSet.wasNull())
transaction.setLastUpdate(null);
transaction.setLastUserID(new Integer(resultSet.getInt("LAST_USER_ID")));
if (resultSet.wasNull())
transaction.setLastUserID(null);
if (!lazyLoad) {
DAO dao = daoFactory.getDAO("transSplit");
List transSplitList = dao.load("WHERE PARENT_TRANS_ID = '" + transaction.getTransactionID() + "'",null,true);
TransSplit childTransSplit = null;
for (int i=0; i<transSplitList.size(); i++) {
childTransSplit = (TransSplit)transSplitList.get(i);
childTransSplit.setParentTransaction(transaction);
}