|
|||||||||
| Home >> All >> javatools >> [ db overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javatools.db
Class AbstractTable

java.lang.Objectjavatools.db.AbstractTable
- All Implemented Interfaces:
- DbTableUser
- Direct Known Subclasses:
- DbAbstractTable
- public abstract class AbstractTable
- extends java.lang.Object
- implements DbTableUser
- extends java.lang.Object
A class representing tabular data. Could be a real database table or the result of a SELECT. Based upon class DbTable written by Chris Bitmead, of which it is an abstraction to differentiate between real tables and results of a SELECT command.
- Version:
- 0.2.0
| Field Summary | |
protected java.util.HashMap |
colNameMap
Maps the columns to their names. |
protected int[] |
displaySize
This array contains the display size for each field. |
protected java.lang.String[] |
names
This array contains the names of the fields of the table. |
protected java.lang.String |
tableName
The name of used table |
protected int[] |
types
This array contains the SQL types for each field. |
| Constructor Summary | |
AbstractTable()
|
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Check if an object is equal to the current one. |
int |
getColumnCount()
Returns the number of columns |
int |
getColumnIndex(java.lang.String value)
|
java.lang.String |
getColumnName(int index)
|
java.lang.String |
getFullTableName()
Returns the complete table name. |
void |
setColumnCount(int size)
|
void |
setColumnName(int index,
java.lang.String value)
|
void |
setTableName(java.lang.String v)
Sets the name of the referenced table. |
void |
usesTables(java.util.Set c)
Returns used tables (useful in joined tables). |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
colNameMap
protected java.util.HashMap colNameMap
- Maps the columns to their names.
tableName
protected java.lang.String tableName
- The name of used table
names
protected java.lang.String[] names
- This array contains the names of the fields of the table.
displaySize
protected int[] displaySize
- This array contains the display size for each field.
types
protected int[] types
- This array contains the SQL types for each field.
| Constructor Detail |
AbstractTable
public AbstractTable()
| Method Detail |
setTableName
public void setTableName(java.lang.String v)
- Sets the name of the referenced table.
getFullTableName
public java.lang.String getFullTableName()
- Returns the complete table name.
getColumnName
public java.lang.String getColumnName(int index)
getColumnIndex
public int getColumnIndex(java.lang.String value)
setColumnName
public void setColumnName(int index,
java.lang.String value)
getColumnCount
public int getColumnCount()
- Returns the number of columns
setColumnCount
public void setColumnCount(int size)
equals
public boolean equals(java.lang.Object o)
- Check if an object is equal to the current one.
usesTables
public void usesTables(java.util.Set c)
- Returns used tables (useful in joined tables).
- Specified by:
usesTablesin interfaceDbTableUser
|
|||||||||
| Home >> All >> javatools >> [ db overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
javatools.db.AbstractTable