All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JBMSTours.vti.jdbc1_2.jarvti

java.lang.Object
   |
   +----COM.cloudscape.vti.VTITemplate
           |
           +----JBMSTours.vti.jdbc1_2.jarvti

public class jarvti
extends VTITemplate
implements VTICosting
Look at the Source.

This read-only VTI class opens a jar file and returns the metadata information in the form of a table. You can select from an instance of this class provided that you give it a proper parameter and a correlation name.

This class also provides some costing information to the optimizer. If the actual jar file name is known at compilation, this class can provide very accurate costing information. If not, the class returns some default information that show that in general instantiating this class is very cheap (it's very cheap to iterate through the metadata information in a jar file).


Variable Index

 o myEstimatedCost
 o myEstimatedRowCount
 o rowcount

Constructor Index

 o jarvti(String)
Instantiates the vti given a jar name.

Method Index

 o close()
Close the vti.
 o getBinaryStream(int)
Get the value of the specified data type from a column.
 o getBoolean(int)
Get the value of the specified data type from a column.
 o getEstimatedCostPerInstantiation(VTIEnvironment)
Return the estimated cost..
 o getEstimatedRowCount(VTIEnvironment)
Return the estimated row count.
 o getLong(int)
Get the value of the specified data type from a column.
 o getMetaData()
Return the metadata needed by Cloudscape for the ResultSet.
 o getObject(int)
Get the value of the specified data type from a column.
 o getString(int)
Get the value of the specified data type from a column.
 o getTimestamp(int)
Get the value of the specified data type from a column.
 o next()
Go to the next "row".
 o supportsMultipleInstantiations(VTIEnvironment)
Return whether this vti can be instantiated more than once (yes).

Variables

 o myEstimatedRowCount
 public double myEstimatedRowCount
 o myEstimatedCost
 public double myEstimatedCost
 o rowcount
 public Integer rowcount

Constructors

 o jarvti
 public jarvti(String jarName) throws SQLException
Instantiates the vti given a jar name.

Throws: SQLException
Thrown if there is a SQL error.

Methods

 o next
 public boolean next() throws SQLException
Go to the next "row".

Throws: SQLException
Thrown if there is a SQL error.
Overrides:
next in class VTITemplate
 o getString
 public String getString(int column) throws SQLException
Get the value of the specified data type from a column.

Throws: SQLException
Thrown if there is a SQL error.
Overrides:
getString in class VTITemplate
 o getBoolean
 public boolean getBoolean(int column) throws SQLException
Get the value of the specified data type from a column.

Throws: SQLException
Thrown if there is a SQL error.
Overrides:
getBoolean in class VTITemplate
 o getTimestamp
 public Timestamp getTimestamp(int column) throws SQLException
Get the value of the specified data type from a column.

Throws: SQLException
Thrown if there is a SQL error.
Overrides:
getTimestamp in class VTITemplate
 o getLong
 public long getLong(int column) throws SQLException
Get the value of the specified data type from a column.

Throws: SQLException
Thrown if there is a SQL error.
Overrides:
getLong in class VTITemplate
 o getBinaryStream
 public InputStream getBinaryStream(int column) throws SQLException
Get the value of the specified data type from a column.

Throws: SQLException
Thrown if there is a SQL error.
Overrides:
getBinaryStream in class VTITemplate
 o getObject
 public Object getObject(int col) throws SQLException
Get the value of the specified data type from a column.

Throws: SQLException
Thrown if there is a SQL error.
Overrides:
getObject in class VTITemplate
 o close
 public void close()
Close the vti.

Overrides:
close in class VTITemplate
 o getMetaData
 public ResultSetMetaData getMetaData()
Return the metadata needed by Cloudscape for the ResultSet.

Overrides:
getMetaData in class VTITemplate
 o getEstimatedRowCount
 public double getEstimatedRowCount(VTIEnvironment vtiEnvironment) throws SQLException
Return the estimated row count. Used by the Cloudscape optimizer.

Throws: SQLException
Thrown if there is a SQL error.
 o getEstimatedCostPerInstantiation
 public double getEstimatedCostPerInstantiation(VTIEnvironment vtiEnvironment) throws SQLException
Return the estimated cost.. Used by the Cloudscape optimizer.

Throws: SQLException
Thrown if there is a SQL error.
 o supportsMultipleInstantiations
 public boolean supportsMultipleInstantiations(VTIEnvironment vtiEnvironment) throws SQLException
Return whether this vti can be instantiated more than once (yes).

Throws: SQLException
Thrown if there is a SQL error.

All Packages  Class Hierarchy  This Package  Previous  Next  Index