| java.lang.Object net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.ClobDescriptor
ClobDescriptor | public class ClobDescriptor (Code) | | author: gwg author: This is the object that is actually stored in the ContentsTab table author: for a CLOB field. author: The data in a CLOB is handled differently than other data types. author: When the row in the DB is read, what is returned is actually a author: java.sql.Clob object that points to the data rather than the data itself. author: Since CLOBs can be very large (and thus take a long time to read), we author: provide the user the flexibility to read only part of the CLOB data, or author: to not read any of it. We use the user selected options in various operations author: such as deciding if the field is editable or not. author: These options are set in the Session Parameters, author: and since those parameters can be changed after the data has been read, we author: make a copy of the appropriate information here. |
Inner Class :public static interface i18n | |
Field Summary | |
Clob | _clob The java.sql.Clob object that was read. | String | _data The data read from the Clob. |
Constructor Summary | |
public | ClobDescriptor(Clob clob, String data, boolean clobRead, boolean wholeClobRead, int userSetClobLimit) |
_clob | Clob _clob(Code) | | The java.sql.Clob object that was read.
|
ClobDescriptor | public ClobDescriptor(Clob clob, String data, boolean clobRead, boolean wholeClobRead, int userSetClobLimit)(Code) | | Ctor
|
equals | public boolean equals(ClobDescriptor c)(Code) | | 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 wierd kind of way.
|
getClobRead | public boolean getClobRead()(Code) | | |
getUserSetClobLimit | public int getUserSetClobLimit()(Code) | | |
getWholeClobRead | public boolean getWholeClobRead()(Code) | | |
setClobRead | public void setClobRead(boolean clobRead)(Code) | | |
setUserSetClobLimit | public void setUserSetClobLimit(int userSetClobLimit)(Code) | | |
setWholeClobRead | public void setWholeClobRead(boolean wholeClobRead)(Code) | | |
toString | public String toString()(Code) | | toString means print the data string, unless the data has not been
read at all.
|
|
|