diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-10-25 06:00:05 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-10-25 06:00:05 +0000 |
commit | d2e27b0674e238a4f94f1c190a395a530746d5d3 (patch) | |
tree | d654e117fdc20ecb84da14052fad5124c9f32012 /src/interfaces/jdbc/org/postgresql/Field.java | |
parent | b81844b1738c584d92330a5ccd0fbd8b603d2886 (diff) |
pgjindent jdbc files. First time jdbc files were formatted.
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/Field.java')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/Field.java | 162 |
1 files changed, 81 insertions, 81 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/Field.java b/src/interfaces/jdbc/org/postgresql/Field.java index 1bbc272aa80..88507311c97 100644 --- a/src/interfaces/jdbc/org/postgresql/Field.java +++ b/src/interfaces/jdbc/org/postgresql/Field.java @@ -12,96 +12,96 @@ import org.postgresql.util.*; */ public class Field { - private int length; // Internal Length of this field - private int oid; // OID of the type - private int mod; // type modifier of this field - private String name; // Name of this field + private int length; // Internal Length of this field + private int oid; // OID of the type + private int mod; // type modifier of this field + private String name; // Name of this field - private Connection conn; // Connection Instantation + private Connection conn; // Connection Instantation - /** - * Construct a field based on the information fed to it. - * - * @param conn the connection this field came from - * @param name the name of the field - * @param oid the OID of the field - * @param len the length of the field - */ - public Field(Connection conn, String name, int oid, int length,int mod) - { - this.conn = conn; - this.name = name; - this.oid = oid; - this.length = length; - this.mod = mod; - } + /** + * Construct a field based on the information fed to it. + * + * @param conn the connection this field came from + * @param name the name of the field + * @param oid the OID of the field + * @param len the length of the field + */ + public Field(Connection conn, String name, int oid, int length, int mod) + { + this.conn = conn; + this.name = name; + this.oid = oid; + this.length = length; + this.mod = mod; + } - /** - * Constructor without mod parameter. - * - * @param conn the connection this field came from - * @param name the name of the field - * @param oid the OID of the field - * @param len the length of the field - */ - public Field(Connection conn, String name, int oid, int length) - { - this(conn,name,oid,length,0); - } + /** + * Constructor without mod parameter. + * + * @param conn the connection this field came from + * @param name the name of the field + * @param oid the OID of the field + * @param len the length of the field + */ + public Field(Connection conn, String name, int oid, int length) + { + this(conn, name, oid, length, 0); + } - /** - * @return the oid of this Field's data type - */ - public int getOID() - { - return oid; - } + /** + * @return the oid of this Field's data type + */ + public int getOID() + { + return oid; + } - /** - * @return the mod of this Field's data type - */ - public int getMod() - { - return mod; - } + /** + * @return the mod of this Field's data type + */ + public int getMod() + { + return mod; + } - /** - * @return the name of this Field's data type - */ - public String getName() - { - return name; - } + /** + * @return the name of this Field's data type + */ + public String getName() + { + return name; + } - /** - * @return the length of this Field's data type - */ - public int getLength() - { - return length; - } + /** + * @return the length of this Field's data type + */ + public int getLength() + { + return length; + } - /** - * We also need to get the PG type name as returned by the back end. - * - * @return the String representation of the PG type of this field - * @exception SQLException if a database access error occurs - */ - public String getPGType() throws SQLException - { - return conn.getPGType(oid); - } + /** + * We also need to get the PG type name as returned by the back end. + * + * @return the String representation of the PG type of this field + * @exception SQLException if a database access error occurs + */ + public String getPGType() throws SQLException + { + return conn.getPGType(oid); + } - /** - * We also need to get the java.sql.types type. - * - * @return the int representation of the java.sql.types type of this field - * @exception SQLException if a database access error occurs - */ - public int getSQLType() throws SQLException - { - return conn.getSQLType(oid); - } + /** + * We also need to get the java.sql.types type. + * + * @return the int representation of the java.sql.types type of this field + * @exception SQLException if a database access error occurs + */ + public int getSQLType() throws SQLException + { + return conn.getSQLType(oid); + } } |