superwaba.ext.xplat.sql.db2e.db2ex
Class Db2eBoundString

java.lang.Object
  |
  +--superwaba.ext.xplat.sql.db2e.db2ex.Db2eBoundString

public class Db2eBoundString
extends java.lang.Object

Represents a String


Field Summary
 java.lang.String str
           
 
Constructor Summary
Db2eBoundString(int maxStringSize)
           
Db2eBoundString(java.lang.String str)
           
 
Method Summary
 byte[] getBuf()
           
 int getLength()
           
 int getMax()
           
 void setLength(int newLength)
           
 void setNewBuf(java.lang.String str)
          Return true if the buffer should be rebound.
 boolean setValue(byte[] bstr)
           
 boolean setValue(byte[] bstr, int begin, int length)
           
 boolean setValue(java.lang.String str)
          Returns false if the string is too large to fit in current buffer.
 boolean setValueCheck(byte[] bstr)
           
 boolean setValueCheck(byte[] bstr, int begin, int length)
           
 boolean setValueCheck(java.lang.String str)
           
 void setValueTruncate(java.lang.String str)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

str

public java.lang.String str
Constructor Detail

Db2eBoundString

public Db2eBoundString(int maxStringSize)

Db2eBoundString

public Db2eBoundString(java.lang.String str)
Method Detail

setValueTruncate

public void setValueTruncate(java.lang.String str)

setValue

public boolean setValue(java.lang.String str)
Returns false if the string is too large to fit in current buffer.

setValueCheck

public boolean setValueCheck(java.lang.String str)

setValue

public boolean setValue(byte[] bstr)

setValueCheck

public boolean setValueCheck(byte[] bstr)

setValue

public boolean setValue(byte[] bstr,
                        int begin,
                        int length)

setValueCheck

public boolean setValueCheck(byte[] bstr,
                             int begin,
                             int length)

setNewBuf

public void setNewBuf(java.lang.String str)
Return true if the buffer should be rebound.

getBuf

public byte[] getBuf()

getMax

public int getMax()

getLength

public int getLength()

setLength

public void setLength(int newLength)

toString

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