1 package com.instantbank.collections.ach;
2
3 import java.sql.PreparedStatement;
4 import java.sql.ResultSet;
5 import java.sql.SQLException;
6 import java.io.Serializable;
7
8 public interface DataObject extends Serializable {
9 public long getId();
10
11
12 public void setId(long id);
13
14
15 public String getFindByPrimaryKeySQL();
16
17
18 public void populate(ResultSet rs) throws SQLException;
19
20
21 public String getCreateSQL();
22
23
24 public String getUpdateSQL();
25
26
27 public String getRemoveSQL();
28
29
30 public void prepareCreateStatement(PreparedStatement ps) throws SQLException;
31
32
33 public void prepareUpdateStatement(PreparedStatement ps) throws SQLException;
34
35
36 public void prepareRemoveStatement(PreparedStatement ps) throws SQLException;
37
38
39 public String getSequenceObjectName();
40
41
42 public String toString();
43 }
44