org.alfresco.repo.search
Class SimpleResultSetMetaData

java.lang.Object
  extended by org.alfresco.repo.search.SimpleResultSetMetaData
All Implemented Interfaces:
ResultSetMetaData

public class SimpleResultSetMetaData
extends java.lang.Object
implements ResultSetMetaData

Simple implementation of result set meta data.


Constructor Summary
SimpleResultSetMetaData(LimitBy limitedBy, PermissionEvaluationMode permissoinEvaluationMode, SearchParameters searchParameters)
          Default properties.
 
Method Summary
 ResultSetColumn getColumn(java.lang.String name)
          Get the column meta-data by column name.
 java.lang.String[] getColumnNames()
          Get the column names.
 ResultSetColumn[] getColumns()
          The column meta-data.
 LimitBy getLimitedBy()
          Return how, in fact, the result set was limited.
 PermissionEvaluationMode getPermissionEvaluationMode()
          Return how permission evaluations are being made.
 ResultSetType getResultSetType()
          Get the result set type
 SearchParameters getSearchParameters()
          Get the parameters that were specified to define this search.
 ResultSetSelector getSelector(java.lang.String name)
          Get the selector meta-data by name.
 java.lang.String[] getSelectorNames()
          Get the names of the selectors.
 ResultSetSelector[] getSelectors()
          The selector meta-data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleResultSetMetaData

public SimpleResultSetMetaData(LimitBy limitedBy,
                               PermissionEvaluationMode permissoinEvaluationMode,
                               SearchParameters searchParameters)
Default properties.

Parameters:
limitedBy -
permissoinEvaluationMode -
searchParameters -
Method Detail

getLimitedBy

public LimitBy getLimitedBy()
Description copied from interface: ResultSetMetaData
Return how, in fact, the result set was limited. This may not be how it was requested. If a limit of 100 were requested and there were 100 or less actual results this will report LimitBy.UNLIMITED.

Specified by:
getLimitedBy in interface ResultSetMetaData
Returns:

getPermissionEvaluationMode

public PermissionEvaluationMode getPermissionEvaluationMode()
Description copied from interface: ResultSetMetaData
Return how permission evaluations are being made.

Specified by:
getPermissionEvaluationMode in interface ResultSetMetaData
Returns:

getSearchParameters

public SearchParameters getSearchParameters()
Description copied from interface: ResultSetMetaData
Get the parameters that were specified to define this search.

Specified by:
getSearchParameters in interface ResultSetMetaData
Returns:

getColumn

public ResultSetColumn getColumn(java.lang.String name)
Description copied from interface: ResultSetMetaData
Get the column meta-data by column name.

Specified by:
getColumn in interface ResultSetMetaData
Returns:
- the column meta-data.

getColumnNames

public java.lang.String[] getColumnNames()
Description copied from interface: ResultSetMetaData
Get the column names.

Specified by:
getColumnNames in interface ResultSetMetaData
Returns:
- the names of the columns.

getColumns

public ResultSetColumn[] getColumns()
Description copied from interface: ResultSetMetaData
The column meta-data.

Specified by:
getColumns in interface ResultSetMetaData
Returns:
- the column meta-data.

getResultSetType

public ResultSetType getResultSetType()
Description copied from interface: ResultSetMetaData
Get the result set type

Specified by:
getResultSetType in interface ResultSetMetaData
Returns:

getSelector

public ResultSetSelector getSelector(java.lang.String name)
Description copied from interface: ResultSetMetaData
Get the selector meta-data by name.

Specified by:
getSelector in interface ResultSetMetaData
Returns:
- the selector meta-data.

getSelectorNames

public java.lang.String[] getSelectorNames()
Description copied from interface: ResultSetMetaData
Get the names of the selectors.

Specified by:
getSelectorNames in interface ResultSetMetaData
Returns:
- the selector names.

getSelectors

public ResultSetSelector[] getSelectors()
Description copied from interface: ResultSetMetaData
The selector meta-data.

Specified by:
getSelectors in interface ResultSetMetaData
Returns:
- the selector meta-data.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.