public void inflateNonPkTaskData(int _pos, TaskData _datax, ResultSet _rs, DatabaseType _dt) throws SQLException { { TaskData _data = _datax; _data.setName(trimString(_rs.getString(_pos++))); _data.setStatus(trimString(_rs.getString(_pos++))); Timestamp processingDateFromtimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setProcessingDateFrom(processingDateFromtimestampValue); Timestamp processingDateTotimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); if (processingDateTotimestampValue == null) { throw new MithraBusinessException("attribute ' processingDateTo ' is null in database but is not marked as nullable in mithra xml for primary key / "+_data.zGetPrintablePrimaryKey()); } processingDateTotimestampValue = MithraTimestamp.zFixInfinity(processingDateTotimestampValue, MithraTimestamp.DefaultTimeZone, TaskFinder.processingDate().getInfinityDate()); _data.setProcessingDateTo(processingDateTotimestampValue); } }
public void inflateNonPkCustomerData(int _pos, CustomerData _datax, ResultSet _rs, DatabaseType _dt) throws SQLException { { CustomerData _data = _datax; _data.setFirstName(trimString(_rs.getString(_pos++))); _data.setLastName(trimString(_rs.getString(_pos++))); _data.setCountry(trimString(_rs.getString(_pos++))); Timestamp processingDateFromtimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setProcessingDateFrom(processingDateFromtimestampValue); Timestamp processingDateTotimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); if (processingDateTotimestampValue == null) { throw new MithraBusinessException("attribute ' processingDateTo ' is null in database but is not marked as nullable in mithra xml for primary key / "+_data.zGetPrintablePrimaryKey()); } processingDateTotimestampValue = MithraTimestamp.zFixInfinity(processingDateTotimestampValue, MithraTimestamp.DefaultTimeZone, CustomerFinder.processingDate().getInfinityDate()); _data.setProcessingDateTo(processingDateTotimestampValue); } }
Timestamp businessDateFromtimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setBusinessDateFrom(businessDateFromtimestampValue); Timestamp businessDateTotimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); if (businessDateTotimestampValue == null) AccountBalanceFinder.businessDate().getInfinityDate()); _data.setBusinessDateTo(businessDateTotimestampValue); Timestamp processingDateFromtimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setProcessingDateFrom(processingDateFromtimestampValue); Timestamp processingDateTotimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); if (processingDateTotimestampValue == null)
public void inflateNonPkCustomerAccountData(int _pos, CustomerAccountData _datax, ResultSet _rs, DatabaseType _dt) throws SQLException { { CustomerAccountData _data = _datax; _data.setCustomerId(_rs.getInt(_pos++)); checkNullPrimitive(_rs, _data, "customerId"); _data.setAccountName(trimString(_rs.getString(_pos++))); _data.setAccountType(trimString(_rs.getString(_pos++))); _data.setBalance(_rs.getDouble(_pos++)); if (_rs.wasNull()) { _data.setBalanceNull(); } Timestamp processingDateFromtimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setProcessingDateFrom(processingDateFromtimestampValue); Timestamp processingDateTotimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); if (processingDateTotimestampValue == null) { throw new MithraBusinessException("attribute ' processingDateTo ' is null in database but is not marked as nullable in mithra xml for primary key / "+_data.zGetPrintablePrimaryKey()); } processingDateTotimestampValue = MithraTimestamp.zFixInfinity(processingDateTotimestampValue, MithraTimestamp.DefaultTimeZone, CustomerAccountFinder.processingDate().getInfinityDate()); _data.setProcessingDateTo(processingDateTotimestampValue); } }
public void inflateNonPkPetData(int _pos, PetData _datax, ResultSet _rs, DatabaseType _dt) throws SQLException { { PetData _data = _datax; _data.setPersonId(_rs.getInt(_pos++)); checkNullPrimitive(_rs, _data, "personId"); _data.setPetAge(_rs.getInt(_pos++)); checkNullPrimitive(_rs, _data, "petAge"); _data.setPetTypeId(_rs.getInt(_pos++)); checkNullPrimitive(_rs, _data, "petTypeId"); Timestamp processingDateFromtimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setProcessingDateFrom(processingDateFromtimestampValue); Timestamp processingDateTotimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); if (processingDateTotimestampValue == null) { throw new MithraBusinessException("attribute ' processingDateTo ' is null in database but is not marked as nullable in mithra xml for primary key / "+_data.zGetPrintablePrimaryKey()); } processingDateTotimestampValue = MithraTimestamp.zFixInfinity(processingDateTotimestampValue, MithraTimestamp.DefaultTimeZone, PetFinder.processingDate().getInfinityDate()); _data.setProcessingDateTo(processingDateTotimestampValue); } }
Timestamp businessDateFromtimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setBusinessDateFrom(businessDateFromtimestampValue); Timestamp businessDateTotimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); if (businessDateTotimestampValue == null) CustomerAccountFinder.businessDate().getInfinityDate()); _data.setBusinessDateTo(businessDateTotimestampValue); Timestamp processingDateFromtimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setProcessingDateFrom(processingDateFromtimestampValue); Timestamp processingDateTotimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); if (processingDateTotimestampValue == null)
public void inflateNonPkCustomerData(int _pos, CustomerData _datax, ResultSet _rs, DatabaseType _dt) throws SQLException { { CustomerData _data = _datax; _data.setFirstName(trimString(_rs.getString(_pos++))); _data.setLastName(trimString(_rs.getString(_pos++))); _data.setCountry(trimString(_rs.getString(_pos++))); Timestamp businessDateFromtimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setBusinessDateFrom(businessDateFromtimestampValue); Timestamp businessDateTotimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); if (businessDateTotimestampValue == null) { throw new MithraBusinessException("attribute ' businessDateTo ' is null in database but is not marked as nullable in mithra xml for primary key / "+_data.zGetPrintablePrimaryKey()); } businessDateTotimestampValue = MithraTimestamp.zFixInfinity(businessDateTotimestampValue, MithraTimestamp.DefaultTimeZone, CustomerFinder.businessDate().getInfinityDate()); _data.setBusinessDateTo(businessDateTotimestampValue); Timestamp processingDateFromtimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setProcessingDateFrom(processingDateFromtimestampValue); Timestamp processingDateTotimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); if (processingDateTotimestampValue == null) { throw new MithraBusinessException("attribute ' processingDateTo ' is null in database but is not marked as nullable in mithra xml for primary key / "+_data.zGetPrintablePrimaryKey()); } processingDateTotimestampValue = MithraTimestamp.zFixInfinity(processingDateTotimestampValue, MithraTimestamp.DefaultTimeZone, CustomerFinder.processingDate().getInfinityDate()); _data.setProcessingDateTo(processingDateTotimestampValue); } }
_data.setAge(_rs.getInt(_pos++)); checkNullPrimitive(_rs, _data, "age"); Timestamp businessDateFromtimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setBusinessDateFrom(businessDateFromtimestampValue); Timestamp businessDateTotimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); if (businessDateTotimestampValue == null) EmployeeFinder.businessDate().getInfinityDate()); _data.setBusinessDateTo(businessDateTotimestampValue); Timestamp processingDateFromtimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setProcessingDateFrom(processingDateFromtimestampValue); Timestamp processingDateTotimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); if (processingDateTotimestampValue == null)
_data.setDateValue(_rs.getDate(_pos++)); checkNullPrimitive(_rs, _data, "dateValue"); Timestamp timestampValuetimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setTimestampValue(timestampValuetimestampValue); _data.setStringValue(trimString(_rs.getString(_pos++))); Timestamp nullableTimestampValuetimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setNullableTimestampValue(nullableTimestampValuetimestampValue); _data.setNullableStringValue(trimString(_rs.getString(_pos++)));