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

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

public class OperationLayerMemento
extends java.lang.Object
implements Memento

A memento from the operation layer

Author:
Fernando González Cortés

Constructor Summary
OperationLayerMemento(java.lang.String name, Memento[] mementos, java.lang.String sql)
          Creates a new OperationLayerMemento.
 
Method Summary
 Memento getMemento(int i)
          Returns the ith memento
 int getMementoCount()
          Return the number of childs of this memento
 java.lang.String getSql()
          Returns the SQL that created the DataSource
 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

OperationLayerMemento

public OperationLayerMemento(java.lang.String name,
                             Memento[] mementos,
                             java.lang.String sql)
Creates a new OperationLayerMemento.

Parameters:
name - DataSource name
mementos - mementos of DataSources involved in the operation
sql - sql query of the operation
Method Detail

getMementoCount

public int getMementoCount()
Return the number of childs of this memento

Returns:
int

getMemento

public Memento getMemento(int i)
Returns the ith memento

Parameters:
i - index of the memento
Returns:
Memento

getSql

public java.lang.String getSql()
Returns the SQL that created the DataSource

Returns:
Returns the sql.

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.