com.hardcode.gdbms.engine.data
Class DataSourceCommonImpl

java.lang.Object
  extended by com.hardcode.gdbms.engine.data.DataSourceCommonImpl

public class DataSourceCommonImpl
extends java.lang.Object

Author:
Fernando González Cortés

Field Summary
protected  DataSourceFactory dsf
           
 
Constructor Summary
DataSourceCommonImpl(DataSource ds, java.lang.String name, java.lang.String alias)
           
 
Method Summary
 void addSelectionListener(SelectionListener listener)
           
 boolean canRedo()
           
 boolean canUndo()
           
 java.lang.String getAlias()
           
 java.lang.String getAsString()
          gets a string representation of this datasource
 DataSourceFactory getDataSourceFactory()
           
 java.lang.String[] getFieldNames()
           
 Memento getMemento()
           
 java.lang.String getName()
           
 Value[] getRow(long rowIndex)
           
 int[] getSelection()
          Gets the row selection
 long[] getWhereFilter()
          DOCUMENT ME!
 void redo()
          Redoes the last undone edition action
 void remove()
           
 void removeSelectionListener(SelectionListener listener)
           
 void setAlias(java.lang.String alias)
           
 void setDataSourceFactory(DataSourceFactory dsf)
           
 void setName(java.lang.String name)
           
 void setSelection(int[] sel)
          Sets the row selection
 void undo()
          Undoes the last edition action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dsf

protected DataSourceFactory dsf
Constructor Detail

DataSourceCommonImpl

public DataSourceCommonImpl(DataSource ds,
                            java.lang.String name,
                            java.lang.String alias)
Method Detail

getAlias

public java.lang.String getAlias()

getName

public java.lang.String getName()

setAlias

public void setAlias(java.lang.String alias)

setName

public void setName(java.lang.String name)

getDataSourceFactory

public DataSourceFactory getDataSourceFactory()
See Also:
com.hardcode.gdbms.data.DataSource#getDataSourceFactory()

setDataSourceFactory

public void setDataSourceFactory(DataSourceFactory dsf)
See Also:
com.hardcode.gdbms.data.DataSource#setDataSourceFactory(DataSourceFactory)

getWhereFilter

public long[] getWhereFilter()
                      throws java.io.IOException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

getMemento

public Memento getMemento()
                   throws MementoException
Throws:
MementoException
See Also:
DataSource.getMemento()

remove

public void remove()
            throws DriverException
Throws:
DriverException
See Also:
DataSource.remove()

getRow

public Value[] getRow(long rowIndex)
               throws DriverException
Throws:
DriverException
See Also:
DataSource.getRow(long)

getFieldNames

public java.lang.String[] getFieldNames()
                                 throws DriverException
Throws:
DriverException
See Also:
DataSource.getFieldNames()

getAsString

public java.lang.String getAsString()
                             throws DriverException
gets a string representation of this datasource

Returns:
String
Throws:
DriverException

redo

public void redo()
          throws DriverException
Redoes the last undone edition action

Throws:
DriverException

undo

public void undo()
          throws DriverException
Undoes the last edition action

Throws:
DriverException

canRedo

public boolean canRedo()
Returns:
true if there is an edition action to redo

canUndo

public boolean canUndo()
Returns:
true if there is an edition action to undo

setSelection

public void setSelection(int[] sel)
Sets the row selection

Parameters:
is -

getSelection

public int[] getSelection()
Gets the row selection

Returns:

addSelectionListener

public void addSelectionListener(SelectionListener listener)

removeSelectionListener

public void removeSelectionListener(SelectionListener listener)


Copyright © 2005-2006 . All Rights Reserved.