Next: Switches in MapToJava
Up: Full listings of Switches
Previous: Full listings of Switches
  Contents
These can also be found in codegen.dtd at http://charzard.
# note include and relation are to be implemented ..
- mapping ( class+, property* )
the top level element for all Abra files
- class ( description?, cache-type?, map-to?, class-view+, constraint+, field+ )
- name
- the fully quaified class name - (ie. com.foo.Bar)
- extends
- a Java class to extend (does not have to be in the map-file)
- identity
- for SQL-mapping the primary key of this table
- implements
- any Java interfaces to implement (; seperated)
- factory-ext
- the Java base factory for the generated Abstract fac defaults to (FactoryBase or EndDateFactoryBase (end-date=''true'')
- many-to-many
- set to true for many to many relationships
- end-date
- set to true if the class should be end-dated not deleted.
- constraint
- name
-
- type
- 'unique' or 'check'
- relation ( description?, map-to?, related, related) : NOT implemented
name
- related ( description?, sql?, xml?, ldap? ) : NOT implemented
- name
-
- type
-
- map-to
- table
- the sql table name
- xml
- the xml node name
- class-view: a definition of a class data-view (to abstract this
class)
- name
-
- format
- a short name to be use later like 'normal', 'blotter'
- field ( description?, sql?, xml?, view+ , validate*) : description of a java/sql/xml field mapping
- name
-
- type
- Fully qualified name (integer, string or foo.bar.FooBar)
- required
- if true both sql and xml will require this field
- collection
- ( array | vector | hashtable | collection | set | map )
- sql: for field to sql mappings
- name
-
- constraint-name
- for referential or defined contraints
- constraint
- to define a field constraint (like '> 0')
- type
- to re-define the sql type (otherwise the default
mappings are used
- view: to define how this field is viewed in different data abstractions
- in
- the format of the view (like 'blotter')
- foreign-view
- if a composite field the name of the view in
the other class
- foreign-field
- if a composite field the single parameter to rip
- xml: to define a how the java maps to xml
- name
-
- type
-
- node
- ( attribute | element | text ) how it should be (un)/marshalled
- validate: add a validation node to this field
- required
- set to true for business level mandatory field
- regex
- give a regular expression for pattern matching
- name
- used for regexp failed messages
- code
- used for regexp failed codes
Next: Switches in MapToJava
Up: Full listings of Switches
Previous: Full listings of Switches
  Contents
2002-03-05