de.mguennewig.pobjsearch
Class SearchFactory

java.lang.Object
  extended by de.mguennewig.pobjsearch.SearchFactory

public final class SearchFactory
extends java.lang.Object

Factory methods for the PObject search framework.

Author:
Michael Günnewig

Method Summary
static SearchColumn[] createColumns(TableExpr te, boolean includeId, java.lang.String... excludeColumns)
          Creates a set of SearchColumns based on the meta-data of the given table usable for a new SearchModel.
static SearchModel createModel(TableExpr te, boolean includeId, java.lang.String... excludeColumns)
          Creates a new SearchModel based on the meta-data of the given table.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createColumns

public static SearchColumn[] createColumns(TableExpr te,
                                           boolean includeId,
                                           java.lang.String... excludeColumns)
Creates a set of SearchColumns based on the meta-data of the given table usable for a new SearchModel.

Parameters:
te - The table for which a model should be generated.
includeId - Specifies whether the ID field should be included.
excludeColumns - Optionally specifies column names that will be ignored.
See Also:
createModel(TableExpr, boolean, String[])

createModel

public static SearchModel createModel(TableExpr te,
                                      boolean includeId,
                                      java.lang.String... excludeColumns)
Creates a new SearchModel based on the meta-data of the given table.

Parameters:
te - The table for which a model should be generated.
includeId - Specifies whether the ID field should be included.
excludeColumns - Optionally specifies column names that will be ignored.
See Also:
createColumns(TableExpr, boolean, String[])