net.sf.saffron.ext
Class AbstractTable

java.lang.Object
  |
  +--net.sf.saffron.ext.AbstractTable
All Implemented Interfaces:
SaffronTable
Direct Known Subclasses:
ExtentTable, JdbcTable, ObjectTable

public abstract class AbstractTable
extends Object
implements SaffronTable

A AbstractTable is a partial implementation of SaffronTable.

Since:
May 3, 2002
Version:
$Id: //open/saffron/src/net/sf/saffron/ext/AbstractTable.java#3 $
Author:
jhyde

Field Summary
(package private)  String name
           
(package private)  SaffronType rowType
           
(package private)  SaffronSchema schema
           
 
Constructor Summary
protected AbstractTable(SaffronSchema schema, String name, SaffronType rowType)
           
 
Method Summary
 String getName()
           
 String getQualifiedName()
          Obtain an identifier for this table.
 double getRowCount()
          Returns an estimate of the number of rows in the table.
 SaffronType getRowType()
          Describes the type of rows returned by this table.
 SaffronSchema getSaffronSchema()
          Returns the SaffronSchema this table belongs to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.saffron.core.SaffronTable
toRel
 

Field Detail

schema

SaffronSchema schema

rowType

final SaffronType rowType

name

String name
Constructor Detail

AbstractTable

protected AbstractTable(SaffronSchema schema,
                        String name,
                        SaffronType rowType)
Method Detail

getName

public String getName()

getQualifiedName

public String getQualifiedName()
Description copied from interface: SaffronTable
Obtain an identifier for this table. The identifier must be unique with respect to the Connection producing this table.

Specified by:
getQualifiedName in interface SaffronTable
Returns:
qualified name

getRowCount

public double getRowCount()
Description copied from interface: SaffronTable
Returns an estimate of the number of rows in the table.

Specified by:
getRowCount in interface SaffronTable

getRowType

public SaffronType getRowType()
Description copied from interface: SaffronTable
Describes the type of rows returned by this table.

Specified by:
getRowType in interface SaffronTable

getSaffronSchema

public SaffronSchema getSaffronSchema()
Description copied from interface: SaffronTable
Returns the SaffronSchema this table belongs to.

Specified by:
getSaffronSchema in interface SaffronTable

SourceForge.net_Logo