Namespace: OpenEdge.DataAdmin.DataSource
Class
TenantDataSource
Parent classes:
Inherits: OpenEdge.DataAdmin.DataSource.DataSource

/* Copyright (c) 2011 by progress Software Corporation.
/*
/* all rights reserved. no part of this program or document
/* may be reproduced in any form or by any means without
/* permission in writing from progress Software Corporation.
File:TenantDataSource
Author(s):hdaniels
Created:Oct 2010




Method Summary
Options Name Purpose
AfterRow (dataset-handle)
AfterSetUrl ()
CHARACTER ColumnExpression (character, character, character) /* convert type char value in query to the integer value in the db */
CHARACTER ColumnSource (character) /* override to rename Type, which is not mapped and default areas if not mapped */
DefineSource ()
PrepareBuffer (handle) /* keep constructor public TenantDataSource (phParent as handle,pcJoin as char,pfieldmap as char ): super (phParent, "_Tenant,b_dataArea,b_indexArea,b_LobArea","dictdb._Tenant,dictdb._Area,dictdb._Area,dictdb._Area",pFieldMap). BaseQuery = "for each " + phParent:name + " no-lock," + " each _Tenant" + (if pcjoin > "" then " where " + pcjoin else "") + " no-lock, " + mAreaQuery + " no-lock". end constructor. */
LOGICAL PrepareQueryString (QueryString)
LOGICAL Refresh (handle) /** refresh row-state 0 isallocated */
RefreshPartitionState (character, handle) /* set allocated in partitions that were changed . The Tenantcontext will do a new request, but it does this before the changes are merged so partitions with pending updates will not be refreshed due to the protection in dataRefreshed */
LOGICAL Save (handle) /** tenant requires control of order , so this is not supported */
LOGICAL Save (handle, integer) /** Save changes of specified state @param buffer the temp-table buffer handle with data @param state the row-state to save (row-created, row-deleted or row-modified) ? = all */

Constructor Summary
Options Name Purpose
TenantDataSource ()
TenantDataSource (character)
TenantDataSource (handle, character)

Property Summary
Options Name Purpose
CHARACTER AreasURL
CHARACTER AreaURL
CHARACTER FieldMap
CHARACTER FieldMapNoArea
CHARACTER mAreaQuery
CHARACTER QueryString
CHARACTER TenantURL


Method Detail
Top

AfterRow (dataset-handle)

Parameters:
hds DATASET-HANDLE
Top

AfterSetUrl ()

Top

CHARACTER ColumnExpression (character, character, character)

/* convert type char value in query to the integer value in the db
Parameters:
pcColumn CHARACTER
pcOperator CHARACTER
pcValue CHARACTER
Returns CHARACTER
Top

CHARACTER ColumnSource (character)

/* override to rename Type, which is not mapped
and default areas if not mapped
Parameters:
pcColumn CHARACTER
Returns CHARACTER
Top

DefineSource ()

Top

PrepareBuffer (handle)

/* keep
constructor public TenantDataSource (phParent as handle,pcJoin as char,pfieldmap as char ):
super (phParent, "_Tenant,b_dataArea,b_indexArea,b_LobArea","dictdb._Tenant,dictdb._Area,dictdb._Area,dictdb._Area",pFieldMap).
BaseQuery = "for each " + phParent:name + " no-lock,"
+ " each _Tenant"
+ (if pcjoin > "" then " where " + pcjoin else "")
+ " no-lock, "
+ mAreaQuery + " no-lock".
end constructor.
Parameters:
phBuffer HANDLE
Top

LOGICAL PrepareQueryString (QueryString)

Parameters:
poQueryString OpenEdge.DataAdmin.Lang.QueryString
Returns LOGICAL
Top

LOGICAL Refresh (handle)

Purpose: refresh row-state 0 isallocated
Parameters:
phbuffer HANDLE
Returns LOGICAL
Top

RefreshPartitionState (character, handle)

/* set allocated in partitions that were changed . The Tenantcontext
will do a new request, but it does this before the changes are merged so
partitions with pending updates will not be refreshed due to the
protection in dataRefreshed
Parameters:
pcTenant CHARACTER
hds HANDLE
Top

LOGICAL Save (handle)

Purpose: tenant requires control of order , so this is not supported
Parameters:
phbuffer HANDLE
Returns LOGICAL
Top

LOGICAL Save (handle, integer)

Purpose: Save changes of specified state
? = all
Parameters:
phbuffer HANDLE
piState INTEGER
Returns LOGICAL


Constructor Detail
Top

TenantDataSource ()

Top

TenantDataSource (character)

Parameters:
pfieldmap CHARACTER
Top

TenantDataSource (handle, character)

Parameters:
phChild HANDLE
pfieldmap CHARACTER


Property Detail
Top

CHARACTER AreasURL

Returns CHARACTER
Top

CHARACTER AreaURL

Returns CHARACTER
Top

CHARACTER FieldMap

Returns CHARACTER
Top

CHARACTER FieldMapNoArea

Returns CHARACTER
Top

CHARACTER mAreaQuery

Returns CHARACTER
Top

CHARACTER QueryString

Returns CHARACTER
Top

CHARACTER TenantURL

Returns CHARACTER


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15