Class com.imaginary.sql.msql.RowTokenizer
java.lang.Object
|
+--com.imaginary.sql.msql.RowTokenizer
- public class RowTokenizer
- extends java.lang.Object
- implements ParsedRow
Represents a row parsed straight from mSQL. It takes in a row of raw data
from a connection to mSQL and parses it into a list of columns values.
Last modified $Date: 1999/07/06 05:56:16 $
- Version:
- $Revision: 1.2 $
- Author:
- George Reese (borg@imaginary.com)
Method Summary
|
java.util.Iterator
|
columns()
|
java.lang.String
|
get(int i)
|
boolean
|
hasColumn(int col)
|
void
|
set(int i,
java.lang.String val)
|
int
|
size()
|
java.lang.String
|
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
RowTokenizer
public RowTokenizer(byte[] data)
RowTokenizer
public RowTokenizer(byte[] data,
int sz)
columns
public java.util.Iterator columns()
throws MsqlException
- Description copied from interface:
Provides an iterator that lets a class run through each of the
column values.
- Specified by:
- columns in interface ParsedRow
get
public java.lang.String get(int i)
throws MsqlException
- Description copied from interface:
Provides a specific column value.
- Specified by:
- get in interface ParsedRow
hasColumn
public boolean hasColumn(int col)
throws MsqlException
- Description copied from interface:
Lets you know if the specified column exists.
- Specified by:
- hasColumn in interface ParsedRow
set
public void set(int i,
java.lang.String val)
- Description copied from interface:
Assigns a new value to the specified column.
- Specified by:
- set in interface ParsedRow
size
public int size()
throws MsqlException
- Description copied from interface:
- Specified by:
- size in interface ParsedRow
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object