org.exoplatform.faq.service
Class QueryStatement

java.lang.Object
  extended by org.exoplatform.faq.service.QueryStatement

public class QueryStatement
extends Object


Field Summary
static String ASC
          The Constant ASC.
static String CATEGORY
          The Constant CATEGORY.
static String DESC
          The Constant DESC.
static String QUESTION
          The Constant QUESTION.
 
Constructor Summary
QueryStatement()
           
 
Method Summary
 String getAuthor()
          Gets the author.
 String getCategoryId()
          Gets the category id.
 Date getCreatedDate()
          Gets the created date.
 String getDescription()
          Gets the description.
 String getEmail()
          Gets the email.
 List<String> getModerators()
          Gets the moderators.
 String getName()
          Gets the name.
 String[] getOrderBy()
          Gets the order by.
 String getOrderType()
          Gets the order type.
 String getQueryStatement()
          Gets the query statement.
 String getQuestion()
          Gets the question.
 List<String> getRelations()
          Gets the relations.
 List<String> getResponses()
          Gets the responses.
 String getText()
          Gets the text.
 String getType()
          Gets the type.
 boolean isActivated()
          Checks if is activated.
 boolean isApproved()
          Checks if is approved.
 void setActivated(boolean isActivated)
          Sets the activated.
 void setApproved(boolean isApproved)
          Sets the approved.
 void setAuthor(String author)
          Sets the author.
 void setCategoryId(String catId)
          Sets the category id.
 void setCreatedDate(Date createdDate)
          Sets the created date.
 void setDescription(String description)
          Sets the description.
 void setEmail(String email)
          Sets the email.
 void setModerators(List<String> mods)
          Sets the moderators.
 void setName(String name)
          Sets the name.
 void setOrderBy(String[] order)
          Sets the order by.
 void setOrderType(String type)
          Sets the order type.
 void setQuestion(String name)
          Sets the question.
 void setRelations(List<String> rl)
          Sets the relations.
 void setResponses(List<String> rp)
          Sets the responses.
 void setText(String fullTextSearch)
          Sets the text.
 void setType(String nt)
          Sets the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUESTION

public static final String QUESTION
The Constant QUESTION.

See Also:
Constant Field Values

CATEGORY

public static final String CATEGORY
The Constant CATEGORY.

See Also:
Constant Field Values

ASC

public static final String ASC
The Constant ASC.

See Also:
Constant Field Values

DESC

public static final String DESC
The Constant DESC.

See Also:
Constant Field Values
Constructor Detail

QueryStatement

public QueryStatement()
Method Detail

getType

public String getType()
Gets the type.

Returns:
the type

setType

public void setType(String nt)
Sets the type.

Parameters:
nt - the new type

setText

public void setText(String fullTextSearch)
Sets the text.

Parameters:
fullTextSearch - the new text

getText

public String getText()
Gets the text.

Returns:
the text

getOrderBy

public String[] getOrderBy()
Gets the order by.

Returns:
the order by

setOrderBy

public void setOrderBy(String[] order)
Sets the order by.

Parameters:
order - the new order by

getOrderType

public String getOrderType()
Gets the order type.

Returns:
the order type

setOrderType

public void setOrderType(String type)
Sets the order type.

Parameters:
type - the new order type

setCreatedDate

public void setCreatedDate(Date createdDate)
Sets the created date.

Parameters:
createdDate - the new created date

getCreatedDate

public Date getCreatedDate()
Gets the created date.

Returns:
the created date

getQuestion

public String getQuestion()
Gets the question.

Returns:
the question

setQuestion

public void setQuestion(String name)
Sets the question.

Parameters:
name - the new question

getResponses

public List<String> getResponses()
Gets the responses.

Returns:
the responses

setResponses

public void setResponses(List<String> rp)
Sets the responses.

Parameters:
rp - the new responses

getRelations

public List<String> getRelations()
Gets the relations.

Returns:
the relations

setRelations

public void setRelations(List<String> rl)
Sets the relations.

Parameters:
rl - the new relations

setAuthor

public void setAuthor(String author)
Sets the author.

Parameters:
author - the new author

getAuthor

public String getAuthor()
Gets the author.

Returns:
the author

setEmail

public void setEmail(String email)
Sets the email.

Parameters:
email - the new email

getEmail

public String getEmail()
Gets the email.

Returns:
the email

setActivated

public void setActivated(boolean isActivated)
Sets the activated.

Parameters:
isActivated - the new activated

isActivated

public boolean isActivated()
Checks if is activated.

Returns:
true, if is activated

setApproved

public void setApproved(boolean isApproved)
Sets the approved.

Parameters:
isApproved - the new approved

isApproved

public boolean isApproved()
Checks if is approved.

Returns:
true, if is approved

setCategoryId

public void setCategoryId(String catId)
Sets the category id.

Parameters:
catId - the new category id

getCategoryId

public String getCategoryId()
Gets the category id.

Returns:
the category id

getName

public String getName()
Gets the name.

Returns:
the name

setName

public void setName(String name)
Sets the name.

Parameters:
name - the new name

getDescription

public String getDescription()
Gets the description.

Returns:
the description

setDescription

public void setDescription(String description)
Sets the description.

Parameters:
description - the new description

getModerators

public List<String> getModerators()
Gets the moderators.

Returns:
the moderators

setModerators

public void setModerators(List<String> mods)
Sets the moderators.

Parameters:
mods - the new moderators

getQueryStatement

public String getQueryStatement()
                         throws Exception
Gets the query statement.

Returns:
the query statement
Throws:
Exception - the exception


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.