com.hardcode.gdbms.engine.data.persistence
Class DataSourceLayerMemento

java.lang.Object
  extended by com.hardcode.gdbms.engine.data.persistence.DataSourceLayerMemento
All Implemented Interfaces:
Memento

public class DataSourceLayerMemento
extends java.lang.Object
implements Memento

Memento of the DataSource layer

Author:
Fernando González Cortés

Constructor Summary
DataSourceLayerMemento(java.lang.String tableName, java.lang.String tableAlias)
          Creates a new DataSourceLayerMemento.
 
Method Summary
 java.lang.String getTableAlias()
          Returns the tableAlias.
 java.lang.String getTableName()
          Returns the table name.
 void getXML()
          Parses the memento and generates the corresponding SAX events in the content handler stablished by setContentHandler.
 void setContentHandler(org.xml.sax.ContentHandler saxHandler)
          Sets the content handler for the getXML method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceLayerMemento

public DataSourceLayerMemento(java.lang.String tableName,
                              java.lang.String tableAlias)
Creates a new DataSourceLayerMemento.

Parameters:
tableName - table name
tableAlias - table alias
Method Detail

getTableAlias

public java.lang.String getTableAlias()
Returns the tableAlias.

Returns:
Returns the tableAlias.

getTableName

public java.lang.String getTableName()
Returns the table name.

Returns:
Returns the tableName.

setContentHandler

public void setContentHandler(org.xml.sax.ContentHandler saxHandler)
Description copied from interface: Memento
Sets the content handler for the getXML method

Specified by:
setContentHandler in interface Memento
Parameters:
saxHandler - content handler
See Also:
Memento.setContentHandler(org.xml.sax.ContentHandler)

getXML

public void getXML()
            throws org.xml.sax.SAXException
Description copied from interface: Memento
Parses the memento and generates the corresponding SAX events in the content handler stablished by setContentHandler.

Specified by:
getXML in interface Memento
Throws:
org.xml.sax.SAXException - If error
See Also:
Memento.getXML()


Copyright © 2005-2006 . All Rights Reserved.