|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueryObjectModelBuilder
QueryObjectModelBuilder defines an interface for building a
query object model from a string based query statement and vice versa.
| Method Summary | |
|---|---|
boolean |
canHandle(String language)
Returns true if this QOM builder can handle a statement in
language. |
QueryObjectModel |
createQueryObjectModel(String statement,
QueryObjectModelFactory qf,
ValueFactory vf)
Creates a new query object model from the given statement
using the passed QOM and value factory. |
String[] |
getSupportedLanguages()
Returns the set of query languages supported by this builder. |
String |
toString(QueryObjectModel qom)
Creates a String representation of the query object model in the syntax this QueryObjectModelBuilder can handle. |
| Method Detail |
|---|
QueryObjectModel createQueryObjectModel(String statement,
QueryObjectModelFactory qf,
ValueFactory vf)
throws InvalidQueryException,
RepositoryException
statement
using the passed QOM and value factory.
statement - the query statement.qf - the query object model factory.vf - the value factory.
InvalidQueryException - if the statement is invalid.
RepositoryException - if another error occurs.boolean canHandle(String language)
true if this QOM builder can handle a statement in
language.
language - the language of a query statement to build a QOM.
true if this builder can handle
language; false otherwise.String[] getSupportedLanguages()
String toString(QueryObjectModel qom)
throws InvalidQueryException
QueryObjectModelBuilder can handle.
qom - the query object model.
InvalidQueryException - if the query object model cannot be
converted into a String representation due
to restrictions in this syntax.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||