|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.appworx.DefaultQbfPlugin
public class DefaultQbfPlugin
The default implementation of a QbfPlugin.
| Field Summary | |
|---|---|
protected DbCursor<? extends AppDbObject> |
cursor
|
protected Collection<? extends AppDbObject> |
list
|
protected QbfParameter |
parameter
|
protected int |
rowCount
|
| Constructor Summary | |
|---|---|
DefaultQbfPlugin(Class<? extends AppDbObject> clazz,
ContextDb contextDb)
Creates a plugin for a class and database context |
|
DefaultQbfPlugin(QbfParameter parameter)
Creates a plugin from a parameter. |
|
| Method Summary | |
|---|---|
void |
cleanup()
Closes the plugin and release all ressources (esp. |
boolean |
executeQuery()
Executes the query. |
DbCursor<? extends AppDbObject> |
getCursor()
|
Collection<? extends AppDbObject> |
getObjects()
Gets the query result as a collection of objects. |
QbfPanel |
getPanel()
Determines the panel to enter the search criteria. |
QbfParameter |
getParameter()
Gets the search criteria (usually entered by the user). |
int |
getRowCount()
Gets the number of objects. |
boolean |
isParameterValid()
Performs a validation of the search criteria. |
boolean |
isResultDisplayable()
Checks whether the result is displayable, i.e. |
AppDbObject |
newAppDbObject()
Creates a new object in the database context of the plugin. |
String |
notFoundMessage()
Returns a message for "no such data found..." or whatever. |
void |
setCursor(DbCursor<? extends AppDbObject> cursor)
Sets the cursor. |
void |
setObjects(Collection<? extends AppDbObject> objects)
Sets the objects. |
void |
setParameter(QbfParameter parameter)
Initializes the search criteria. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected QbfParameter parameter
protected DbCursor<? extends AppDbObject> cursor
protected Collection<? extends AppDbObject> list
protected int rowCount
| Constructor Detail |
|---|
public DefaultQbfPlugin(QbfParameter parameter)
parameter - the qbf parameter
public DefaultQbfPlugin(Class<? extends AppDbObject> clazz,
ContextDb contextDb)
clazz - the data object classcontextDb - the database context| Method Detail |
|---|
public void cleanup()
QbfPlugin
cleanup in interface QbfPluginpublic boolean executeQuery()
QbfPlugin
executeQuery in interface QbfPluginpublic DbCursor<? extends AppDbObject> getCursor()
getCursor in interface QbfPluginpublic void setCursor(DbCursor<? extends AppDbObject> cursor)
cursor - the cursorpublic Collection<? extends AppDbObject> getObjects()
QbfPlugin
getObjects in interface QbfPluginpublic void setObjects(Collection<? extends AppDbObject> objects)
objects - the collectionpublic QbfPanel getPanel()
QbfPlugin
getPanel in interface QbfPluginpublic void setParameter(QbfParameter parameter)
QbfPlugin
setParameter in interface QbfPluginparameter - the qbf parameterpublic QbfParameter getParameter()
QbfPlugin
getParameter in interface QbfPluginpublic boolean isParameterValid()
QbfPlugin
isParameterValid in interface QbfPluginpublic boolean isResultDisplayable()
QbfPlugin
isResultDisplayable in interface QbfPluginpublic AppDbObject newAppDbObject()
QbfPlugin
newAppDbObject in interface QbfPluginpublic String notFoundMessage()
QbfPlugin
notFoundMessage in interface QbfPluginpublic int getRowCount()
QbfPlugin
getRowCount in interface QbfPlugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||