com.taggercat.model
Class ResultSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<TCEntity>
com.taggercat.model.ResultSet
- All Implemented Interfaces:
- IResultSetCollection<TCEntity>, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<TCEntity>, java.util.Collection<TCEntity>, java.util.List<TCEntity>, java.util.RandomAccess
public class ResultSet
- extends java.util.ArrayList<TCEntity>
- implements IResultSetCollection<TCEntity>
This class encapsulates the Hibernate result set returned from a query.
This class is only used for top level AKA, parent, datasources.
Tagger Cat always needs to deal with the resultset as an indexed list.
The ResultSet object tracks the user's current tcEntity index and provides basic reposition
operations.
- See Also:
- Serialized Form
-
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
ResultSet
public ResultSet()
ResultSet
public ResultSet(java.util.Collection<? extends TCEntity> collection)
ResultSet
public ResultSet(java.util.Map<java.lang.Object,? extends TCEntity> map)
getEntityByPKHexCode
public TCEntity getEntityByPKHexCode(java.lang.String pkHexCode)
- Description copied from interface:
IResultSetCollection
- Gets the row in the collection by its PKHexCode. It is not made the current row in the resultset.
- Specified by:
getEntityByPKHexCode in interface IResultSetCollection<TCEntity>
- Returns:
- the TCEntity or null if not found.
getEntityAt
public TCEntity getEntityAt(int rowIndex)
- Specified by:
getEntityAt in interface IResultSetCollection<TCEntity>
getCurrentEntity
public TCEntity getCurrentEntity()
- Specified by:
getCurrentEntity in interface IResultSetCollection<TCEntity>
getLast
public TCEntity getLast()
- Specified by:
getLast in interface IResultSetCollection<TCEntity>
getFirst
public TCEntity getFirst()
- Specified by:
getFirst in interface IResultSetCollection<TCEntity>
getNext
public TCEntity getNext()
- Specified by:
getNext in interface IResultSetCollection<TCEntity>
getNextNth
public TCEntity getNextNth(int n)
- Specified by:
getNextNth in interface IResultSetCollection<TCEntity>
getPrevious
public TCEntity getPrevious()
- Specified by:
getPrevious in interface IResultSetCollection<TCEntity>
getRowCount
public int getRowCount()
- Specified by:
getRowCount in interface IResultSetCollection<TCEntity>
isAtEnd
public boolean isAtEnd()
- Specified by:
isAtEnd in interface IResultSetCollection<TCEntity>
isAtBeginning
public boolean isAtBeginning()
- Specified by:
isAtBeginning in interface IResultSetCollection<TCEntity>
getCurrentNdx
public int getCurrentNdx()
- Specified by:
getCurrentNdx in interface IResultSetCollection<TCEntity>
delete
public void delete()
- Specified by:
delete in interface IResultSetCollection<TCEntity>
insertAtCurrentNdx
public void insertAtCurrentNdx(TCEntity obj)
- Specified by:
insertAtCurrentNdx in interface IResultSetCollection<TCEntity>
setCurrentNdx
public void setCurrentNdx(int currentNdx)
- Specified by:
setCurrentNdx in interface IResultSetCollection<TCEntity>