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).
-
myEstimatedCost
-
-
myEstimatedRowCount
-
-
rowcount
-
-
jarvti(String)
- Instantiates the vti given a jar name.
-
close()
- Close the vti.
-
getBinaryStream(int)
- Get the value of the specified data type from a column.
-
getBoolean(int)
- Get the value of the specified data type from a column.
-
getEstimatedCostPerInstantiation(VTIEnvironment)
- Return the estimated cost..
-
getEstimatedRowCount(VTIEnvironment)
- Return the estimated row count.
-
getLong(int)
- Get the value of the specified data type from a column.
-
getMetaData()
- Return the metadata needed by Cloudscape for the ResultSet.
-
getObject(int)
- Get the value of the specified data type from a column.
-
getString(int)
- Get the value of the specified data type from a column.
-
getTimestamp(int)
- Get the value of the specified data type from a column.
-
next()
- Go to the next "row".
-
supportsMultipleInstantiations(VTIEnvironment)
- Return whether this vti can be instantiated more than once (yes).
myEstimatedRowCount
public double myEstimatedRowCount
myEstimatedCost
public double myEstimatedCost
rowcount
public Integer rowcount
jarvti
public jarvti(String jarName) throws SQLException
- Instantiates the vti given a jar name.
- Throws: SQLException
- Thrown if there is a SQL error.
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
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
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
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
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
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
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
close
public void close()
- Close the vti.
- Overrides:
- close in class VTITemplate
getMetaData
public ResultSetMetaData getMetaData()
- Return the metadata needed by Cloudscape for the ResultSet.
- Overrides:
- getMetaData in class VTITemplate
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.
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.
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