| java.lang.Object net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.BlobDescriptor
BlobDescriptor | public class BlobDescriptor (Code) | | author: gwg author: This is the object that is actually stored in the ContentsTab table author: for a BLOB field. author: The data in a BLOB 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.Blob object that points to the data rather than the data itself. author: Since BLOBs 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 BLOB 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 | |
Blob | _blob The java.sql.Blob object that was read. | byte[] | _data The data read from the Blob. |
Constructor Summary | |
public | BlobDescriptor(Blob blob, byte[] data, boolean blobRead, boolean wholeBlobRead, int userSetBlobLimit) |
_blob | Blob _blob(Code) | | The java.sql.Blob object that was read.
|
_data | byte[] _data(Code) | | The data read from the Blob.
|
BlobDescriptor | public BlobDescriptor(Blob blob, byte[] data, boolean blobRead, boolean wholeBlobRead, int userSetBlobLimit)(Code) | | Ctor
|
equals | public boolean equals(BlobDescriptor c)(Code) | | Equals for Blobs means that the internal byte arrays 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.
|
getBlobRead | public boolean getBlobRead()(Code) | | |
getData | public byte[] getData()(Code) | | |
getUserSetBlobLimit | public int getUserSetBlobLimit()(Code) | | |
getWholeBlobRead | public boolean getWholeBlobRead()(Code) | | |
setBlobRead | public void setBlobRead(boolean blobRead)(Code) | | |
setData | public void setData(byte[] data)(Code) | | |
setUserSetBlobLimit | public void setUserSetBlobLimit(int userSetBlobLimit)(Code) | | |
setWholeBlobRead | public void setWholeBlobRead(boolean wholeBlobRead)(Code) | | |
toString | public String toString()(Code) | | toString means print the data string, unless the data has not been
read at all.
|
|
|