public String getFullyQualifiedTableName() { String schema = this.getSchemaGenericSource(null); String tableName = getCustomerAccountTableName(); return this.getDatabaseType().getFullyQualifiedTableName(schema, tableName); }
public int setPrimaryKeyAttributesWithoutOptimistic(PreparedStatement stm, int pos, MithraDataObject dataObj, TimeZone databaseTimeZone, DatabaseType dt) throws SQLException { PetData data = (PetData)dataObj; TimeZone conversionTimeZone = null; stm.setString(pos++, data.getPetName()); conversionTimeZone = MithraTimestamp.DefaultTimeZone; if (data.getProcessingDateTo().getTime() == PetFinder.processingDate().getInfinityDate().getTime()) { conversionTimeZone = MithraTimestamp.DefaultTimeZone; } dt.setTimestamp(stm, pos, data.getProcessingDateTo(), false, conversionTimeZone); pos++; return pos; }
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); } }
public int setPrimaryKeyAttributesWithoutOptimistic(PreparedStatement stm, int pos, MithraDataObject dataObj, TimeZone databaseTimeZone, DatabaseType dt) throws SQLException { TaskData data = (TaskData)dataObj; TimeZone conversionTimeZone = null; stm.setInt(pos++, data.getTaskId()); conversionTimeZone = MithraTimestamp.DefaultTimeZone; if (data.getProcessingDateTo().getTime() == TaskFinder.processingDate().getInfinityDate().getTime()) { conversionTimeZone = MithraTimestamp.DefaultTimeZone; } dt.setTimestamp(stm, pos, data.getProcessingDateTo(), false, conversionTimeZone); pos++; return pos; }
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 String getFullyQualifiedTableName() { String schema = this.getSchemaGenericSource(null); String tableName = getCustomerAccountTableName(); return this.getDatabaseType().getFullyQualifiedTableName(schema, tableName); }
public int setPrimaryKeyAttributesWithoutOptimistic(PreparedStatement stm, int pos, MithraDataObject dataObj, TimeZone databaseTimeZone, DatabaseType dt) throws SQLException { CustomerAccountData data = (CustomerAccountData)dataObj; TimeZone conversionTimeZone = null; stm.setInt(pos++, data.getAccountId()); conversionTimeZone = MithraTimestamp.DefaultTimeZone; if (data.getProcessingDateTo().getTime() == CustomerAccountFinder.processingDate().getInfinityDate().getTime()) { conversionTimeZone = MithraTimestamp.DefaultTimeZone; } dt.setTimestamp(stm, pos, data.getProcessingDateTo(), false, conversionTimeZone); pos++; return pos; }
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 String getFullyQualifiedTableName() { String schema = this.getSchemaGenericSource(null); String tableName = getPetTableName(); return this.getDatabaseType().getFullyQualifiedTableName(schema, tableName); }
public int setPrimaryKeyAttributesWithoutOptimistic(PreparedStatement stm, int pos, MithraDataObject dataObj, TimeZone databaseTimeZone, DatabaseType dt) throws SQLException { CustomerData data = (CustomerData)dataObj; TimeZone conversionTimeZone = null; stm.setInt(pos++, data.getCustomerId()); conversionTimeZone = MithraTimestamp.DefaultTimeZone; if (data.getProcessingDateTo().getTime() == CustomerFinder.processingDate().getInfinityDate().getTime()) { conversionTimeZone = MithraTimestamp.DefaultTimeZone; } dt.setTimestamp(stm, pos, data.getProcessingDateTo(), false, conversionTimeZone); pos++; return pos; }
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); } }
public String getFullyQualifiedTableName() { String schema = this.getSchemaGenericSource(null); String tableName = getTaskTableName(); return this.getDatabaseType().getFullyQualifiedTableName(schema, tableName); }
public int setPrimaryKeyAttributesWithoutOptimistic(PreparedStatement stm, int pos, MithraDataObject dataObj, TimeZone databaseTimeZone, DatabaseType dt) throws SQLException { AccountBalanceData data = (AccountBalanceData)dataObj; TimeZone conversionTimeZone = null; stm.setInt(pos++, data.getAccountId()); conversionTimeZone = MithraTimestamp.DefaultTimeZone; if (data.getBusinessDateTo().getTime() == AccountBalanceFinder.businessDate().getInfinityDate().getTime()) { conversionTimeZone = MithraTimestamp.DefaultTimeZone; } dt.setTimestamp(stm, pos, data.getBusinessDateTo(), false, conversionTimeZone); pos++; conversionTimeZone = MithraTimestamp.DefaultTimeZone; if (data.getProcessingDateTo().getTime() == AccountBalanceFinder.processingDate().getInfinityDate().getTime()) { conversionTimeZone = MithraTimestamp.DefaultTimeZone; } dt.setTimestamp(stm, pos, data.getProcessingDateTo(), false, conversionTimeZone); pos++; return pos; }
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); } }
public String getFullyQualifiedTableName() { String schema = this.getSchemaGenericSource(null); String tableName = getCustomerTableName(); return this.getDatabaseType().getFullyQualifiedTableName(schema, tableName); }
public int setPrimaryKeyAttributesWithoutOptimistic(PreparedStatement stm, int pos, MithraDataObject dataObj, TimeZone databaseTimeZone, DatabaseType dt) throws SQLException { CustomerData data = (CustomerData)dataObj; TimeZone conversionTimeZone = null; stm.setInt(pos++, data.getCustomerId()); conversionTimeZone = MithraTimestamp.DefaultTimeZone; if (data.getBusinessDateTo().getTime() == CustomerFinder.businessDate().getInfinityDate().getTime()) { conversionTimeZone = MithraTimestamp.DefaultTimeZone; } dt.setTimestamp(stm, pos, data.getBusinessDateTo(), false, conversionTimeZone); pos++; conversionTimeZone = MithraTimestamp.DefaultTimeZone; if (data.getProcessingDateTo().getTime() == CustomerFinder.processingDate().getInfinityDate().getTime()) { conversionTimeZone = MithraTimestamp.DefaultTimeZone; } dt.setTimestamp(stm, pos, data.getProcessingDateTo(), false, conversionTimeZone); pos++; return pos; }
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 String getFullyQualifiedTableName() { String schema = this.getSchemaGenericSource(null); String tableName = getAccountBalanceTableName(); return this.getDatabaseType().getFullyQualifiedTableName(schema, tableName); }
public int setPrimaryKeyAttributesWithoutOptimistic(PreparedStatement stm, int pos, MithraDataObject dataObj, TimeZone databaseTimeZone, DatabaseType dt) throws SQLException { CustomerAccountData data = (CustomerAccountData)dataObj; TimeZone conversionTimeZone = null; stm.setInt(pos++, data.getAccountId()); conversionTimeZone = MithraTimestamp.DefaultTimeZone; if (data.getBusinessDateTo().getTime() == CustomerAccountFinder.businessDate().getInfinityDate().getTime()) { conversionTimeZone = MithraTimestamp.DefaultTimeZone; } dt.setTimestamp(stm, pos, data.getBusinessDateTo(), false, conversionTimeZone); pos++; conversionTimeZone = MithraTimestamp.DefaultTimeZone; if (data.getProcessingDateTo().getTime() == CustomerAccountFinder.processingDate().getInfinityDate().getTime()) { conversionTimeZone = MithraTimestamp.DefaultTimeZone; } dt.setTimestamp(stm, pos, data.getProcessingDateTo(), false, conversionTimeZone); pos++; return pos; }