public abstract class RoverTable<T>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
RoverTable(RoverDatabase database,
java.lang.String name) |
protected |
RoverTable(RoverDatabase database,
java.lang.String name,
java.lang.String... fieldNames) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
abstract void |
create() |
abstract void |
delete(T oldRecord) |
void |
drop() |
RoverDatabase |
getDatabase() |
protected SqlDeleter |
getDeleter() |
protected SqlInserter |
getInserter() |
int |
getLastGeneratedId() |
SqlTable |
getTable() |
protected SqlUpdater |
getUpdater() |
abstract int |
insert(int dataId,
T newRecord) |
abstract T |
recordWithId(int id) |
abstract void |
update(T updatedRecord) |
protected RoverTable(RoverDatabase database, java.lang.String name) throws java.sql.SQLException
java.sql.SQLExceptionprotected RoverTable(RoverDatabase database, java.lang.String name, java.lang.String... fieldNames) throws java.sql.SQLException
java.sql.SQLExceptionpublic abstract void create()
throws java.sql.SQLException
java.sql.SQLExceptionpublic abstract int insert(int dataId,
T newRecord)
throws java.sql.SQLException,
java.io.IOException
java.sql.SQLExceptionjava.io.IOExceptionpublic abstract void delete(T oldRecord) throws java.sql.SQLException
java.sql.SQLExceptionpublic abstract void update(T updatedRecord) throws java.sql.SQLException, java.io.IOException
java.sql.SQLExceptionjava.io.IOExceptionpublic abstract T recordWithId(int id) throws java.sql.SQLException, java.io.IOException
java.sql.SQLExceptionjava.io.IOExceptionpublic void drop()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void clear()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getLastGeneratedId()
throws java.sql.SQLException
java.sql.SQLExceptionpublic RoverDatabase getDatabase()
public SqlTable getTable()
protected SqlDeleter getDeleter() throws java.sql.SQLException
java.sql.SQLExceptionprotected SqlInserter getInserter() throws java.sql.SQLException
java.sql.SQLExceptionprotected SqlUpdater getUpdater() throws java.sql.SQLException
java.sql.SQLException