|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hardcode.gdbms.engine.strategies.OperationDataSource com.hardcode.gdbms.engine.strategies.PDataSource
public class PDataSource
Clase que representa el producto cartesiano de dos o más tablas. El almacenamiento de dicha tabla se realiza en las propias tablas sobre las que se opera, haciendo los cálculos en cada acceso para saber en qué tabla y en qué posición de la tabla se encuentra el dato buscado
Field Summary |
---|
Fields inherited from interface com.hardcode.gdbms.engine.data.DataSource |
---|
COHERENT_ROW_ORDER, DIRECT_MODE, DISPATCH, IGNORE, STORE |
Constructor Summary | |
---|---|
PDataSource(DataSource[] tables)
Creates a new PDataSource object. |
Method Summary | |
---|---|
Metadata |
getDataSourceMetadata()
Gets the meta data about the source of this DataSource |
int |
getFieldCount()
|
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 |
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, getFieldIndexByName, getFieldNames, getName, getRow, getSelectedRows, getSQL, getWhereFilter, 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 |
Constructor Detail |
---|
public PDataSource(DataSource[] tables)
tables
- Array de tablas que forman el producto
DriverException
Method Detail |
---|
public Value getFieldValue(long rowIndex, int fieldId) throws DriverException
ReadAccess
rowIndex
- filafieldId
- columna
DriverException
- Si se produce un error accediendo al DataSourcecom.hardcode.gdbms.data.DataSource#getIntFieldValue(int, int)
public int getFieldCount() throws DriverException
DriverException
com.hardcode.gdbms.data.DataSource#getFieldCount()
public long getRowCount()
ReadAccess
com.hardcode.gdbms.data.DataSource#getRowCount()
public void start() throws DriverException
DataSource
DriverException
- if the operation failscom.hardcode.gdbms.data.DataSource#open(java.io.File)
public void stop() throws DriverException
DataSource
DriverException
- If the operation failscom.hardcode.gdbms.data.DataSource#close()
public Memento getMemento() throws MementoException
DataSource
getMemento
in interface DataSource
getMemento
in class OperationDataSource
MementoException
- If the state cannot be obtainedDataSource.getMemento()
public Metadata getDataSourceMetadata() throws DriverException
DataSource
DriverException
- If cannot get the DataSource metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |