TZAbstractSequence Class Reference

Implements Abstract Sequence generator. More...

Inheritance diagram for TZAbstractSequence:

TInterfacedObject IZSequence TZInterbase6Sequence TZOracleSequence TZPostgreSQLSequence

List of all members.

Public Member Functions

IZConnection GetConnection ()
 Returns the Connection object that produced this Statement object.
Int64 GetCurrentValue ()
 Gets the current unique key generated by this sequence.
string GetCurrentValueSQL ()
Int64 GetNextValue ()
 Gets the next unique key generated by this sequence.
string GetNextValueSQL ()
 TZAbstractSequence (IZConnection Connection, string Name, Integer BlockSize)
 Creates this sequence object.

Public Attributes

Integer BlockSize
string Name

Protected Member Functions

Integer GetBlockSize ()
 Returns the assigned block size for this sequence.
string GetName ()
 Returns a name of the sequence generator.
 SetBlockSize (const Integer Value)
 Sets the block size for this sequence.
 SetName (const string Value)
 Sets a name of the sequence generator.

Protected Attributes

IZConnection Connection

Private Attributes

Integer FBlockSize
IZConnection FConnection
string FName


Detailed Description

Implements Abstract Sequence generator.

Definition at line 439 of file ZDbcConnection.pas.


Constructor & Destructor Documentation

TZAbstractSequence::TZAbstractSequence ( IZConnection  Connection,
string  Name,
Integer  BlockSize 
)

Creates this sequence object.

Parameters:
Connection an SQL connection interface.
Name a name of the sequence generator.
BlockSize a number of unique keys requested in one trip to server.

Definition at line 1486 of file ZDbcConnection.pas.


Member Function Documentation

Integer TZAbstractSequence::GetBlockSize (  )  [protected]

Returns the assigned block size for this sequence.

Returns:
the assigned block size.

Reimplemented from IZSequence.

Definition at line 1528 of file ZDbcConnection.pas.

IZConnection TZAbstractSequence::GetConnection (  ) 

Returns the Connection object that produced this Statement object.

Returns:
the connection that produced this statement

Reimplemented from IZSequence.

Definition at line 1504 of file ZDbcConnection.pas.

Int64 TZAbstractSequence::GetCurrentValue (  ) 

Gets the current unique key generated by this sequence.

Parameters:
the last generated unique key.

Reimplemented from IZSequence.

Reimplemented in TZInterbase6Sequence, TZOracleSequence, and TZPostgreSQLSequence.

Definition at line 1540 of file ZDbcConnection.pas.

string TZAbstractSequence::GetCurrentValueSQL (  ) 

Reimplemented from IZSequence.

Reimplemented in TZInterbase6Sequence, TZOracleSequence, and TZPostgreSQLSequence.

string TZAbstractSequence::GetName (  )  [protected]

Returns a name of the sequence generator.

Returns:
a name of this sequence generator.

Reimplemented from IZSequence.

Definition at line 1516 of file ZDbcConnection.pas.

Int64 TZAbstractSequence::GetNextValue (  ) 

Gets the next unique key generated by this sequence.

Parameters:
the next generated unique key.

Reimplemented from IZSequence.

Reimplemented in TZInterbase6Sequence, TZOracleSequence, and TZPostgreSQLSequence.

Definition at line 1559 of file ZDbcConnection.pas.

string TZAbstractSequence::GetNextValueSQL (  ) 

Reimplemented from IZSequence.

Reimplemented in TZInterbase6Sequence, TZOracleSequence, and TZPostgreSQLSequence.

TZAbstractSequence::SetBlockSize ( const Integer  Value  )  [protected]

Sets the block size for this sequence.

Parameters:
Value the block size.

Reimplemented from IZSequence.

Definition at line 1578 of file ZDbcConnection.pas.

TZAbstractSequence::SetName ( const string  Value  )  [protected]

Sets a name of the sequence generator.

Parameters:
Value a name of this sequence generator.

Reimplemented from IZSequence.

Definition at line 1591 of file ZDbcConnection.pas.


Member Data Documentation

See also:
GetBlockSize For reading

SetBlockSize For writing

Definition at line 498 of file ZDbcConnection.pas.

See also:
FConnection For reading

FConnection For writing

Definition at line 464 of file ZDbcConnection.pas.

Integer TZAbstractSequence::FBlockSize [private]

Definition at line 446 of file ZDbcConnection.pas.

Definition at line 448 of file ZDbcConnection.pas.

string TZAbstractSequence::FName [private]

Definition at line 444 of file ZDbcConnection.pas.

See also:
GetName For reading

SetName For writing

Definition at line 492 of file ZDbcConnection.pas.


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

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