Package org.alfresco.repo.search
Class AbstractResultSetRow
- java.lang.Object
-
- org.alfresco.repo.search.AbstractResultSetRow
-
- All Implemented Interfaces:
ResultSetRow
- Direct Known Subclasses:
ChildAssocRefResultSetRow,DBResultSetRow,DetachedResultSetRow,LuceneResultSetRow,SolrJSONResultSetRow,SortedResultSetRow
public abstract class AbstractResultSetRow extends Object implements ResultSetRow
Common support for a row in a result set- Author:
- andyh
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Serializable>propertiesThe direct properties of the current node Used by those implementations that can cache the whole set.
-
Constructor Summary
Constructors Constructor Description AbstractResultSetRow(ResultSet resultSet, int index)The row needs the result set and the index for lookup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChildAssociationRefgetChildAssocRef()protected Map<QName,Serializable>getDirectProperties()intgetIndex()NodeRefgetNodeRef()QNamegetQName()ResultSetgetResultSet()floatgetScore()SerializablegetValue(String columnName)SerializablegetValue(QName qname)Map<String,Serializable>getValues()protected voidsetProperties(Map<QName,Serializable> byQname)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.service.cmr.search.ResultSetRow
getNodeRef, getNodeRefs, getScore, getScores
-
-
-
-
Field Detail
-
properties
protected Map<String,Serializable> properties
The direct properties of the current node Used by those implementations that can cache the whole set.
-
-
Constructor Detail
-
AbstractResultSetRow
public AbstractResultSetRow(ResultSet resultSet, int index)
The row needs the result set and the index for lookup.- Parameters:
resultSet- ResultSetindex- int
-
-
Method Detail
-
getResultSet
public ResultSet getResultSet()
- Specified by:
getResultSetin interfaceResultSetRow
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceResultSetRow
-
getNodeRef
public NodeRef getNodeRef()
- Specified by:
getNodeRefin interfaceResultSetRow
-
getQName
public QName getQName()
- Specified by:
getQNamein interfaceResultSetRow
-
getChildAssocRef
public ChildAssociationRef getChildAssocRef()
- Specified by:
getChildAssocRefin interfaceResultSetRow
-
getScore
public float getScore()
- Specified by:
getScorein interfaceResultSetRow
-
getValues
public Map<String,Serializable> getValues()
- Specified by:
getValuesin interfaceResultSetRow
-
getValue
public Serializable getValue(String columnName)
- Specified by:
getValuein interfaceResultSetRow
-
getDirectProperties
protected Map<QName,Serializable> getDirectProperties()
-
setProperties
protected void setProperties(Map<QName,Serializable> byQname)
-
getValue
public Serializable getValue(QName qname)
- Specified by:
getValuein interfaceResultSetRow
-
-