org.acmsl.queryj
Class Table

java.lang.Object
  |
  +--org.acmsl.queryj.Table
Direct Known Subclasses:
CardtypeTable

public abstract class Table
extends java.lang.Object

Represents relational tables.

Version:
$Revision: 1.1 $
Author:
Jose San Leandro

Field Summary
 java.lang.String m__strName
          The table name.
 
Constructor Summary
protected Table(java.lang.String name)
          Builds a table using given information.
 
Method Summary
abstract  Field[] getAll()
          Retrieves all fields.
 java.lang.String getName()
          Retrieves the table name.
protected  void setName(java.lang.String name)
          Specifies the table name.
 java.lang.String toString()
          Outputs a text version of the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m__strName

public java.lang.String m__strName
The table name.

Constructor Detail

Table

protected Table(java.lang.String name)
Builds a table using given information.

Parameters:
name - the name.
Method Detail

getAll

public abstract Field[] getAll()
Retrieves all fields. It's equivalent to a star in a query.

Returns:
such fields.

setName

protected void setName(java.lang.String name)
Specifies the table name.

Parameters:
name - the name.

getName

public java.lang.String getName()
Retrieves the table name.

Returns:
such reference.

toString

public java.lang.String toString()
Outputs a text version of the table.

Overrides:
toString in class java.lang.Object
Returns:
the table.


Copyright © 2003 ACM S.L.. All Rights Reserved.