- public DeliveryExtraRecord(String[] pp) throws ParseException {\r
- super(pp);\r
- this.subid = Integer.parseInt(pp[4]);\r
- this.contentLength2 = Long.parseLong(pp[6]);\r
- }\r
- public DeliveryExtraRecord(ResultSet rs) throws SQLException {\r
- super(rs);\r
- // Note: because this record should be "rare" these fields are mapped to unconventional fields in the DB\r
- this.subid = rs.getInt("DELIVERY_SUBID");\r
- this.contentLength2 = rs.getInt("CONTENT_LENGTH_2");\r
- }\r
- @Override\r
- public void load(PreparedStatement ps) throws SQLException {\r
- ps.setString(1, "dlx"); // field 1: type\r
- super.load(ps); // loads fields 2-8\r
- ps.setNull( 9, Types.VARCHAR);\r
- ps.setNull(10, Types.VARCHAR);\r
- ps.setNull(11, Types.VARCHAR);\r
- ps.setNull(12, Types.INTEGER);\r
- ps.setInt (13, subid);\r
- ps.setNull(14, Types.VARCHAR);\r
- ps.setNull(15, Types.INTEGER);\r
- ps.setNull(16, Types.INTEGER);\r
- ps.setNull(17, Types.VARCHAR);\r
- ps.setLong(19, contentLength2);\r
- }\r
+ public DeliveryExtraRecord(String[] pp) throws ParseException {\r
+ super(pp);\r
+ this.subid = Integer.parseInt(pp[4]);\r
+ this.contentLength2 = Long.parseLong(pp[6]);\r
+ }\r
+ public DeliveryExtraRecord(ResultSet rs) throws SQLException {\r
+ super(rs);\r
+ // Note: because this record should be "rare" these fields are mapped to unconventional fields in the DB\r
+ this.subid = rs.getInt("DELIVERY_SUBID");\r
+ this.contentLength2 = rs.getInt("CONTENT_LENGTH_2");\r
+ }\r
+ @Override\r
+ public void load(PreparedStatement ps) throws SQLException {\r
+ ps.setString(1, "dlx"); // field 1: type\r
+ super.load(ps); // loads fields 2-8\r
+ ps.setNull( 9, Types.VARCHAR);\r
+ ps.setNull(10, Types.VARCHAR);\r
+ ps.setNull(11, Types.VARCHAR);\r
+ ps.setNull(12, Types.INTEGER);\r
+ ps.setInt (13, subid);\r
+ ps.setNull(14, Types.VARCHAR);\r
+ ps.setNull(15, Types.INTEGER);\r
+ ps.setNull(16, Types.INTEGER);\r
+ ps.setNull(17, Types.VARCHAR);\r
+ ps.setLong(19, contentLength2);\r
+ }\r