org.exoplatform.faq.service
Class QueryStatement

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

public class QueryStatement
extends java.lang.Object

Created by The eXo Platform SARL Author : Hung Nguyen Quang hung.nguyen@exoplatform.com Jul 11, 2007


Field Summary
static java.lang.String ASC
          The Constant ASC.
static java.lang.String CATEGORY
          The Constant CATEGORY.
static java.lang.String DESC
          The Constant DESC.
static java.lang.String QUESTION
          The Constant QUESTION.
 
Constructor Summary
QueryStatement()
           
 
Method Summary
 java.lang.String getAuthor()
          Gets the author.
 java.lang.String getCategoryId()
          Gets the category id.
 java.util.Date getCreatedDate()
          Gets the created date.
 java.lang.String getDescription()
          Gets the description.
 java.lang.String getEmail()
          Gets the email.
 java.util.List<java.lang.String> getModerators()
          Gets the moderators.
 java.lang.String getName()
          Gets the name.
 java.lang.String[] getOrderBy()
          Gets the order by.
 java.lang.String getOrderType()
          Gets the order type.
 java.lang.String getQueryStatement()
          Gets the query statement.
 java.lang.String getQuestion()
          Gets the question.
 java.util.List<java.lang.String> getRelations()
          Gets the relations.
 java.util.List<java.lang.String> getResponses()
          Gets the responses.
 java.lang.String getText()
          Gets the text.
 java.lang.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(java.lang.String author)
          Sets the author.
 void setCategoryId(java.lang.String catId)
          Sets the category id.
 void setCreatedDate(java.util.Date createdDate)
          Sets the created date.
 void setDescription(java.lang.String description)
          Sets the description.
 void setEmail(java.lang.String email)
          Sets the email.
 void setModerators(java.util.List<java.lang.String> mods)
          Sets the moderators.
 void setName(java.lang.String name)
          Sets the name.
 void setOrderBy(java.lang.String[] order)
          Sets the order by.
 void setOrderType(java.lang.String type)
          Sets the order type.
 void setQuestion(java.lang.String name)
          Sets the question.
 void setRelations(java.util.List<java.lang.String> rl)
          Sets the relations.
 void setResponses(java.util.List<java.lang.String> rp)
          Sets the responses.
 void setText(java.lang.String fullTextSearch)
          Sets the text.
 void setType(java.lang.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 java.lang.String QUESTION
The Constant QUESTION.

See Also:
Constant Field Values

CATEGORY

public static final java.lang.String CATEGORY
The Constant CATEGORY.

See Also:
Constant Field Values

ASC

public static final java.lang.String ASC
The Constant ASC.

See Also:
Constant Field Values

DESC

public static final java.lang.String DESC
The Constant DESC.

See Also:
Constant Field Values
Constructor Detail

QueryStatement

public QueryStatement()
Method Detail

getType

public java.lang.String getType()
Gets the type.

Returns:
the type

setType

public void setType(java.lang.String nt)
Sets the type.

Parameters:
nt - the new type

setText

public void setText(java.lang.String fullTextSearch)
Sets the text.

Parameters:
fullTextSearch - the new text

getText

public java.lang.String getText()
Gets the text.

Returns:
the text

getOrderBy

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

Returns:
the order by

setOrderBy

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

Parameters:
order - the new order by

getOrderType

public java.lang.String getOrderType()
Gets the order type.

Returns:
the order type

setOrderType

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

Parameters:
type - the new order type

setCreatedDate

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

Parameters:
createdDate - the new created date

getCreatedDate

public java.util.Date getCreatedDate()
Gets the created date.

Returns:
the created date

getQuestion

public java.lang.String getQuestion()
Gets the question.

Returns:
the question

setQuestion

public void setQuestion(java.lang.String name)
Sets the question.

Parameters:
name - the new question

getResponses

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

Returns:
the responses

setResponses

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

Parameters:
rp - the new responses

getRelations

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

Returns:
the relations

setRelations

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

Parameters:
rl - the new relations

setAuthor

public void setAuthor(java.lang.String author)
Sets the author.

Parameters:
author - the new author

getAuthor

public java.lang.String getAuthor()
Gets the author.

Returns:
the author

setEmail

public void setEmail(java.lang.String email)
Sets the email.

Parameters:
email - the new email

getEmail

public java.lang.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(java.lang.String catId)
Sets the category id.

Parameters:
catId - the new category id

getCategoryId

public java.lang.String getCategoryId()
Gets the category id.

Returns:
the category id

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

getDescription

public java.lang.String getDescription()
Gets the description.

Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - the new description

getModerators

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

Returns:
the moderators

setModerators

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

Parameters:
mods - the new moderators

getQueryStatement

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

Returns:
the query statement
Throws:
java.lang.Exception - the exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.