All Packages Class Hierarchy This Package Previous Next Index
Class twz1.jdbc.mysql.RSMd
java.lang.Object
|
+----twz1.jdbc.mysql.RSMd
- public final class RSMd
- extends Object
- implements ResultSetMetaData
-
cc
- Column count
-
cnames
- Hashtable of column names
-
cols
- vector of column descriptors
-
errs
-
-
GETCATALOGNAME
-
-
GETCOLUMNCOUNT
-
-
GETCOLUMNDISPLAYSIZE
-
-
GETCOLUMNLABEL
-
-
GETCOLUMNNAME
-
-
GETCOLUMNTYPE
-
-
GETCOLUMNTYPENAME
-
-
GETPRECISION
-
-
GETSCALE
-
-
GETSCHEMANAME
-
-
GETTABLENAME
-
-
ISAUTOINCREMENT
-
-
ISCASESENSITIVE
-
-
ISCURRENCY
-
-
ISDEFINITELYWRITABLE
-
-
ISNULLABLE
-
-
ISREADONLY
-
-
ISSEARCHABLE
-
-
ISSIGNED
-
-
ISWRITABLE
-
-
pmethods
-
-
stmt
- The parent statement.
-
RSMd()
-
-
RSMd(jdbcMysqlStmt)
-
-
addField(jdbcMysqlField)
- Removed close to make it reusable and remove need for locks
-
copy()
- for our purposes the vector and hashtable can be shared
-
errHandlerE(int, Exception)
-
-
getCatalogName(int)
- See API.
-
getColumnCount()
- See API docs
-
getColumnDisplaySize(int)
- See API.
-
getColumnLabel(int)
- See the API.
-
getColumnName(int)
- See API
-
getColumnType(int)
- See API.
-
getColumnTypeName(int)
- See API.
-
getField(int)
-
-
getField(String)
-
-
getField(String, String)
-
-
getPrecision(int)
- See API.
-
getScale(int)
- See API
-
getSchemaName(int)
- See API, returns ""
-
getTableName(int)
- See API
-
iReq(int, int)
-
-
isAutoIncrement(int)
- This should be testable, but the flags do not return this
information from a standard query.
-
isCaseSensitive(int)
- See API and mysql docs.
-
isCurrency(int)
- Nothing in MySQL describes currency, per se
-
isDefinitelyWritable(int)
-
-
isNullable(int)
- See API
-
isReadOnly(int)
- All cols are writable.
-
isSearchable(int)
- See API -- all MySQL fields are searchable.
-
isSigned(int)
- See API, but true only for numeric types with unsigned not set
-
isTypeNumeric(int)
-
-
isWritable(int)
- All cols are writable.
-
mapMySQLtypes(int, jdbcMysqlField)
-
-
sqlTypeNames(int)
-
-
sReq(int, int)
-
-
typeXcept(int, int)
- Throw a bad type exception if rsmdXcept, else return r value.
stmt
jdbcMysqlStmt stmt
- The parent statement.
cols
Vector cols
- vector of column descriptors
cc
int cc
- Column count
cnames
Hashtable cnames
- Hashtable of column names
errs
static final String errs[]
GETCOLUMNCOUNT
static final int GETCOLUMNCOUNT
ISAUTOINCREMENT
static final int ISAUTOINCREMENT
ISCASESENSITIVE
static final int ISCASESENSITIVE
ISSEARCHABLE
static final int ISSEARCHABLE
ISCURRENCY
static final int ISCURRENCY
ISNULLABLE
static final int ISNULLABLE
ISSIGNED
static final int ISSIGNED
GETCOLUMNDISPLAYSIZE
static final int GETCOLUMNDISPLAYSIZE
GETCOLUMNLABEL
static final int GETCOLUMNLABEL
GETCOLUMNNAME
static final int GETCOLUMNNAME
GETSCHEMANAME
static final int GETSCHEMANAME
GETPRECISION
static final int GETPRECISION
GETSCALE
static final int GETSCALE
GETTABLENAME
static final int GETTABLENAME
GETCATALOGNAME
static final int GETCATALOGNAME
GETCOLUMNTYPE
static final int GETCOLUMNTYPE
GETCOLUMNTYPENAME
static final int GETCOLUMNTYPENAME
ISREADONLY
static final int ISREADONLY
ISWRITABLE
static final int ISWRITABLE
ISDEFINITELYWRITABLE
static final int ISDEFINITELYWRITABLE
pmethods
static final String pmethods[]
RSMd
RSMd(jdbcMysqlStmt st)
RSMd
RSMd()
copy
RSMd copy()
- for our purposes the vector and hashtable can be shared
addField
void addField(jdbcMysqlField f) throws SQLException
- Removed close to make it reusable and remove need for locks
getField
jdbcMysqlField getField(int column) throws SQLException
getField
jdbcMysqlField getField(String cname) throws SQLException
getField
jdbcMysqlField getField(String tname,
String cname) throws SQLException
getColumnCount
public int getColumnCount() throws SQLException
- See API docs
isAutoIncrement
public boolean isAutoIncrement(int column) throws SQLException
- This should be testable, but the flags do not return this
information from a standard query. Currently returns false.
Future implementations may conduct a more extensive investigation
to recover this information via a call to describe.
isCaseSensitive
public boolean isCaseSensitive(int column) throws SQLException
- See API and mysql docs. Char, text and varchar fields are text
insensitive in where clauses according to MySQL docs. Otherwise
true.
isSearchable
public boolean isSearchable(int column) throws SQLException
- See API -- all MySQL fields are searchable.
isCurrency
public boolean isCurrency(int column) throws SQLException
- Nothing in MySQL describes currency, per se
isNullable
public int isNullable(int column) throws SQLException
- See API
isSigned
public boolean isSigned(int column) throws SQLException
- See API, but true only for numeric types with unsigned not set
getColumnDisplaySize
public int getColumnDisplaySize(int column) throws SQLException
- See API. this result could be very large for blobs.
getColumnLabel
public String getColumnLabel(int column) throws SQLException
- See the API. Returns the column name if it is unique and
the catenated table name and column otherwise.
getColumnName
public String getColumnName(int column) throws SQLException
- See API
getSchemaName
public String getSchemaName(int column) throws SQLException
- See API, returns ""
getPrecision
public int getPrecision(int column) throws SQLException
- See API. For Mysql this is column size for numerics;
non-numerics are exceptional. Future releases may take
cognizance that signs and decimals lessen the mathematical
precision of returned values.
getScale
public int getScale(int column) throws SQLException
- See API
getTableName
public String getTableName(int column) throws SQLException
- See API
getCatalogName
public String getCatalogName(int column) throws SQLException
- See API. For MySQL this is the name of the "database" to
which the connection is currently maintained.
getColumnType
public int getColumnType(int column) throws SQLException
- See API. This is somewhat problematic as MySQL types do not
map precisely to jdbc types.
getColumnTypeName
public String getColumnTypeName(int column) throws SQLException
- See API. Possible problems mapping MySQL to jdbc types.
isReadOnly
public boolean isReadOnly(int column) throws SQLException
- All cols are writable.
isWritable
public boolean isWritable(int column) throws SQLException
- All cols are writable.
isDefinitelyWritable
public boolean isDefinitelyWritable(int column) throws SQLException
iReq
private int iReq(int req,
int c) throws SQLException
typeXcept
int typeXcept(int n,
int r) throws SQLException
- Throw a bad type exception if rsmdXcept, else return r value.
- Parameters:
- n - method name number.
- r - value to return if we are not taking an exception.
sReq
private String sReq(int req,
int c) throws SQLException
mapMySQLtypes
static int mapMySQLtypes(int i,
jdbcMysqlField f)
sqlTypeNames
static String sqlTypeNames(int type)
isTypeNumeric
private boolean isTypeNumeric(int i)
errHandlerE
void errHandlerE(int n,
Exception e) throws SQLException
All Packages Class Hierarchy This Package Previous Next Index