SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.impl.jdbc.schema
Class SQLBuffer

java.lang.Object
  |
  +--com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer
All Implemented Interfaces:
java.io.Serializable

public class SQLBuffer
extends java.lang.Object
implements java.io.Serializable

Buffer for SQL statements that can be used to create java.sql.PreparedStatements.

Since:
2.4
See Also:
Serialized Form

Constructor Summary
SQLBuffer()
          Default constructor.
SQLBuffer(java.lang.Object val)
          Equivalent to new SQLBuffer ().appendValue (val).
SQLBuffer(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer buf)
          Equivalent to new SQLBuffer ().appendBuffer (buf).
SQLBuffer(java.lang.String sql)
          Equivalent to new SQLBuffer ().appendLiteral (sql).
 
Method Summary
 com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer appendBuffer(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer buffer)
          Append all elements of the specified SQLBuffer (shallowly) to this one.
 com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer appendLiteral(java.lang.String rawSQL)
          Append some raw, un-preparable SQL to the statement.
 com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer appendValue(java.lang.Object value)
          Append a value.
 java.lang.Object clone()
          Perform a shallow clone of this SQL Buffer.
 java.lang.Object[] getParameters()
          Return the parameters set into this buffer.
 java.lang.String getSQL()
          Return the SQL for this buffer.
 boolean isEmpty()
          Return true if this buffer is empty.
 int setParameters(java.sql.PreparedStatement ps, com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary dict)
          Populate the parameters of an existing PreparedStatement with values from this SQLBuffer.
 int setParameters(java.sql.PreparedStatement ps, int startIndex, com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary dict)
          Populate the parameters of an existing PreparedStatement with values from this SQLBuffer.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLBuffer

public SQLBuffer()
Default constructor.


SQLBuffer

public SQLBuffer(java.lang.String sql)
Equivalent to new SQLBuffer ().appendLiteral (sql).


SQLBuffer

public SQLBuffer(java.lang.Object val)
Equivalent to new SQLBuffer ().appendValue (val).


SQLBuffer

public SQLBuffer(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer buf)
Equivalent to new SQLBuffer ().appendBuffer (buf).

Method Detail

clone

public java.lang.Object clone()
Perform a shallow clone of this SQL Buffer.

Overrides:
clone in class java.lang.Object

isEmpty

public boolean isEmpty()
Return true if this buffer is empty.


appendLiteral

public com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer appendLiteral(java.lang.String rawSQL)
Append some raw, un-preparable SQL to the statement.


appendValue

public com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer appendValue(java.lang.Object value)
Append a value.


appendBuffer

public com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer appendBuffer(com.solarmetric.rd.kodo.impl.jdbc.schema.SQLBuffer buffer)
Append all elements of the specified SQLBuffer (shallowly) to this one.


getSQL

public java.lang.String getSQL()
Return the SQL for this buffer.


getParameters

public java.lang.Object[] getParameters()
Return the parameters set into this buffer.


setParameters

public int setParameters(java.sql.PreparedStatement ps,
                         com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary dict)
                  throws java.sql.SQLException
Populate the parameters of an existing PreparedStatement with values from this SQLBuffer.

java.sql.SQLException

setParameters

public int setParameters(java.sql.PreparedStatement ps,
                         int startIndex,
                         com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary dict)
                  throws java.sql.SQLException
Populate the parameters of an existing PreparedStatement with values from this SQLBuffer.

java.sql.SQLException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.