TZPostgreSQLBlob Class Reference

Implements external blob wrapper object for PostgreSQL. More...

Inheritance diagram for TZPostgreSQLBlob:

TZAbstractBlob IZPostgreSQLBlob TInterfacedObject IZBlob

List of all members.

Public Member Functions

 Clear ()
IZBlob Clone ()
 Clones this blob object.
Oid GetBlobOid ()
 Gets the blob handle oid.
TByteDynArray GetBytes ()
TStream GetStream ()
 Gets the associated stream object.
string GetString ()
WideString GetUnicodeString ()
Boolean IsEmpty ()
 Checks if this blob has an empty content.
Boolean IsUpdated ()
LongInt Length ()
 ReadBlob ()
 Reads the blob by the blob handle.
 SetBytes (const TByteDynArray Value)
 SetStream (TStream Value)
 SetString (const string Value)
 SetUnicodeString (const WideString Value)
 TZPostgreSQLBlob (IZPostgreSQLPlainDriver PlainDriver, Pointer Data, Integer Size, PZPostgreSQLConnect Handle, Oid BlobOid)
 Constructs this class and assignes the main properties.
 WriteBlob ()
 Writes the blob by the blob handle.
 ~TZPostgreSQLBlob ()
 Destroys this object and cleanups the memory.

Protected Attributes

Pointer BlobData
Integer BlobSize
Boolean Updated

Private Attributes

Oid FBlobOid
PZPostgreSQLConnect FHandle
IZPostgreSQLPlainDriver FPlainDriver


Detailed Description

Implements external blob wrapper object for PostgreSQL.

Definition at line 191 of file ZDbcPostgreSqlResultSet.pas.


Constructor & Destructor Documentation

TZPostgreSQLBlob::TZPostgreSQLBlob ( IZPostgreSQLPlainDriver  PlainDriver,
Pointer  Data,
Integer  Size,
PZPostgreSQLConnect  Handle,
Oid  BlobOid 
)

Constructs this class and assignes the main properties.

Parameters:
PlainDriver a PostgreSQL plain driver.
Data a pointer to the blobdata.
Size the size of the blobdata.
Handle a PostgreSQL connection reference.

Definition at line 910 of file ZDbcPostgreSqlResultSet.pas.

TZPostgreSQLBlob::~TZPostgreSQLBlob (  ) 

Destroys this object and cleanups the memory.

Definition at line 929 of file ZDbcPostgreSqlResultSet.pas.


Member Function Documentation

TZAbstractBlob::Clear (  )  [inherited]

Reimplemented from IZBlob.

IZBlob TZPostgreSQLBlob::Clone (  ) 

Clones this blob object.

Returns:
a clonned blob object.

Reimplemented from TZAbstractBlob.

Definition at line 1049 of file ZDbcPostgreSqlResultSet.pas.

Oid TZPostgreSQLBlob::GetBlobOid (  ) 

Gets the blob handle oid.

Returns:
the blob handle oid.

Reimplemented from IZPostgreSQLBlob.

Definition at line 941 of file ZDbcPostgreSqlResultSet.pas.

TByteDynArray TZAbstractBlob::GetBytes (  )  [inherited]

Reimplemented from IZBlob.

Reimplemented in TZASABlob, and TZInterbase6Blob.

TStream TZPostgreSQLBlob::GetStream (  ) 

Gets the associated stream object.

Returns:
an associated or newly created stream object.

Reimplemented from TZAbstractBlob.

Definition at line 1062 of file ZDbcPostgreSqlResultSet.pas.

string TZAbstractBlob::GetString (  )  [inherited]

Reimplemented from IZBlob.

Reimplemented in TZASABlob, and TZInterbase6Blob.

WideString TZAbstractBlob::GetUnicodeString (  )  [inherited]

Reimplemented from IZBlob.

Reimplemented in TZASABlob, and TZInterbase6Blob.

Boolean TZPostgreSQLBlob::IsEmpty (  ) 

Checks if this blob has an empty content.

Returns:
True if this blob is empty.

Reimplemented from TZAbstractBlob.

Definition at line 1036 of file ZDbcPostgreSqlResultSet.pas.

Boolean TZAbstractBlob::IsUpdated (  )  [inherited]

Reimplemented from IZBlob.

LongInt TZAbstractBlob::Length (  )  [inherited]

Reimplemented from IZBlob.

TZPostgreSQLBlob::ReadBlob (  ) 

Reads the blob by the blob handle.

Reimplemented from IZPostgreSQLBlob.

Definition at line 952 of file ZDbcPostgreSqlResultSet.pas.

TZAbstractBlob::SetBytes ( const TByteDynArray  Value  )  [inherited]

Reimplemented from IZBlob.

TZAbstractBlob::SetStream ( TStream  Value  )  [inherited]

Reimplemented from IZBlob.

TZAbstractBlob::SetString ( const string  Value  )  [inherited]

Reimplemented from IZBlob.

TZAbstractBlob::SetUnicodeString ( const WideString  Value  )  [inherited]

Reimplemented from IZBlob.

TZPostgreSQLBlob::WriteBlob (  ) 

Writes the blob by the blob handle.

Reimplemented from IZPostgreSQLBlob.

Definition at line 990 of file ZDbcPostgreSqlResultSet.pas.


Member Data Documentation

Pointer TZAbstractBlob::BlobData [protected, inherited]

See also:
FBlobData For reading

FBlobData For writing

Reimplemented in TZASABlob.

Definition at line 764 of file ZDbcResultSet.pas.

Integer TZAbstractBlob::BlobSize [protected, inherited]

See also:
FBlobSize For reading

FBlobSize For writing

Reimplemented in TZASABlob.

Definition at line 767 of file ZDbcResultSet.pas.

Definition at line 198 of file ZDbcPostgreSqlResultSet.pas.

Definition at line 196 of file ZDbcPostgreSqlResultSet.pas.

Definition at line 200 of file ZDbcPostgreSqlResultSet.pas.

Boolean TZAbstractBlob::Updated [protected, inherited]

See also:
FUpdated For reading

FUpdated For writing

Definition at line 770 of file ZDbcResultSet.pas.


The documentation for this class was generated from the following file:

Generated on Wed Dec 30 08:42:55 2009 for zeoslib by  doxygen 1.5.7.1