Home Overview Architecture Language Weave Implementation Licence |
Persist Descriptor LanguageThe Persistence Descriptor Language (PerDL) is based on the aspect description language (ADL). However, instead of placing aspect information into a single file, the new language incorporates it's data into the source of the persistent classes themselves. PerDL is 'compatible' with the aspect description language in the sense that transformation from the latter to the former is a trivial matter. Eventually, an implementation of ADL, dealing with all of the aspects described in it could use Persist/J for the persistency of ADL. The ADL weaver could transform ADL's persistency-related parts to PerDL. Note that the class needs a default constructor for Persist to work. The persistency is described as a special comment block at the end of the class source file, not entirely unlike JavaDoc comments. The start of the PerDL information is a /*_PerDL_, and ends with a regular */. The syntax of the PerDL block is described bellow: /*_PerDL_ attributes=attr1 [attr2 [...]] ; before_save=method ; after_load=method ; */ White space between words are accepted. Order is not important. Description of the fields:
|