|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hardcode.gdbms.engine.strategies.OperationDataSource
com.hardcode.gdbms.engine.strategies.OrderedDataSource
public class OrderedDataSource
DOCUMENT ME!
Nested Class Summary | |
---|---|
class |
OrderedDataSource.SortComparator
DOCUMENT ME! |
Field Summary |
---|
Fields inherited from interface com.hardcode.gdbms.engine.data.DataSource |
---|
COHERENT_ROW_ORDER, DIRECT_MODE, DISPATCH, IGNORE, STORE |
Constructor Summary | |
---|---|
OrderedDataSource(OperationDataSource ret,
java.lang.String[] fieldNames,
int[] types)
DOCUMENT ME! |
Method Summary | |
---|---|
Metadata |
getDataSourceMetadata()
Gets the meta data about the source of this DataSource |
int |
getFieldIndexByName(java.lang.String fieldName)
Obtiene el indice de un campo a partir de su nombre o -1 si no existe un campo con ese nombre |
Value |
getFieldValue(long rowIndex,
int fieldId)
Obtiene el valor que se encuentra en la fila y columna indicada |
Memento |
getMemento()
Gets a memento object with the current status of the DataSource |
long |
getRowCount()
Obtiene el número de registros del DataSource |
long[] |
getWhereFilter()
Devuelve el filtro que resultó de la cláusula where de la instrucción que dió como resultado este DataSource. |
void |
order()
|
void |
start()
Opens the DataSource to access the data it contains. |
void |
stop()
Closes the DataSource. |
Methods inherited from class com.hardcode.gdbms.engine.strategies.OperationDataSource |
---|
addEditionListener, addField, addField, addMetadataEditionListener, addSelectionListener, beginTrans, canRedo, canUndo, check, commitTrans, deleteRow, getAlias, getAsString, getDataSourceFactory, getDispatchingMode, getDriver, getDriverMetadata, getFieldNames, getName, getRow, getSelectedRows, getSQL, insertEmptyRow, insertEmptyRowAt, insertFilledRow, insertFilledRowAt, isModified, redo, remove, removeEditionListener, removeField, removeMetadataEditionListener, removeSelectionListener, rollBackTrans, saveData, setAlias, setDataSourceFactory, setDispatchingMode, setFieldName, setFieldValue, setName, setSelectedRows, setSQL, undo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hardcode.gdbms.engine.data.DataSource |
---|
addEditionListener, addField, addField, addMetadataEditionListener, addSelectionListener, beginTrans, canRedo, canUndo, check, commitTrans, getAlias, getAsString, getDataSourceFactory, getDispatchingMode, getDriver, getDriverMetadata, getFieldNames, getName, getRow, getSelectedRows, insertEmptyRow, insertFilledRow, isModified, redo, remove, removeEditionListener, removeField, removeMetadataEditionListener, removeSelectionListener, rollBackTrans, saveData, setDataSourceFactory, setDispatchingMode, setFieldName, setFieldValue, setSelectedRows, undo |
Constructor Detail |
---|
public OrderedDataSource(OperationDataSource ret, java.lang.String[] fieldNames, int[] types) throws DriverException
ret
- fieldNames
- types
-
DriverException
Method Detail |
---|
public void start() throws DriverException
DataSource
start
in interface DataSource
DriverException
- if the operation failsDataSource.start()
public void stop() throws DriverException
DataSource
stop
in interface DataSource
DriverException
- If the operation failsDataSource.stop()
public Memento getMemento() throws MementoException
DataSource
getMemento
in interface DataSource
getMemento
in class OperationDataSource
MementoException
- If the state cannot be obtainedDataSource.getMemento()
public int getFieldIndexByName(java.lang.String fieldName) throws DriverException
DataSource
getFieldIndexByName
in interface DataSource
getFieldIndexByName
in class OperationDataSource
fieldName
- Nombre del campo
DriverException
- Si se produce un error accediendo a los datosDataSource.getFieldIndexByName(java.lang.String)
public Value getFieldValue(long rowIndex, int fieldId) throws DriverException
ReadAccess
getFieldValue
in interface ReadAccess
rowIndex
- filafieldId
- columna
DriverException
- Si se produce un error accediendo al DataSourceReadAccess.getFieldValue(long,
int)
public long getRowCount() throws DriverException
ReadAccess
getRowCount
in interface ReadAccess
DriverException
- Si se produce algún error accediendo al
DataSourceReadAccess.getRowCount()
public void order() throws DriverException
DriverException
public long[] getWhereFilter() throws java.io.IOException
DataSource
getWhereFilter
in interface DataSource
getWhereFilter
in class OperationDataSource
java.io.IOException
- Si se produce un error accediendo a las estructuras
de datos internasDataSource.getWhereFilter()
public Metadata getDataSourceMetadata() throws DriverException
DataSource
getDataSourceMetadata
in interface DataSource
DriverException
- If cannot get the DataSource metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |