Package mdbtools.dbengine
Class MemoryData
java.lang.Object
mdbtools.dbengine.MemoryData
- All Implemented Interfaces:
Data
- Direct Known Subclasses:
RewindableData
An implementation of Data that stores the complete result in memory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a row of datavoiddump()get(int index) get the data at a certain columnObject[]getRow(int index) booleannext()goto the next (or first) rowvoidsort(int[] sortBy, boolean[] ascending) sort the data set by the given columns each column is sorted seperate
-
Field Details
-
currentRow
protected int currentRow
-
-
Constructor Details
-
MemoryData
public MemoryData() -
MemoryData
- Throws:
SQLException
-
-
Method Details
-
next
goto the next (or first) row- Specified by:
nextin interfaceData- Returns:
- true if row exits, false if not
- Throws:
SQLException
-
get
get the data at a certain column -
getRow
-
addRow
Add a row of data -
sort
sort the data set by the given columns each column is sorted seperate- Throws:
SQLException
-
dump
public void dump()
-