public String getTableNameGenericSource(Object source) throws MithraDatabaseException { return getAllTypesTableName(); }
public TimeZone getDatabaseTimeZoneGenericSource(Object source) { return getDatabaseTimeZone(); }
public String getTableName() { return this.getDefaultTableName(); }
public AllTypesData inflateAllTypesData(ResultSet rs, DatabaseType dt) throws SQLException { AllTypesData data = inflateAllTypesPkData(rs, dt); inflateNonPkAllTypesData(2, data, rs, dt); return data; }
checkNullPrimitive(_rs, _data, "booleanValue"); _data.setByteValue(_rs.getByte(_pos++)); checkNullPrimitive(_rs, _data, "byteValue"); _data.setShortValue(_rs.getShort(_pos++)); checkNullPrimitive(_rs, _data, "shortValue"); String charValueCharValue = _rs.getString(_pos++); boolean charValueCharValueisNull = charValueCharValue == null || charValueCharValue.length() < 1; checkNullPrimitive(_rs, _data, "intValue"); _data.setLongValue(_rs.getLong(_pos++)); checkNullPrimitive(_rs, _data, "longValue"); _data.setFloatValue(_rs.getFloat(_pos++)); checkNullPrimitive(_rs, _data, "floatValue"); _data.setDoubleValue(_rs.getDouble(_pos++)); checkNullPrimitive(_rs, _data, "doubleValue"); _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++))); _data.setByteArrayValue(_rs.getBytes(_pos++)); checkNullPrimitive(_rs, _data, "byteArrayValue"); _data.setNullableByteValue(_rs.getByte(_pos++)); if (_rs.wasNull()) Timestamp nullableTimestampValuetimestampValue = _dt.getTimestampFromResultSet(_rs, _pos++, MithraTimestamp.DefaultTimeZone); _data.setNullableTimestampValue(nullableTimestampValuetimestampValue); _data.setNullableStringValue(trimString(_rs.getString(_pos++))); _data.setNullableByteArrayValue(_rs.getBytes(_pos++));
public MithraDataObject inflatePkDataGenericSource(ResultSet rs, Object source, DatabaseType dt) throws SQLException { return inflateAllTypesPkData(rs, dt); }
public MithraDataObject inflateDataGenericSource(ResultSet rs, Object source, DatabaseType dt) throws SQLException { return inflateAllTypesData(rs, dt); }
public void inflateNonPkDataGenericSource(MithraDataObject data, ResultSet rs, Object source, DatabaseType dt) throws SQLException { inflateNonPkAllTypesData(1, (AllTypesData) data, rs, dt); }
protected String getSchema() { return this.getSchemaGenericSource(null); }
public String getSchemaGenericSource(Object source) { if (this.schemaManager != null) { return this.schemaManager.getSchema(this.getDefaultSchema()); } return this.getDefaultSchema(); }
public AllTypesData inflateAllTypesPkData(ResultSet _rs, DatabaseType _dt) throws SQLException { AllTypesData _data = new AllTypesData(); int _pos = 1; _data.setId(_rs.getInt(_pos++)); checkNullPrimitive(_rs, _data, "id"); return _data; }
public MithraObject deserializeForRefresh(ObjectInput in) throws IOException, ClassNotFoundException { AllTypesData data = new AllTypesData(); data.zDeserializePrimaryKey(in); return this.createObject(data); }
public String getAllTypesTableName() throws MithraDatabaseException { if (this.tablePartitionManager != null) { return this.tablePartitionManager.getTableName(this.getDefaultTableName()); } return this.getDefaultTableName(); }