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

Purpose: Private constructor for the GuidType class
Notes: Disallow instance creation



Top Method Summary
Options Name Purpose
+ LOGICAL IsGuid (character) Tests if the provided value is a GUID
+ CHARACTER NewGuid () Returns a new 36 character GUID value
+ CHARACTER NewUuid () Returns the 22 character BASE64 representation of a new UUID value

Top Constructor Summary
Options Name Purpose
- GuidType () Private constructor for the GuidType class


Method Detail
Top

PUBLIC LOGICAL IsGuid (character)

Purpose: Tests if the provided value is a GUID
Notes: Tests the format (lengths, position of -) and
that the entries are 0..9 or a..f

Parameters:
pcGuid CHARACTER
The Guid to test
Returns LOGICAL
Logical value indicating if the passed in value is a valid GUID
Top

PUBLIC CHARACTER NewGuid ()

Purpose: Returns a new 36 character GUID value
Notes:

Returns CHARACTER
The 36 character GUID value
Top

PUBLIC CHARACTER NewUuid ()

Purpose: Returns the 22 character BASE64 representation of a new UUID value
Notes: The BASE64 encoded UUID representation is shorter compared to the
original GUID value. However, it can only be used for unique keys,
when the comparison is may case-sensitive. BASE64 may return the
same value (only distinguished by the case) for two different UUID
values!

Returns CHARACTER
The 22 character BASE64 representation of a new UUID value


Constructor Detail
Top

PRIVATE GuidType ()

Purpose: Private constructor for the GuidType class
Notes: Disallow instance creation



©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 12:59:19