Class PermanentResultSet

java.lang.Object
  extended byPermanentResultSet
All Implemented Interfaces:
java.io.Serializable

public class PermanentResultSet
extends java.lang.Object
implements java.io.Serializable

This class rapresents a ResultSet that can be saved using Serializable interface

See Also:
Serialized Form

Field Summary
 int cn
           
protected  java.util.Vector columnNames
           
protected  java.util.Vector doc
           
private  java.lang.String fileName
           
private  boolean isSaved
           
private  OrderedData od
           
private  java.io.ObjectInputStream ois
           
private  java.io.ObjectOutputStream oos
           
private  java.sql.ResultSet rs
           
 int tn
           
 
Constructor Summary
(package private) PermanentResultSet(java.io.ObjectOutputStream oos, java.util.Vector savedDoc, java.util.Vector columnNames, int cn, int tn)
          Constructor used for output streaming ,starting by a Vector that contains data
(package private) PermanentResultSet(java.sql.ResultSet rs1, java.io.ObjectOutputStream oos)
          Constructor for output streaming ,starting by a ResultSet
(package private) PermanentResultSet(java.lang.String fileName, java.io.ObjectInputStream ois)
          Constructor used only for initializing an outputstream
 
Method Summary
 void read()
          Method used to read stored data
private  void readObject(java.io.ObjectInputStream in)
          Serializable interface implementation
 void write()
          Method used to write ResultSet
private  void writeObject(java.io.ObjectOutputStream out)
          Serializable interface implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

protected java.util.Vector doc

columnNames

protected java.util.Vector columnNames

od

private OrderedData od

rs

private java.sql.ResultSet rs

oos

private java.io.ObjectOutputStream oos

ois

private java.io.ObjectInputStream ois

fileName

private java.lang.String fileName

cn

public int cn

tn

public int tn

isSaved

private boolean isSaved
Constructor Detail

PermanentResultSet

PermanentResultSet(java.sql.ResultSet rs1,
                   java.io.ObjectOutputStream oos)
             throws java.io.IOException
Constructor for output streaming ,starting by a ResultSet


PermanentResultSet

PermanentResultSet(java.lang.String fileName,
                   java.io.ObjectInputStream ois)
Constructor used only for initializing an outputstream


PermanentResultSet

PermanentResultSet(java.io.ObjectOutputStream oos,
                   java.util.Vector savedDoc,
                   java.util.Vector columnNames,
                   int cn,
                   int tn)
Constructor used for output streaming ,starting by a Vector that contains data

Method Detail

write

public void write()
Method used to write ResultSet


read

public void read()
Method used to read stored data


writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Serializable interface implementation

Throws:
java.io.IOException

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Serializable interface implementation

Throws:
java.io.IOException
java.lang.ClassNotFoundException