|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.billpringle.utils.wrputils.WrpResultSetVector
public class WrpResultSetVector
This class encapsulates a ResultSet.
The class can be used to build a JTable for the record set.
The class contains a Vector of type
WrpResultSetVector
.
![]() |
![]() |
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 |
int[] |
colScroll
columns to display in scroll view |
java.lang.String[] |
colTypes
names of column types |
java.sql.ResultSet |
resultSet
result set |
java.util.Vector<WrpResultSetRow> |
rows
rows of result set |
Constructor Summary | |
---|---|
WrpResultSetVector(java.sql.ResultSet rs)
Constructor for result set. |
Method Summary | |
---|---|
private void |
buildColNames()
Build a String array with column names. |
private void |
buildRows()
Build Vector of row elements |
java.lang.String[] |
getColNames()
|
int[] |
getColScroll()
|
java.lang.String[] |
getColTypes()
|
java.sql.ResultSet |
getResultSet()
|
WrpResultSetRow |
getRow(int ndx)
Get the corresponding row from the result set |
java.util.Vector<WrpResultSetRow> |
getRows()
|
void |
setColNames(java.lang.String[] colNames)
|
void |
setColScroll(int[] colScroll)
|
void |
setColTypes(java.lang.String[] colTypes)
|
void |
setResultSet(java.sql.ResultSet resultSet)
|
void |
setRows(java.util.Vector<WrpResultSetRow> rows)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.sql.ResultSet resultSet
public java.lang.String[] colNames
public java.lang.String[] colTypes
public int[] colScroll
public java.util.Vector<WrpResultSetRow> rows
Constructor Detail |
---|
public WrpResultSetVector(java.sql.ResultSet rs) throws java.sql.SQLException
rs
- the ResultSet to encapsulate
java.sql.SQLException
Method Detail |
---|
private void buildColNames() throws java.sql.SQLException
java.sql.SQLException
private void buildRows() throws java.sql.SQLException
java.sql.SQLException
public WrpResultSetRow getRow(int ndx)
ndx
- index of row
public java.sql.ResultSet getResultSet()
public void setResultSet(java.sql.ResultSet resultSet)
resultSet
- the resultSet 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 int[] getColScroll()
public void setColScroll(int[] colScroll)
colScroll
- the colScroll to setpublic java.util.Vector<WrpResultSetRow> getRows()
public void setRows(java.util.Vector<WrpResultSetRow> rows)
rows
- the rows to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |