net.sourceforge.squirrel_sql.plugins.derby.types
Class DerbyClobDescriptor

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.derby.types.DerbyClobDescriptor

public class DerbyClobDescriptor
extends Object

Stores the data (text) of a Clob. Clobs are invalidated after a transaction is complete, so we always read fully and store the entire value.


Constructor Summary
DerbyClobDescriptor(String data)
          Ctor
 
Method Summary
 boolean equals(DerbyClobDescriptor c)
          Equals for Clobs means that the internal strings are identical, including their length.
 String getData()
           
 void setData(String data)
           
 String toString()
          toString means print the data string, unless the data has not been read at all.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DerbyClobDescriptor

public DerbyClobDescriptor(String data)
Ctor

Method Detail

equals

public boolean equals(DerbyClobDescriptor c)
Equals for Clobs means that the internal strings are identical, including their length. We need to account for the fact that one or both of them may not have actually had their data read. If both have not had their data read, then they are "equal", in a weird kind of way.


toString

public String toString()
toString means print the data string, unless the data has not been read at all.

Overrides:
toString in class Object

getData

public String getData()

setData

public void setData(String data)


Copyright © 2001-2011. All Rights Reserved.