Tips_namingconventions   >   Class Names
Class Names
Each type of class has a designated prefix:
- Window classes are prefixed with lower case "w". (wWindow)
- Menu classes are prefixed with lower case "m". (mMenu)
- Toolbar classes are prefixed "tb". (tbToolbar)
- Object classes are prefixed with "o" (oObject)
- File classes are not prefixed. (To use the Omnis data file the file class name must match the data slot name.)
- Schema classes mapped to database tables are prefixed with lower case "s". (sSchema) The cap() of the server table name is used in the schema name so that whether the server table name is uppercase, lower case, or mixed case the schema class name is consistent.
- Query classes are prefixed with "q". (qQueryName)
- Table classes based on schema classes replace the Schema class's lower case "s" prefix with a lower case "t".
- Table classes based on query classes replace the Query class's lower case "q" prefix with a lower case "t".
- Remote form classes are prefixed with "rf". (rfRemoteFormName)
- Remote task classes are prefixed with "rt". (rtRemoteTaskName)
- An "X_" prefix designates an obsolete class.
Class Name Suffixes
The following are designated class name suffixes:
- _Task - task classes. e.g. Startup_Task, SecurityTimeout_Task
- _stb - schema class created specifically for listing string table IDs
- _listdef - schema class created specifically for defining a list which is not a database table
- _abstract - a superclass which is not to be directly instantiated but must first be subclassed.
- _template - a class which can be copied and is not to be directly instantiated.