This site in:
 English
 Spanish
 Portuguese
 German
 French
 Italian
NEWS ALERT: Western Australia Police installs 5 Clicks in all its stations! Now 5 Clicks will be helping Police to catch criminals.
 

Schema

  

 

Schema class object has a single instance in the DB3NF library and is a set of methods on top of memory-based database that is created by SchemaLoad object when Web application starts. This memory-based database is in essence an optimized for reads copy of the "Schema" Database.

Schema class does not access any databases directly.


Schema
 ClassRule(ParentClass, ChildClass)
 ClassRulesSingleParents(ChildClass)
 ClassSchema(Class)
 CreatedStamps
 GetClassID(Class)
 InstanceID
 OptionValues(OptionID)
 PropertyRule(Class, PropertyName)
 PropertyRules(Class)
 PropertySchema(PropertyName)
 SetSession(SSSession)
 UpdatedStamps
 ValidateValue(Value, PropertyName, [Class], [ID])

Properties

  Name     Data Type      Parameters    Comments
ClassRule ClassRules
(Read-only)
ParentClass, ChildClass Returns tri-state relationship between classes.
crNotExists (0) - Not related
crMultipleParent (1) - Child class can have many parents of the parent class
crSingleParent (2) - Child class can have only one parent of the parent class
ClassRulesSingleParents Variant array ChildClass Returns all the Parents that can be only one for a child class for the specified class.
ClassSchema ClassSchema
(Read-only)
Class Returns schema of a class.
CreatedStamps Boolean
(Read-only)
NA
Returns deployment setting for time stamps for creation.
InstanceID String
NA
DB3NF can support many (and any combination) of "Schema" and "Data" databases.
For default instance InstanceID can be ignored. For any other instance it has to be referenced by a name.
All the instances have to be listed in the global.asa by the SchemaLoad.
OptionValues Variant array OptionID Returns an array of all the options. Each element of the array is a two-element array itself as pair of option value and option display name.
PropertyRule PropertyRule
(Read-only)
Class, PropertyName Returns the rules for the specified property of the specified class.
PropertyRules RulesCollection
(Read-only)
Class Returns collection of the rules for all the properties of the specified class.
PropertySchema PropertySchema
(Read-only)
PropertyName Returns schema of a property.
UpdatedStamps Boolean
(Read-only)
NA
Returns deployment setting for time stamps for update.

Methods

  Name    Return Value      Parameters    Comments
GetClassID Long Class Returns ID of a class by its name.
SetSession (hidden) None SSSession Used to set session if Session Server is used. In case of IIS sessions this method is not needed.
ValidateValue String Value, PropertyName, [Class],[ID] Returns error message if property value is invalid. If parent class and id are specified and property set in Schema as unique, the method will check for uniquness of property as well.

© 2001 - 2010 Interapple, Inc., All rights reserved.