railo.runtime.db
Class SQLImpl

java.lang.Object
  extended by railo.runtime.db.SQLImpl
All Implemented Interfaces:
Serializable, SQL, Sizeable

public final class SQLImpl
extends Object
implements SQL, Serializable, Sizeable

represents a SQL Statement with his defined arguments for a prepared statement

See Also:
Serialized Form

Constructor Summary
SQLImpl(String strSQL)
          Constructor only with SQL String
SQLImpl(String strSQL, SQLItem[] items)
          Constructor with SQL String and SQL Items
 
Method Summary
 void addItems(SQLItem item)
           
 SQL duplicate()
           
static SQL duplicate(SQL sql)
           
 SQLItem[] getItems()
           
 int getPosition()
           
 String getSQLString()
           
 void setPosition(int position)
           
 void setSQLString(String strSQL)
           
 long sizeOf()
          return the size of the object
 String toHashString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLImpl

public SQLImpl(String strSQL)
Constructor only with SQL String

Parameters:
strSQL - SQL String

SQLImpl

public SQLImpl(String strSQL,
               SQLItem[] items)
Constructor with SQL String and SQL Items

Parameters:
strSQL - SQL String
items - SQL Items
Method Detail

addItems

public void addItems(SQLItem item)

getItems

public SQLItem[] getItems()
Specified by:
getItems in interface SQL
Returns:
Returns the items.

getPosition

public int getPosition()
Specified by:
getPosition in interface SQL
Returns:
Returns the position.

setPosition

public void setPosition(int position)
Specified by:
setPosition in interface SQL
Parameters:
position - The position to set.

getSQLString

public String getSQLString()
Specified by:
getSQLString in interface SQL
Returns:
returns the pure SQL String

setSQLString

public void setSQLString(String strSQL)
Specified by:
setSQLString in interface SQL
Parameters:
strSQL - sets the SQL String

toString

public String toString()
Overrides:
toString in class Object

toHashString

public String toHashString()
Specified by:
toHashString in interface SQL
Returns:
returns Unique String for Hash

sizeOf

public long sizeOf()
Description copied from interface: Sizeable
return the size of the object

Specified by:
sizeOf in interface Sizeable
Returns:
size of the object

duplicate

public static SQL duplicate(SQL sql)

duplicate

public SQL duplicate()


Copyright © 2012 Railo