[Overview][Constants][Classes][Index] Reference for unit 'tiVisitorDB' (#tiopf)

TtiObjectVisitor

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Is responsible for mapping a TtiObject to a TQuery

Declaration

Source position: tiVisitorDB.pas line 108

type TtiObjectVisitor = class(TtiVisitor) end;

protected

  function GetVisited;

  procedure SetVisited(); virtual;

  procedure LogQueryTiming();

  property PersistenceLayer: TtiPersistenceLayer; [rw]

  property Database: TtiDatabase; [rw]

  property Query: TtiQuery; [rw]

  procedure Init; virtual;

  procedure SetupParams; virtual;

  procedure UnInit; virtual;

  procedure Final(); virtual;

public

  constructor Create; override;

  destructor Destroy; override;

  class function VisitorControllerClass; override;

  property Visited: TtiObject; [rw]

Inheritance

TtiObjectVisitor

  

Is responsible for mapping a TtiObject to a TQuery

|

TtiVisitor

  

The class that does the visiting

|

TtiBaseObject,IInterface

|

TObject

Description

TtiObjectVisitor maps a TtiObject to a TQuery, and links the TQuery to a TDatabase. Compared to TtiVisitor, TtiObjectVisitor adds an owned query object.

Note: It is not necessary to manually lock and unlock database connections from this level and below - TtiObjectVisitorController does this for you.

See also

TtiObjectVisitorController

  

Class responsible for grabbing database from connection pool.


Documentation generated on: 2017-08-16