All Packages Class Hierarchy This Package Previous Next Index
Class twz1.jdbc.mysql.jdbcMysqlRSet
java.lang.Object
|
+----twz1.jdbc.mysql.jdbcMysqlRSet
- public final class jdbcMysqlRSet
- extends Object
- implements ResultSet
This class implements Result Set to return SQL data to the
application. Since MySQL returns all numeric data
as text strings, we treat all columns as such regardless of
their defined type and parse that string into the requested
type, only throwing an exception if the parse is impossible.
At a later time I may validate conversions strictly according
to the API, but for now, let it fly.
-
cached
-
-
columnCount
- localize column count
-
currentRow
- Current row
-
errs
-
-
FINDCOLUMN
-
-
GETASCIISTREAM
-
-
GETBIGDECIMAL
-
-
GETBINARYSTREAM
-
-
GETBOOLEAN
-
-
GETBYTE
-
-
GETBYTES
-
-
GETDATE
-
-
GETDOUBLE
-
-
GETFLOAT
-
-
GETINT
-
-
GETLONG
-
-
GETMETADATA
-
-
GETOBJECT
-
-
GETSHORT
-
-
GETSTRING
-
-
gettable
-
-
GETTIME
-
-
GETTIMESTAMP
-
-
GETUNICODESTREAM
-
-
inBag
- Access to the input
-
isClosed
- Have we been closed
-
isDone
- Have we exhaused data
-
isStarted
- Have we even started yet
-
lastNull
- A bit of API silliness
-
lTimeout
-
-
maxRows
-
-
mcache
-
-
mcacheSize
-
-
metadata
- Access to the mapping
-
myOID
- My object id
-
nameIt
-
-
noMoreData
- Are we done
-
result
- Access the result
-
retrieved
- Has this RS been retrieved
-
rsDateXcept
- Do we throw exception in getDate before 1900?
-
rsLock
- do we lock before answering inquiries ?
-
statement
- Access the statement
-
WASNULL
-
-
xRow
-
-
jdbcMysqlRSet(jdbcMysqlResult)
-
-
clearWarnings()
- I said we don't support warnings!
-
close()
- See API.
-
errHandlerE(int, Exception)
-
-
errHandlerE2(int, int, String, Exception)
-
-
errHandlerE2b(int, int, String, Exception)
-
-
errHandlerM(int, String)
-
-
errHandlerNM(int, int, String)
-
-
fByName(String)
-
-
findColumn(String)
- Return the ordinal column
-
getAsciiStream(int)
- See API.
-
getAsciiStream(String)
- See API.
-
getBigDecimal(int, int)
- See API
-
getBigDecimal(String, int)
- See API
-
getBinaryStream(int)
- See API.
-
getBinaryStream(String)
- See API.
-
getBoolean(int)
- See the API.
-
getBoolean(String)
- See the API.
-
getByte(int)
- See API.
-
getByte(String)
- See API.
-
getBytes(int)
- See API
-
getBytes(String)
- See API
-
getCursorName()
- MySQL doesn't do cursors.
-
getDate(int)
- See API
-
getDate(String)
- See API
-
getDouble(int)
- See the API
-
getDouble(String)
- See the API
-
getFloat(int)
- See API
-
getFloat(String)
- See API
-
getInt(int)
- See API.
-
getInt(String)
- See API.
-
getIt(int, int, String, int)
-
-
getLong(int)
- See API.
-
getLong(String)
- See API.
-
getMetaData()
-
-
getObject(int)
- getObject returns a byte array as an object
-
getObject(String)
- getObject returns a byte array as an object
-
getShort(int)
- See API.
-
getShort(String)
- See API.
-
getString(int)
- See the API
-
getString(String)
- See the API
-
getTime(int)
- See API
-
getTime(String)
- See API
-
getTimestamp(int)
- See API
-
getTimestamp(String)
- See API
-
getUnicodeStream(int)
- See API.
-
getUnicodeStream(String)
- See API.
-
getWarnings()
- We don't support warnings at this time.
-
iClose()
- We be closed!
-
isRetrieved()
-
-
myID()
- Tell others who I am.
-
next()
- See API.
-
nopSynch(String)
-
-
nParse(String, int)
-
-
retrieved(boolean)
-
-
testBool(String)
-
-
testStatus(String)
-
-
wasNull()
- A thoughtless API request.
myOID
int myOID
- My object id
result
jdbcMysqlResult result
- Access the result
statement
jdbcMysqlStmt statement
- Access the statement
retrieved
boolean retrieved
- Has this RS been retrieved
inBag
jdbcMysqlBag inBag
- Access to the input
metadata
RSMd metadata
- Access to the mapping
currentRow
int currentRow
- Current row
isClosed
boolean isClosed
- Have we been closed
isDone
boolean isDone
- Have we exhaused data
isStarted
boolean isStarted
- Have we even started yet
noMoreData
boolean noMoreData
- Are we done
lastNull
boolean lastNull
- A bit of API silliness
rsLock
boolean rsLock
- do we lock before answering inquiries ?
gettable
boolean gettable
rsDateXcept
boolean rsDateXcept
- Do we throw exception in getDate before 1900?
columnCount
int columnCount
- localize column count
cached
boolean cached
lTimeout
int lTimeout
maxRows
int maxRows
xRow
Row xRow
mcache
Vector mcache
mcacheSize
int mcacheSize
GETSTRING
static final int GETSTRING
GETBOOLEAN
static final int GETBOOLEAN
GETBYTE
static final int GETBYTE
GETSHORT
static final int GETSHORT
GETINT
static final int GETINT
GETLONG
static final int GETLONG
GETFLOAT
static final int GETFLOAT
GETDOUBLE
static final int GETDOUBLE
GETBIGDECIMAL
static final int GETBIGDECIMAL
GETBYTES
static final int GETBYTES
GETDATE
static final int GETDATE
GETTIME
static final int GETTIME
GETTIMESTAMP
static final int GETTIMESTAMP
GETASCIISTREAM
static final int GETASCIISTREAM
GETBINARYSTREAM
static final int GETBINARYSTREAM
GETUNICODESTREAM
static final int GETUNICODESTREAM
GETOBJECT
static final int GETOBJECT
FINDCOLUMN
static final int FINDCOLUMN
GETMETADATA
static final int GETMETADATA
WASNULL
static final int WASNULL
nameIt
static final String nameIt[]
errs
static final String errs[]
jdbcMysqlRSet
jdbcMysqlRSet(jdbcMysqlResult mresult) throws SQLException
iClose
void iClose() throws SQLException
- We be closed!
myID
int myID()
- Tell others who I am.
next
public boolean next() throws SQLException
- See API. Get next row
close
public void close() throws SQLException
- See API.
getWarnings
public SQLWarning getWarnings() throws SQLException
- We don't support warnings at this time. Do the sync just to
stay kosher
clearWarnings
public void clearWarnings() throws SQLException
- I said we don't support warnings!
getCursorName
public String getCursorName() throws SQLException
- MySQL doesn't do cursors. Puke as required by the API.
wasNull
public boolean wasNull() throws SQLException
- A thoughtless API request. There is no way to make
this threadsafe!
getMetaData
public ResultSetMetaData getMetaData() throws SQLException
findColumn
public int findColumn(String name) throws SQLException
- Return the ordinal column
getString
public String getString(int c) throws SQLException
- See the API
getString
public String getString(String c) throws SQLException
- See the API
getBoolean
public boolean getBoolean(int c) throws SQLException
- See the API. Nominally MySQL does not support booleans, but I will
interpret "true", "false", "yes", "no", "y", "n", "0" or "1" as boolean
data.
getBoolean
public boolean getBoolean(String c) throws SQLException
- See the API. Nominally MySQL does not support booleans, but I will
interpret "true", "false", "yes", "no", "y", "n", "0" or "1" as boolean
data.
getByte
public byte getByte(int c) throws SQLException
- See API.
getByte
public byte getByte(String c) throws SQLException
- See API.
getShort
public short getShort(int c) throws SQLException
- See API.
getShort
public short getShort(String c) throws SQLException
- See API.
getInt
public int getInt(int c) throws SQLException
- See API.
getInt
public int getInt(String c) throws SQLException
- See API.
getLong
public long getLong(int c) throws SQLException
- See API.
getLong
public long getLong(String c) throws SQLException
- See API.
getFloat
public float getFloat(int c) throws SQLException
- See API
getFloat
public float getFloat(String c) throws SQLException
- See API
getDouble
public double getDouble(int c) throws SQLException
- See the API
getDouble
public double getDouble(String c) throws SQLException
- See the API
getBigDecimal
public BigDecimal getBigDecimal(int c,
int s) throws SQLException
- See API
getBigDecimal
public BigDecimal getBigDecimal(String c,
int s) throws SQLException
- See API
getBytes
public byte[] getBytes(int c) throws SQLException
- See API
getBytes
public byte[] getBytes(String c) throws SQLException
- See API
getDate
public Date getDate(int c) throws SQLException
- See API
getDate
public Date getDate(String c) throws SQLException
- See API
getTime
public Time getTime(int c) throws SQLException
- See API
getTime
public Time getTime(String c) throws SQLException
- See API
getTimestamp
public Timestamp getTimestamp(int c) throws SQLException
- See API
getTimestamp
public Timestamp getTimestamp(String c) throws SQLException
- See API
getAsciiStream
public InputStream getAsciiStream(int c) throws SQLException
- See API. Because MySQL does not distinguish non-ASCII characters
getAsciiInputStream and getBinaryInputStream are treated the same.
getAsciiStream
public InputStream getAsciiStream(String c) throws SQLException
- See API. Because MySQL does not distinguish non-ASCII characters
getAsciiInputStream and getBinaryInputStream are treated the same.
getBinaryStream
public InputStream getBinaryStream(int c) throws SQLException
- See API. Because MySQL does not distinguish non-ASCII characters
getAsciiInputStream and getBinaryInputStream are treated the same.
getBinaryStream
public InputStream getBinaryStream(String c) throws SQLException
- See API. Because MySQL does not distinguish non-ASCII characters
getAsciiInputStream and getBinaryInputStream are treated the same.
getUnicodeStream
public InputStream getUnicodeStream(int c) throws SQLException
- See API. As implemented here this really does assume that
String is unicode and that getBytes() returns a byte representation
of the unicode string. Will fix this when/if Sun gets their act
together re encoding and if/when someone complains (they will!).
getUnicodeStream
public InputStream getUnicodeStream(String c) throws SQLException
- See API. As implemented here this really does assume that
String is unicode and that getBytes() returns a byte representation
of the unicode string. Will fix this when/if Sun gets their act
together re encoding and if/when someone complains (they will!).
getObject
public Object getObject(int c) throws SQLException
- getObject returns a byte array as an object
getObject
public Object getObject(String c) throws SQLException
- getObject returns a byte array as an object
getIt
private Object getIt(int huh,
int cnum,
String cnam,
int tflag) throws SQLException
nParse
private int[] nParse(String s,
int tt) throws SQLException
testBool
private boolean testBool(String work) throws SQLException
nopSynch
private void nopSynch(String n) throws SQLException
fByName
private jdbcMysqlField fByName(String cnam) throws SQLException
retrieved
void retrieved(boolean r)
isRetrieved
boolean isRetrieved()
testStatus
private void testStatus(String s) throws SQLException
errHandlerE
private void errHandlerE(int n,
Exception e) throws SQLException
errHandlerE2
private void errHandlerE2(int n,
int where,
String how,
Exception e) throws SQLException
errHandlerE2b
private void errHandlerE2b(int n,
int where,
String how,
Exception e) throws SQLException
errHandlerM
private void errHandlerM(int n,
String s) throws SQLException
errHandlerNM
private void errHandlerNM(int n,
int u,
String s) throws SQLException
All Packages Class Hierarchy This Package Previous Next Index