com.danieleturi.sql
Class TableEntry

java.lang.Object
  |
  +--com.danieleturi.sql.TableEntry
All Implemented Interfaces:
Persistent
Direct Known Subclasses:
DatedTableEntry

public abstract class TableEntry
extends Object
implements Persistent


Constructor Summary
TableEntry(String tableName, DBInterface dbInterface)
           
TableEntry(String tableName, String db, String user, String pwd)
           
 
Method Summary
 DBInterface getDbInterface()
           
abstract  String getPkString()
           
 String getTableName()
           
 void remove()
           
 void remove(String table, String where)
           
 ResultSet select()
           
 void setDbInterface(DBInterface v)
           
 void setTableName(String v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.danieleturi.sql.Persistent
isValid, load, store
 

Constructor Detail

TableEntry

public TableEntry(String tableName,
                  String db,
                  String user,
                  String pwd)
           throws SQLException

TableEntry

public TableEntry(String tableName,
                  DBInterface dbInterface)
Method Detail

getTableName

public String getTableName()

setTableName

public void setTableName(String v)

getDbInterface

public DBInterface getDbInterface()

setDbInterface

public void setDbInterface(DBInterface v)

select

public ResultSet select()
                 throws SQLException
SQLException

remove

public void remove(String table,
                   String where)
            throws SQLException
SQLException

remove

public void remove()
            throws SQLException
Specified by:
remove in interface Persistent
SQLException

getPkString

public abstract String getPkString()