KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dinamica > RecordsetField


1 package dinamica;
2
3 import java.io.Serializable JavaDoc;
4
5 /**
6  * Utility class for Recordset: represents a Recordset field metadata
7  * <br>
8  * Creation date: 10/09/2003<br>
9  * 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 JavaDoc
15 {
16
17     /**
18      *
19      */

20     private static final long serialVersionUID = 1L;
21
22     /** field name */
23     private String JavaDoc _name = null;
24     
25     /** sql native type name */
26     private String JavaDoc _sqlTypeName = null;
27     
28     /** jdbc data type (java.sql.Types) */
29     private int _type = 0;
30     
31     /**
32      * Quick way to build an object of this class
33      * @param name Field Name
34      * @param typeName Native Type name
35      * @param type JDBC Data Type
36      */

37     public RecordsetField(String JavaDoc name, String JavaDoc typeName, int type)
38     {
39         _name = name;
40         _sqlTypeName = typeName;
41         _type = type;
42     }
43
44     /**
45      * @return
46      */

47     public String JavaDoc getName()
48     {
49         return _name;
50     }
51
52     /**
53      * @return
54      */

55     public String JavaDoc getSqlTypeName()
56     {
57         return _sqlTypeName;
58     }
59
60     /**
61      * @return
62      */

63     public int getType()
64     {
65         return _type;
66     }
67
68     public RecordsetField() {}
69     
70 }
71
Popular Tags