01: package net.sourceforge.jaxor.api;
02:
03: import net.sourceforge.jaxor.MetaField;
04:
05: import java.sql.PreparedStatement;
06: import java.sql.ResultSet;
07: import java.sql.SQLException;
08:
09: /*
10: * User: Mike
11: * Date: Jul 31, 2003
12: * Time: 9:49:24 PM
13: */
14:
15: public interface FieldAdapter extends ValueHolder {
16:
17: String getName();
18:
19: public void registerChange(Object newValue, Object oldValue);
20:
21: void addChangeListener(ValueChangeListener entityRow);
22:
23: void removeChangeListener(ValueChangeListener listener);
24:
25: boolean isNull();
26:
27: void validate();
28:
29: void validateLoad();
30:
31: boolean isPrimaryKey();
32:
33: boolean isMatchOnUpdate();
34:
35: Object getMappedSqlObject();
36:
37: void setValueFromResultSet(ResultSet rs) throws SQLException;
38:
39: void addToStatement(PreparedStatement stmt, int param, Object value)
40: throws SQLException;
41:
42: void addToStatement(PreparedStatement stmt, int count)
43: throws SQLException;
44:
45: MetaField getMetaField();
46: }
|