Sign in Join
FPDoc Onlineexperiment

TSQLSequence class

In unit SQLDB

Support for applying sequences to fields.

Declaration

pascal
TSQLSequence = class(TPersistent)

Inheritance

  1. TSQLSequence
  2. TPersistent
  3. TObject

Description

TSQLSequence is an auxiliary class, used to auto-generate numerical values for fields in databases that support sequences; it is used as a property of TSQLQuery and its properties determine which field must be auto-generated, and at what moment this value must be generated.

See also

Properties

FieldNamepublishedField to apply sequence to.
SequenceNamepublishedSequence name to get values from.
IncrementBypublishedValue to increment sequence with.
ApplyEventpublishedWhen to apply the new value.

Methods

CreatepublicCreate a new instance.
AssignpublicAssign one TSQLSequence to another.
ApplypublicApply a new value to a field.
GetNextValuepublicGet a next value for the sequence.

Inherited

From TPersistent (8)

AssignTo DefineProperties Destroy FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.