|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
com.antelmann.db.DatabaseTableModel
public class DatabaseTableModel
lists all available DBClassStore instances with their size. The table is updated automatically upon data changes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.antelmann.db.DBStoreListener |
|---|
DBStoreListener.Adapter, DBStoreListener.StoreUpdateAdapter |
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
DatabaseTableModel(Database<?> db)
|
|
| Method Summary | |
|---|---|
void |
databaseAccessed(DBClassStore<?> dbstore,
DBClassStore.DBMethod method,
Object parameter,
long timeTaken)
called upon successfully reading from the database (guaranteed to be called from within the transaction). |
void |
databaseError(DBClassStore<?> dbstore,
Throwable t,
DBClassStore.DBMethod method,
Object parameter)
called when an error occurred while accessing the database (not guaranteed to be called from within the transaction) |
void |
databaseUpdated(DBUpdateEvent event,
long timeTaken)
called upon successful insert, delete or update; note that the update becomes permanent ONLY if the current transaction successfully commits. |
void |
fetchCall(DBClassStore<?> store,
DBEnumeration<?> e,
String method,
long timeTaken)
called when a method is called on a DBEnumeration that is returned by the store |
protected void |
finalize()
|
Class<?> |
getColumnClass(int column)
|
int |
getColumnCount()
|
String |
getColumnName(int column)
|
int |
getRowCount()
|
Object |
getValueAt(int row,
int column)
|
void |
prepareDatabaseCall(DBClassStore<?> dbstore,
DBClassStore.DBMethod method,
Object parameter)
called before the given method is delegated to the embedded store |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseTableModel(Database<?> db)
| Method Detail |
|---|
public int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModel
public Object getValueAt(int row,
int column)
getValueAt in interface TableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Class<?> getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelprotected void finalize()
finalize in class Object
public void databaseUpdated(DBUpdateEvent event,
long timeTaken)
DBStoreListener
databaseUpdated in interface DBStoreListenerTransactionListener,
DatabaseChangeMonitor,
DBVersionedUpdateEvent,
Database.setVersioningEnabled(Class, boolean)
public void prepareDatabaseCall(DBClassStore<?> dbstore,
DBClassStore.DBMethod method,
Object parameter)
throws DBVetoException
DBStoreListener
prepareDatabaseCall in interface DBStoreListenerDBVetoException - if a listener seeks to prevent the call to the embedded store
public void databaseAccessed(DBClassStore<?> dbstore,
DBClassStore.DBMethod method,
Object parameter,
long timeTaken)
DBStoreListenerDBStoreListener.databaseUpdated(DBUpdateEvent, long)
is called.
databaseAccessed in interface DBStoreListener
public void databaseError(DBClassStore<?> dbstore,
Throwable t,
DBClassStore.DBMethod method,
Object parameter)
DBStoreListener
databaseError in interface DBStoreListener
public void fetchCall(DBClassStore<?> store,
DBEnumeration<?> e,
String method,
long timeTaken)
DBStoreListener
fetchCall in interface DBStoreListenerDBClassStore.fetch(com.antelmann.util.Filter),
DBClassStore.fetchStubs(com.antelmann.util.Filter),
DBEnumeration
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||