|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hardcode.gdbms.engine.data.AbstractDataSource
public abstract class AbstractDataSource
Field Summary |
---|
Fields inherited from interface com.hardcode.gdbms.engine.data.DataSource |
---|
COHERENT_ROW_ORDER, DIRECT_MODE, DISPATCH, IGNORE, STORE |
Constructor Summary | |
---|---|
AbstractDataSource(java.lang.String name,
java.lang.String alias)
|
Method Summary | |
---|---|
java.lang.String |
getAlias()
Returns the alias used in this DataSource |
java.lang.String |
getAsString()
Gets the string representation of this DataSource |
DataSourceFactory |
getDataSourceFactory()
gets a reference to the factory object that created the DataSource |
java.lang.String[] |
getFieldNames()
Gets the field names array |
Memento |
getMemento()
Gets a memento object with the current status of the DataSource |
java.lang.String |
getName()
Devuelve el nombre del DataSource |
Value[] |
getRow(long rowIndex)
Gets the value of all fields at the specified row |
long[] |
getWhereFilter()
Devuelve el filtro que resultó de la cláusula where de la instrucción que dió como resultado este DataSource. |
void |
remove()
Removes from the system the data source this DataSource instance represents. |
void |
setAlias(java.lang.String alias)
|
void |
setDataSourceFactory(DataSourceFactory dsf)
Sets the DataSourceFactory that created the DataSource instance |
void |
setName(java.lang.String name)
|
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, getDataSourceMetadata, getDispatchingMode, getDriver, getDriverMetadata, getFieldIndexByName, getSelectedRows, insertEmptyRow, insertFilledRow, isModified, redo, removeEditionListener, removeField, removeMetadataEditionListener, removeSelectionListener, rollBackTrans, saveData, setDispatchingMode, setFieldName, setFieldValue, setSelectedRows, start, stop, undo |
Methods inherited from interface com.hardcode.gdbms.engine.data.driver.ReadAccess |
---|
getFieldValue, getRowCount |
Constructor Detail |
---|
public AbstractDataSource(java.lang.String name, java.lang.String alias)
Method Detail |
---|
public void setName(java.lang.String name)
public java.lang.String getAlias()
DataSource
getAlias
in interface DataSource
public java.lang.String getAsString() throws DriverException
DataSource
getAsString
in interface DataSource
DriverException
public DataSourceFactory getDataSourceFactory()
DataSource
getDataSourceFactory
in interface DataSource
public java.lang.String[] getFieldNames() throws DriverException
DataSource
getFieldNames
in interface DataSource
DriverException
- if the access failspublic Memento getMemento() throws MementoException
DataSource
getMemento
in interface DataSource
MementoException
- If the state cannot be obtainedpublic java.lang.String getName()
DataSource
getName
in interface DataSource
public Value[] getRow(long rowIndex) throws DriverException
DataSource
getRow
in interface DataSource
rowIndex
- index of the row to be retrieved
DriverException
- If the access failspublic long[] getWhereFilter() throws java.io.IOException
DataSource
getWhereFilter
in interface DataSource
java.io.IOException
- Si se produce un error accediendo a las estructuras
de datos internaspublic void remove() throws DriverException
DataSource
remove
in interface DataSource
DriverException
- if the DataSource original system could not be
cleaned properlypublic void setAlias(java.lang.String alias)
public void setDataSourceFactory(DataSourceFactory dsf)
DataSource
setDataSourceFactory
in interface DataSource
dsf
- DataSourceFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |