01: package dinamica;
02:
03: import java.io.Serializable;
04:
05: /**
06: * Utility class for Recordset: represents a Recordset field metadata
07: * <br>
08: * Creation date: 10/09/2003<br>
09: * Last Update: 10/09/2003<br>
10: * (c) 2003 Martin Cordova<br>
11: * This code is released under the LGPL license<br>
12: * @author Martin Cordova (dinamica@martincordova.com)
13: */
14: public class RecordsetField implements Serializable {
15:
16: /**
17: *
18: */
19: private static final long serialVersionUID = 1L;
20:
21: /** field name */
22: private String _name = null;
23:
24: /** sql native type name */
25: private String _sqlTypeName = null;
26:
27: /** jdbc data type (java.sql.Types) */
28: private int _type = 0;
29:
30: /**
31: * Quick way to build an object of this class
32: * @param name Field Name
33: * @param typeName Native Type name
34: * @param type JDBC Data Type
35: */
36: public RecordsetField(String name, String typeName, int type) {
37: _name = name;
38: _sqlTypeName = typeName;
39: _type = type;
40: }
41:
42: /**
43: * @return
44: */
45: public String getName() {
46: return _name;
47: }
48:
49: /**
50: * @return
51: */
52: public String getSqlTypeName() {
53: return _sqlTypeName;
54: }
55:
56: /**
57: * @return
58: */
59: public int getType() {
60: return _type;
61: }
62:
63: public RecordsetField() {
64: }
65:
66: }
|