User's Manual

192 Appendix D. PDL Syntax
IMPORT = import
INSERT = insert
JOIN = join
MAP = map
MODEL = model
OBJECTKEY = object <WS> key
OBJECTTYPE = object <WS> type
OPTION = option
OPTIONS = options
QUERY = query
REFERENCEKEY = reference <WS> key
REMOVE = remove
RETRIEVE = retrieve
RETURNS = returns
SUPER = super
TO = to
TRUE = true
UNIQUE = unique
UNVERSIONED = unversioned
UPDATE = update
VERSIONED = versioned
WS = ([ , \t, \n, \r, \f])+
Punctuation
-----------
SEMI = ;
EQ = =
DOT = .
COMMA = ,
STAR = *
LBRACE = {
RBRACE = }
LBRACKET = [
RBRACKET = ]
LPAREN = (
RPAREN = )
COLON = :
Regular expressions
-------
ID = (<ESC>|<CH>) (<ESC>|<CH>|<DIGIT>)*
CH = [a-z, A-Z, _, $]
ESC = "\\" ~[]
INT = (<DIGIT>)+
DIGIT = [0-9]
STRINGLIT = \" ( ~[\"] | \\\" )* \"
Special Tokens
--------------
COMMENT: // (~[\n, \r])* (\n | \r | \r\n)
add — used with associations. The PDL file uses the add keyword, along with an association name,
to signify that a given association should be inserted into the database.
call used to signify that a Data Operation contains PL/SQL and should use a
CallableStatement to execute the block of SQL defined in the do block.
clear — used with associations. The PDL file uses the clear keyword, along with an association
name, to signify that all associations of the given name should be deleted from the database. This
can be thought of as a "remove all" keyword.