package Express.services;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.sql.PreparedStatement;
import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import Framework.RuntimeProperties;
import Framework.TextData;
import GenericDBMS.DBDataSet;
/**
* Used to hold information necessary to use and manage a DBSession object�s SQL statements.
* <p>
* @author ITerative Consulting
* @since 26-Feb-2008
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@SuppressWarnings("serial")
public class SqlStatement
implements Serializable, Observable
{
// ----------
// Attributes
// ----------
public PropertyChangeSupport qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
private PreparedStatement handle;
private DBDataSet inputData;
private TextData key;
private SqlStatement next;
private SqlStatement prev;
// ------------
// Constructors
// ------------
public SqlStatement() {
// Explicitly call the superclass constructor to prevent the implicit call
super();
}
// ----------------------
// Accessors and Mutators
// ----------------------
public void setHandle(PreparedStatement handle) {
PreparedStatement oldValue = this.handle;
this.handle = handle;
this.qq_Listeners.firePropertyChange("handle", oldValue, this.handle);
}
public PreparedStatement getHandle() {
return this.handle;
}
public void setInputData(DBDataSet inputData) {
DBDataSet oldValue = this.inputData;
this.inputData = inputData;
this.qq_Listeners.firePropertyChange("inputData", oldValue, this.inputData);
}
public DBDataSet getInputData() {
return this.inputData;
}
public void setKey(TextData key) {
TextData oldValue = this.key;
this.key = key;
this.qq_Listeners.firePropertyChange("key", oldValue, this.key);
}
public TextData getKey() {
return this.key;
}
public void setNext(SqlStatement next) {
SqlStatement oldValue = this.next;
this.next = next;
this.qq_Listeners.firePropertyChange("next", oldValue, this.next);
}
public SqlStatement getNext() {
return this.next;
}
public void setPrev(SqlStatement prev) {
SqlStatement oldValue = this.prev;
this.prev = prev;
this.qq_Listeners.firePropertyChange("prev", oldValue, this.prev);
}
public SqlStatement getPrev() {
return this.prev;
}
// -------
// Methods
// -------
public void addPropertyChangeListener(String property, PropertyChangeListener listener) {
qq_Listeners.addPropertyChangeListener(property, listener);
}
public void addPropertyChangeListener(PropertyChangeListener listener) {
qq_Listeners.addPropertyChangeListener(listener);
}
public void removePropertyChangeListener(String property, PropertyChangeListener listener) {
qq_Listeners.removePropertyChangeListener(property, listener);
}
public void removePropertyChangeListener(PropertyChangeListener listener) {
qq_Listeners.removePropertyChangeListener(listener);
}
} // end class SqlStatement
// c Pass 2 Conversion Time: 47 milliseconds