| com.teamkonzept.db.TKPrepQuery de.webman.form.db.queries.FormExists
FormExists | public class FormExists extends TKPrepQuery (Code) | | Searches form definitions by their attributes in the database.
This query is generic, i.e. the SQL statement is constructed at
runtime depending on the parameters set. There has to be at least
one parameter in order to generate a valid query.
Order |
Name |
Type |
Parameters |
1 |
de.webman.form.db.FormConstants.FORM_ID |
java.lang.Integer |
2 |
de.webman.form.db.FormConstants.FORM_TYPE |
java.lang.Integer |
3 |
de.webman.form.db.FieldConstants.FIELD_NAME or
de.webman.form.db.FormConstants.FORM_NAME |
java.lang.String |
4 |
de.webman.form.db.FieldConstants.FIELD_SHOW_NAME or
de.webman.form.db.FormConstants.FORM_DESCRIPTION |
java.lang.String |
Results |
1 |
de.webman.form.db.FormConstants.FORM_ID |
java.lang.Integer |
author: $Author: uli $ version: $Revision: 1.3 $ |
Method Summary | |
final public boolean | execute() Executes the query. | final public void | initQuery(Connection connection) Initializes the query with the given connection. |
execute | final public boolean execute() throws SQLException(Code) | | Executes the query.
true , if the query has been executedsuccessfully, otherwise false . throws: SQLException - if any error occurred during query execution. |
initQuery | final public void initQuery(Connection connection)(Code) | | Initializes the query with the given connection.
Parameters: connection - the connection. |
|
|