|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.araneaframework.backend.list.helper.fields.StandardFields
List of fields standard implementation.
All the fields are presented both in the SELECT and in the ResultSet.
Fields can be added/removed either:
ListStructure (all fields defined in the list)For each add/remove call a prefixcan be set. Prefix should refer to a composite field in a Bean (containing another Bean).
Example use:
ListSqlHelper helper = ...
StandardFields sf = helper.getStandardFields();
sf.addField("name"); // add "name"
sf.addField("birthdate"); // add "birthdate"
sf.addField("address", "town"); // add "address.town"
sf.addField("address", "zip"); // add "address.zip"
sf.addField("org", Organization.class); // add all fields of Organization.class as sub-fields
Modifier.addListFields(sf.subFields("modifier")); // let Mofifier.class add it's common fields
Fields,
ListSqlHelper.getStandardFields()| Constructor Summary | |
StandardFields()
Create an instance of StandardFields using an empty set of fields. |
|
StandardFields(Collection fields)
Create an instance of StandardFields using the specified set of fields.. |
|
StandardFields(ListStructure structure)
Create an instance of StandardFields using the set of fields
defined by the ListStructure. |
|
StandardFields(StandardFields parent,
String globalPrefix)
Create an instance of StandardFields extending the set of fields
of another StandardFields instance and
using the globalPrefix to all the fields added. |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StandardFields()
StandardFields using an empty set of fields.
public StandardFields(StandardFields parent,
String globalPrefix)
StandardFields extending the set of fields
of another StandardFields instance and
using the globalPrefix to all the fields added.
public StandardFields(Collection fields)
StandardFields using the specified set of fields..
public StandardFields(ListStructure structure)
StandardFields using the set of fields
defined by the ListStructure.
| Method Detail |
public StandardFields subFields(String globalPrefix)
StandardFields extending the set of fields
of another StandardFields instance and
using the globalPrefix to all the fields added.
public StandardFields addField(String prefix,
String field)
public StandardFields removeField(String prefix,
String field)
public StandardFields addFields(String prefix,
Collection fields)
public StandardFields removeFields(String prefix,
Collection fields)
public StandardFields addFields(String prefix,
String[] fields)
public StandardFields removeFields(String prefix,
String[] fields)
public StandardFields addField(String field)
public StandardFields removeField(String field)
public StandardFields addFields(ListStructure structure)
public StandardFields addFields(Collection fields)
public StandardFields removeFields(Collection fields)
public StandardFields addFields(String[] fields)
public StandardFields removeFields(String[] fields)
public StandardFields addFields(Class beanClass)
public StandardFields removeFields(Class beanClass)
public StandardFields addFields(String prefix,
Class beanClass)
public StandardFields removeFields(String prefix,
Class beanClass)
public Collection getNames()
FieldsSELECT.
getNames in interface Fieldspublic Collection getResultSetNames()
FieldsResultSet.
getResultSetNames in interface FieldsResultSet.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||