Expresso 5-6

com.jcorporate.expresso.core.misc
Class SQLFastStringBuffer

java.lang.Object
  extended bycom.jcorporate.expresso.core.misc.SQLFastStringBuffer

public class SQLFastStringBuffer
extends Object

Stringbuffer with specific method to work on sql requests

Author:
Yves Henri AMAIZO

Constructor Summary
SQLFastStringBuffer()
          Constructor
SQLFastStringBuffer(int length)
          Constructor
SQLFastStringBuffer(String s)
          Initialises l'objet SQLFastStringBuffer.
 
Method Summary
 SQLFastStringBuffer addListSeparator()
          add separator to the list, if required
 SQLFastStringBuffer append(double v)
          add a double to the stringbuffer
 SQLFastStringBuffer append(int v)
          add an integer value to string
 SQLFastStringBuffer append(String v)
          add a String to stringbuffer
 SQLFastStringBuffer appendSQLItem(String i)
          add an item to the list
 SQLFastStringBuffer appendSQLNestedValue(double v)
          add a SQL value to the current list
 SQLFastStringBuffer appendSQLNestedValue(int v)
          add a SQL value to the current list
 SQLFastStringBuffer appendSQLNestedValue(String v)
          add a SQL value to the current list
 SQLFastStringBuffer appendSQLPadValue(String str)
          add a SQL value to the current String (no list separator)
 SQLFastStringBuffer appendSQLValue(double v)
          add a SQL value to the current String (no list separator)
 SQLFastStringBuffer appendSQLValue(int v)
          add a SQL value to the current String (no list separator)
 SQLFastStringBuffer appendSQLValue(String v)
          add a SQL value to the current String (no list separator)
 SQLFastStringBuffer startList()
          starts a sql list (initialize the separator inserter)
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLFastStringBuffer

public SQLFastStringBuffer()
Constructor


SQLFastStringBuffer

public SQLFastStringBuffer(String s)
Initialises l'objet SQLFastStringBuffer.

Parameters:
s - String s Initial StringBuffer

SQLFastStringBuffer

public SQLFastStringBuffer(int length)
Constructor

Parameters:
length - the size of the buffer
Method Detail

addListSeparator

public SQLFastStringBuffer addListSeparator()
add separator to the list, if required

Returns:
this

append

public SQLFastStringBuffer append(double v)
add a double to the stringbuffer

Parameters:
v - parameter to add
Returns:
this

append

public SQLFastStringBuffer append(int v)
add an integer value to string

Parameters:
v - the integer to append
Returns:
this

append

public SQLFastStringBuffer append(String v)
add a String to stringbuffer

Parameters:
v - the string to append
Returns:
this

appendSQLItem

public SQLFastStringBuffer appendSQLItem(String i)
add an item to the list

Parameters:
i - the item to add
Returns:
this

appendSQLNestedValue

public SQLFastStringBuffer appendSQLNestedValue(double v)
add a SQL value to the current list

Parameters:
v - the value
Returns:
this

appendSQLNestedValue

public SQLFastStringBuffer appendSQLNestedValue(int v)
add a SQL value to the current list

Parameters:
v - the value
Returns:
this

appendSQLNestedValue

public SQLFastStringBuffer appendSQLNestedValue(String v)
add a SQL value to the current list

Parameters:
v - the value
Returns:
this

appendSQLValue

public SQLFastStringBuffer appendSQLValue(double v)
add a SQL value to the current String (no list separator)

Parameters:
v - the value
Returns:
this

appendSQLValue

public SQLFastStringBuffer appendSQLValue(int v)
add a SQL value to the current String (no list separator)

Parameters:
v - the value
Returns:
this

appendSQLValue

public SQLFastStringBuffer appendSQLValue(String v)
add a SQL value to the current String (no list separator)

Parameters:
v - the value
Returns:
this

appendSQLPadValue

public SQLFastStringBuffer appendSQLPadValue(String str)
add a SQL value to the current String (no list separator)

Parameters:
str - the value to append
Returns:
this

startList

public SQLFastStringBuffer startList()
starts a sql list (initialize the separator inserter)

Returns:
this

toString

public String toString()
Returns:
the String value of this object

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.