|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.billpringle.utils.wrputils.WrpResultSetRow
public class WrpResultSetRow
This class encapsulates a record within a ResultSet.
It can be used with
WrpResultSetRow
to create a JTable.
![]() |
![]() |
Unless noted otherwise, all materials available for download from my site are copyrighted by Bill Pringle, and are licensed under a Creative Commons License. |
Field Summary | |
---|---|
java.lang.String[] |
colNames
names of columns |
java.lang.String[] |
colTypes
data types of columns |
java.lang.String[] |
colValues
vector for columns |
int |
ncols
number of columns |
WrpResultSetVector |
vec
parent result set vector |
Constructor Summary | |
---|---|
WrpResultSetRow(WrpResultSetVector vec)
Normal constructor. |
Method Summary | |
---|---|
private void |
buildColumns()
Extract the columns for this record and convert to an array of strings. |
java.lang.String[] |
getColNames()
|
java.lang.String |
getColString(int ndx)
Get the column value as a string |
java.lang.String[] |
getColTypes()
|
java.lang.String[] |
getColValues()
|
int |
getNcols()
|
WrpResultSetVector |
getVec()
|
void |
setColNames(java.lang.String[] colNames)
|
void |
setColTypes(java.lang.String[] colTypes)
|
void |
setColValues(java.lang.String[] colValues)
|
void |
setNcols(int ncols)
|
void |
setVec(WrpResultSetVector vec)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public WrpResultSetVector vec
public int ncols
public java.lang.String[] colNames
public java.lang.String[] colTypes
public java.lang.String[] colValues
Constructor Detail |
---|
public WrpResultSetRow(WrpResultSetVector vec) throws java.sql.SQLException
vec
- parent vector
java.sql.SQLException
Method Detail |
---|
private void buildColumns() throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getColString(int ndx)
ndx
- index of column
public WrpResultSetVector getVec()
public void setVec(WrpResultSetVector vec)
vec
- the vec to setpublic int getNcols()
public void setNcols(int ncols)
ncols
- the ncols to setpublic java.lang.String[] getColNames()
public void setColNames(java.lang.String[] colNames)
colNames
- the colNames to setpublic java.lang.String[] getColTypes()
public void setColTypes(java.lang.String[] colTypes)
colTypes
- the colTypes to setpublic java.lang.String[] getColValues()
public void setColValues(java.lang.String[] colValues)
colValues
- the colValues to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |