public class DbModel
Abstract class that models a database model with an ID
Constructor and Description |
---|
DbModel(Table table,
int id)
Abstract class that models a database model with an ID
|
Modifier and Type | Method and Description |
---|---|
void |
delete(DbHandler dbHandler)
Deletes the model from the database
|
int |
getId()
:
|
Table |
getTable()
:
|
java.lang.String |
toString()
Creates a semicolon-separated String representation of the Model
|
public DbModel(Table table, int id)
Abstract class that models a database model with an ID
table
- : The table in which the model is storedid
- : The ID of the model in the tabletable
- : The table in which the model is storedid
- : The ID of the model in the tablepublic void delete(DbHandler dbHandler)
Deletes the model from the database
dbHandler
- : The database handler to usepublic java.lang.String toString()
Creates a semicolon-separated String representation of the Model
public Table getTable()
:
The table in which the model is stored
public int getId()
:
The ID of the model in the table