|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spago.cms.operations.SearchOperation
public class SearchOperation
Models a repository search operation. The operation has two attributes:
<OPERATION name=""> <SEARCHOPERATION query="?" language="(xpath/sql)" /> </OPERATION>
Constructor Summary | |
---|---|
SearchOperation()
Constructor of the class useful to build an empty search operation. |
|
SearchOperation(java.lang.String query,
java.lang.String language)
Constructor of the class useful to build a search operation setting the query and language type attributes. |
Method Summary | |
---|---|
SourceBean |
getOperationDescriptor()
Gets the Internal SourceBean which defines the internal structure of the operation |
void |
setLanguage(java.lang.String language)
Set the language type of the query |
void |
setQuery(java.lang.String query)
Set the query to exec |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchOperation() throws BuildOperationException
BuildOperationException
- Thrown if an error occurs during the creationpublic SearchOperation(java.lang.String query, java.lang.String language) throws BuildOperationException
query
- The query to exec on the repositorylanguage
- The label of the query language
(xpath = xPath grammar, sql = jsr170 grammar)
BuildOperationException
- Thrown if an error occurs during the settingMethod Detail |
---|
public SourceBean getOperationDescriptor()
public void setQuery(java.lang.String query) throws BuildOperationException
query
- String of the Query to exec written using xpath or jsr170 grammar
BuildOperationException
- Thrown if an error occurs during the settingpublic void setLanguage(java.lang.String language) throws BuildOperationException
language
- Grammar language used to define the query
(xpath = xPath grammar, sql = jsr170 grammar)
BuildOperationException
- Thrown if an error occurs during the setting
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |