| com.flexive.core.search.FieldSelector
All known Subclasses: com.flexive.core.search.mysql.MySQLGenericSelector,
FieldSelector | public interface FieldSelector (Code) | | Helper to generate select statements on queries
author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) version: $Rev: 256 $ |
Method Summary | |
void | apply(Property prop, PropertyEntry entry, StringBuffer statement) This function applies the select logic on the statement.
The statement parameter holds a single value (or subselect that will result in a single value).
This value is the reference that should be used for any further lookups.
Example:
statement = "(select created_by from ... | String | getAllowedFields() Returns all spported fields. |
apply | void apply(Property prop, PropertyEntry entry, StringBuffer statement) throws FxSqlSearchException(Code) | | This function applies the select logic on the statement.
The statement parameter holds a single value (or subselect that will result in a single value).
This value is the reference that should be used for any further lookups.
Example:
statement = "(select created_by from ... where ... limit 1)"
We can now apply another select logic on this value:
select username from FX_ACCOUNTS where id={statement}
The result is the updated statement StringBuffer.
Parameters: prop - the property that is beeing selected Parameters: entry - the property resolver entry Parameters: statement - the statement to modify throws: FxSqlSearchException - if the function fails |
getAllowedFields | String getAllowedFields()(Code) | | Returns all spported fields.
For the FX_ACCOUNT table this fields would be: username, loginname, ...
the fields. |
|
|