Namespace: Consultingwerk.Assertion
Class 
BufferAssert Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:BufferAssert
Purpose:Provides generic methods for validating of BUFFER object handles
Description:Routines in this class typically raise an error condition
when the condition is not met.
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Wed Jul 20 00:41:51 CEST 2011
Notes:Static methods, throw error on failed test.



Top Method Summary
Options Name Purpose
+ FieldDataType (handle, character, character) Verifies the data type of a buffer field
+ HasField (handle, character) Verifies that the passed in buffer handle has a field with the given name
+ IsAvailable (handle) Verifies the a record is available in that Buffer
+ IsDatabaseBuffer (handle) Verifies that the passed in buffer handle is a buffer for a database table (not a temp-table buffer)
+ IsDatasetBuffer (handle) Verifies that the passed in buffer handle belongs to a ProDataset member buffer
+ IsTempTableBuffer (handle) Verifies that the passed in buffer handle belongs to a temp-table

Top Constructor Summary
Options Name Purpose
- BufferAssert () Disallow instance creation.


Method Detail
Top

PUBLIC FieldDataType (handle, character, character)

Purpose: Verifies the data type of a buffer field
Notes: Verifies first, that the buffer field exists

Parameters:
phBuffer HANDLE
The Buffer handle to test
pcFieldName CHARACTER
The name of the buffer field
pcDataTypes CHARACTER
The comma delimited list of valid data type
Top

PUBLIC HasField (handle, character)

Purpose: Verifies that the passed in buffer handle has a field with the
given name
Notes: Verifies that a valid buffer is passed in first.
Throws: Consultingwerk.Assertion.AssertException

Parameters:
phBuffer HANDLE
The Buffer handle to test
pcFieldName CHARACTER
The name of the buffer field
Top

PUBLIC IsAvailable (handle)

Purpose: Verifies the a record is available in that Buffer
Notes: Verifies that a valid buffer is passed in first.
Throws: Consultingwerk.Assertion.AssertException

Parameters:
phBuffer HANDLE
The handle of the Buffer to verify
Top

PUBLIC IsDatabaseBuffer (handle)

Purpose: Verifies that the passed in buffer handle is a buffer for a database
table (not a temp-table buffer)
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
phBuffer HANDLE
The Buffer handle to verify
Top

PUBLIC IsDatasetBuffer (handle)

Purpose: Verifies that the passed in buffer handle belongs to a ProDataset
member buffer
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
phBuffer HANDLE
The Buffer handle to verify
Top

PUBLIC IsTempTableBuffer (handle)

Purpose: Verifies that the passed in buffer handle belongs to a temp-table
Notes:
Throws: Consultingwerk.Assertion.AssertException

Parameters:
phBuffer HANDLE
The Buffer handle to verify


Constructor Detail
Top

PRIVATE BufferAssert ()

Purpose: Disallow instance creation.
Notes:



©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:25:38