com.ptc.core.query.command.common
Class AbstractQueryCommand

java.lang.Object
  extended by com.ptc.core.command.common.bean.AbstractCommand
      extended by com.ptc.core.command.common.bean.AbstractServerCommand
          extended by com.ptc.core.command.common.bean.repository.AbstractRepositoryCommand
              extended by com.ptc.core.query.command.common.AbstractQueryCommand
All Implemented Interfaces:
PageRequest, RepositoryCommand, com.ptc.core.command.common.Command, com.ptc.core.command.common.ServerCommand, Externalizable, Serializable
Direct Known Subclasses:
AbstractReportQueryCommand, BasicQueryCommand

public abstract class AbstractQueryCommand
extends AbstractRepositoryCommand
implements Externalizable

This abstract class defines a command for all queries that use com.ptc.core.query services. The result, criteria and sort specifications are derived and must be implemented by subclasses.

Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.ptc.core.command.common.bean.repository.RepositoryCommand
PAGE_MODE, RESULT_CONTAINER, RESULT_SESSION, SORT
 
Fields inherited from interface com.ptc.core.command.common.bean.repository.PageRequest
COUNT, OFFSET
 
Method Summary
 CriteriaAugmentor getCriteriaAugmentor()
          Gets the value of the attribute: criteriaAugmentor; this instance can be used to augment the query with additional criteria.
 PageMode getPageMode()
          Gets the value of the attribute: pageMode; This attribute is an input that specifies the paging mode.
 void setCriteriaAugmentor(CriteriaAugmentor a_CriteriaAugmentor)
          Sets the value of the attribute: criteriaAugmentor; this instance can be used to augment the query with additional criteria.
 void setPageMode(PageMode a_PageMode)
          Sets the value of the attribute: pageMode; This attribute is an input that specifies the paging mode.
 
Methods inherited from class com.ptc.core.command.common.bean.repository.AbstractRepositoryCommand
getCount, getOffset, getResultContainer, getResultList, getResultSession, setCount, setOffset, setSort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getPageMode

public PageMode getPageMode()
                     throws UnsupportedOperationException
Gets the value of the attribute: pageMode; This attribute is an input that specifies the paging mode.

Supported API: true

Specified by:
getPageMode in interface RepositoryCommand
Overrides:
getPageMode in class AbstractRepositoryCommand
Returns:
PageMode
Throws:
UnsupportedOperationException

setPageMode

public void setPageMode(PageMode a_PageMode)
                 throws UnsupportedOperationException,
                        WTPropertyVetoException
Sets the value of the attribute: pageMode; This attribute is an input that specifies the paging mode.

Supported API: true

Specified by:
setPageMode in interface RepositoryCommand
Overrides:
setPageMode in class AbstractRepositoryCommand
Parameters:
a_PageMode -
Throws:
UnsupportedOperationException
WTPropertyVetoException

getCriteriaAugmentor

public CriteriaAugmentor getCriteriaAugmentor()
Gets the value of the attribute: criteriaAugmentor; this instance can be used to augment the query with additional criteria.

Supported API: true

Returns:
CriteriaAugmentor

setCriteriaAugmentor

public void setCriteriaAugmentor(CriteriaAugmentor a_CriteriaAugmentor)
                          throws WTPropertyVetoException
Sets the value of the attribute: criteriaAugmentor; this instance can be used to augment the query with additional criteria.

Supported API: true

Parameters:
a_CriteriaAugmentor -
Throws:
WTPropertyVetoException