org.israfil.sqlelements
Class AbstractStatement

java.lang.Object
  extended by org.israfil.sqlelements.AbstractStatement
All Implemented Interfaces:
java.lang.Cloneable, SQLElement, Statement
Direct Known Subclasses:
AbstractCommand, Delete, Select

public abstract class AbstractStatement
extends java.lang.Object
implements Statement

Abstract Superclass containing some shared infrastructure for queries and commands.

Version:
$Revision: 25 $
Author:
Christian Edward Gruber , Latest: $Author: cgruber $

Field Summary
protected  Constraint constraint
           
 
Constructor Summary
protected AbstractStatement()
           
protected AbstractStatement(Constraint constraint)
           
 
Method Summary
abstract  java.lang.Object clone()
           
 Constraint getConstraint()
           
 boolean hasConstraint()
           
abstract  java.lang.String render(SQLRenderContext context)
           
 void setConstraint(Constraint value)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constraint

protected Constraint constraint
Constructor Detail

AbstractStatement

protected AbstractStatement()

AbstractStatement

protected AbstractStatement(Constraint constraint)
Method Detail

hasConstraint

public boolean hasConstraint()
Specified by:
hasConstraint in interface Statement

getConstraint

public Constraint getConstraint()
Specified by:
getConstraint in interface Statement

setConstraint

public void setConstraint(Constraint value)
Specified by:
setConstraint in interface Statement

render

public abstract java.lang.String render(SQLRenderContext context)
Specified by:
render in interface SQLElement

clone

public abstract java.lang.Object clone()
                                throws java.lang.CloneNotSupportedException
Specified by:
clone in interface Statement
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException


Copyright 2005-2005-2006 null. All Rights Reserved.