|
|
 |
 |
EmearldJB Schema Reference
|
|
At the heart of EmeraldJB is the XML Schema. It is the primary focus of both the developer and generator. This page is the main reference for all XML tags in the EmeraldJB schema. Where the other documenation is focused on the backround of EmeraldJB this page is focused on the semantics of each and ever XML tag. It is essentically the Javadoc of the EmeraldJB schema.
- A Diagram
- A list of children this tag uses
- A list of tags that reference this one
- A list of Attributes
- Other information
- A brief description
|
| diagram |
|
| used
by |
|
| annotation |
| documentation |
Contains the deprecation reason, if this element is deprecated.
|
|
| diagram |
|
| used
by |
|
| annotation |
| documentation |
Contains the description for this element. Allows HTML tags.
|
|
| diagram |
|
| used
by |
|
| annotation |
| documentation |
The name of the developer.
|
|
| diagram |
 |
| used
by |
|
| attributes |
| Name |
Use |
Default |
Fixed |
Annotation |
|
NAME
|
required |
|
|
| documentation |
The name of this element, which is used as the View field name.
|
|
|
TYPE
|
required |
|
|
| documentation |
The type of the field.
|
|
|
SRC
|
required |
|
|
| documentation |
The SQL that defines the field selection criteria, within quotes. For complex SRC values, use the FIELD_SPEC tag.
|
|
|
| annotation |
| documentation |
A short-hand nugget field. Attributes are: NAME, TYPE, and SRC
|
|
| datatypes |
| Type |
Java Type(s) |
java.sql accessor / setter |
MySQL Column Type |
| int |
int, Integer |
getInt / setInt |
INTEGER |
| long |
long, Long |
getLong / setLong |
BIGINT |
| short |
short, Short |
getShort / setShort |
SMALLINT |
| boolean |
boolean, Boolean |
getShort / setShort |
SMALLINT |
| float |
float, Float |
getFloat / setShort |
FLOAT |
| double |
double, Double |
getDouble / setDouble |
DOUBLE |
| String |
String |
getString / setString |
If len < 255 VARCHAR(len) else BLOB |
| date |
java.sql.Date |
getDate / setDate |
DATE |
| time |
java.sql.Time |
getTime / setTime |
TIME |
| timestamp |
java.sql.Timestamp |
getTimestamp / setTimestamp |
TIMESTAMP |
|
| diagram |
|
| children |
PATTERN
JAVADOC
SRC
|
| used
by |
|
| attributes |
| Name |
Use |
Default |
Fixed |
Annotation |
|
NAME
|
required |
|
|
| documentation |
The name of this element, which is used as the View field name.
|
|
|
TYPE
|
required |
|
|
| documentation |
The type of the field.
|
|
|
| annotation |
| documentation |
A long-hand nugget field, with Javadoc and complex SRC capability. Same attributes as FIELD
|
|
| datatypes |
| Type |
Java Type(s) |
java.sql accessor / setter |
MySQL Column Type |
| int |
int, Integer |
getInt / setInt |
INTEGER |
| long |
long, Long |
getLong / setLong |
BIGINT |
| short |
short, Short |
getShort / setShort |
SMALLINT |
| boolean |
boolean, Boolean |
getShort / setShort |
SMALLINT |
| float |
float, Float |
getFloat / setShort |
FLOAT |
| double |
double, Double |
getDouble / setDouble |
DOUBLE |
| String |
String |
getString / setString |
If len < 255 VARCHAR(len) else BLOB |
| date |
java.sql.Date |
getDate / setDate |
DATE |
| time |
java.sql.Time |
getTime / setTime |
TIME |
| timestamp |
java.sql.Timestamp |
getTimestamp / setTimestamp |
TIMESTAMP |
|
| diagram |
 |
| used
by |
|
| annotation |
| documentation |
Contains the text to be included as part of each generated Java file.
|
|
| diagram |
|
| children |
PATTERN
JAVADOC
PARAMS
FROM
SQL
|
| used
by |
|
| attributes |
| Name |
Use |
Default |
Fixed |
Annotation |
|
NAME
|
required |
|
|
| documentation |
The name of this element, which is used as the Java method name.
|
|
|
SINGLETON
|
optional |
FALSE |
|
| documentation |
A boolean flag indicating that this finder returns a single entity, which affects the return value.
|
|
|
DISTINCT
|
optional |
FALSE |
|
| documentation |
A boolean flag indicating that this finder returns distinct values from the SELECT.
|
|
|
| annotation |
| documentation |
An arbitrary SQL finder function. The name is the actual Java finder method name.
|
|
| diagram |
 |
| used
by |
|
| attributes |
| Name |
Use |
Default |
Fixed |
Annotation |
|
NAME
|
required |
|
|
| documentation |
The name of the foreign key constraint.
|
|
|
COLS
|
required |
|
|
| documentation |
The comma-separated list of columns that comprise the foreign key.
|
|
|
REFERENCES
|
required |
|
|
| documentation |
The literal string of the foreign key, in the form TABLE(COL1,COL2)
|
|
|
| annotation |
| documentation |
A foreign key within an Entity. Attributes are NAME, COLS and REFERENCES.
|
|
| diagram |
 |
| used
by |
|
| annotation |
| documentation |
The optionsl table definition within the finder element.
|
|
| diagram |
 |
| used
by |
|
| attributes |
| Name |
Use |
Default |
Fixed |
Annotation |
|
NAME
|
required |
|
|
| documentation |
The name of the index constraint.
|
|
|
COLS
|
required |
|
|
| documentation |
The comma-separated list of columns that comprise the index.
|
|
|
UNIQUE
|
optional |
FALSE |
|
| documentation |
The boolean flag indicating whether this index has unique keys.
|
|
|
| annotation |
| documentation |
An index definition within an Entity. Attributes are NAME, COLS and UNIQUE.
|
|
| diagram |
 |
| used
by |
|
| attributes |
| Name |
Use |
Default |
Fixed |
Annotation |
|
NAME
|
required |
|
|
| documentation |
The name of the column, which is also used as the basis for the data access member.
|
|
|
TYPE
|
required |
|
|
| documentation |
The type of the member.
|
|
|
FROM_SEQ
|
optional |
FALSE |
|
| documentation |
A string attribute specifying the sequence for autogenerated int columns. Ignored if set to FALSE.
|
|
|
NULL_ALLOWED
|
optional |
TRUE |
|
| documentation |
A boolean flag indicating that this member allows null values in the database.
|
|
|
DIRTY_CHECK
|
optional |
FALSE |
|
| documentation |
A boolean flag indicating that this int member is used to check for dirty write attempts.
|
|
|
DEFAULT
|
|
|
|
| documentation |
The default value for the member.
|
|
|
COL_LEN
|
required for (String) |
|
| documentation |
The number of columns for a string member.
|
|
|
| annotation |
| documentation |
An short-hand Entity column. Attributes are: NAME, TYPE, FROM_SEQ, NULL_ALLOWED, DIRTY_CHECK, DEFAULT, and COL_LEN.
|
|
| datatypes |
| Type |
Java Type(s) |
java.sql accessor / setter |
MySQL Column Type |
| int |
int, Integer |
getInt / setInt |
INTEGER |
| long |
long, Long |
getLong / setLong |
BIGINT |
| short |
short, Short |
getShort / setShort |
SMALLINT |
| boolean |
boolean, Boolean |
getShort / setShort |
SMALLINT |
| float |
float, Float |
getFloat / setShort |
FLOAT |
| double |
double, Double |
getDouble / setDouble |
DOUBLE |
| String |
String |
getString / setString |
If len < 255 VARCHAR(len) else BLOB |
| date |
java.sql.Date |
getDate / setDate |
DATE |
| time |
java.sql.Time |
getTime / setTime |
TIME |
| timestamp |
java.sql.Timestamp |
getTimestamp / setTimestamp |
TIMESTAMP |
|
| diagram |
|
| children |
PATTERN
JAVADOC
|
| used
by |
|
| attributes |
| Name |
Use |
Default |
Fixed |
Annotation |
|
NAME
|
required |
|
|
| documentation |
The name of the column, which is also used as the basis for the data access member.
|
|
|
TYPE
|
required |
|
|
| documentation |
The type of the member.
|
|
|
FROM_SEQ
|
optional |
FALSE |
|
| documentation |
A string attribute specifying the sequence for autogenerated int columns. Ignored if set to FALSE.
|
|
|
NULL_ALLOWED
|
optional |
TRUE |
|
| documentation |
A boolean flag indicating that this member allows null values in the database.
|
|
|
DIRTY_CHECK
|
optional |
FALSE |
|
| documentation |
A boolean flag indicating that this int member is used to check for dirty write attempts.
|
|
|
DEFAULT
|
|
|
|
| documentation |
The default value for the member.
|
|
|
COL_LEN
|
|
|
|
| documentation |
The number of columns for a string member.
|
|
|
| annotation |
| documentation |
An long-hand Entity column, allowing JavaDoc. Attributes are: NAME, TYPE, FROM_SEQ, NULL_ALLOWED, DIRTY_CHECK, DEFAULT, and COL_LEN.
|
|
| datatypes |
| Type |
Java Type(s) |
java.sql accessor / setter |
MySQL Column Type |
| int |
int, Integer |
getInt / setInt |
INTEGER |
| long |
long, Long |
getLong / setLong |
BIGINT |
| short |
short, Short |
getShort / setShort |
SMALLINT |
| boolean |
boolean, Boolean |
getShort / setShort |
SMALLINT |
| float |
float, Float |
getFloat / setShort |
FLOAT |
| double |
double, Double |
getDouble / setDouble |
DOUBLE |
| String |
String |
getString / setString |
If len < 255 VARCHAR(len) else BLOB |
| date |
java.sql.Date |
getDate / setDate |
DATE |
| time |
java.sql.Time |
getTime / setTime |
TIME |
| timestamp |
java.sql.Timestamp |
getTimestamp / setTimestamp |
TIMESTAMP |
|
| diagram |
|
| children |
PATTERN
JAVADOC
FIELD
FIELD_SPEC
FROM
FINDER
|
| used
by |
|
| attributes |
| Name |
Use |
Default |
Fixed |
Annotation |
|
NAME
|
required |
|
|
| documentation |
The name of this nugget, which corresponds to the root Java name.
|
|
|
| annotation |
| documentation |
A View definition that allows table joins and subset select values.
|
|
| diagram |
 |
| used
by |
|
| annotation |
| documentation |
The Java signature for the finder method, with named parameteres.
|
|
| diagram |
|
| used
by |
|
| attributes |
| Name |
Use |
Default |
Fixed |
Annotation |
|
NAME
|
required |
|
|
| documentation |
The name of the pattern, used as a lookup key in the generators.
|
|
|
VALUE
|
required |
|
|
| documentation |
The value of the pattern to use, until overridden deeper in the spec.
|
|
|
OVERRIDABLE
|
optional |
FALSE |
|
| documentation |
A boolean flag indicating that this pattern may be overridden lower in project structure.
|
|
|
| annotation |
| documentation |
Specific hints for the generators
|
|
| diagram |
 |
| used
by |
|
| attributes |
| Name |
Use |
Default |
Fixed |
Annotation |
|
NAME
|
required |
|
|
| documentation |
The name of the primary key constraint.
|
|
|
COLS
|
required |
|
|
| documentation |
The comma-separated list of columns that comprise the primary key.
|
|
|
| annotation |
| documentation |
The primary key definition within an Entity. Attributes are COLS.
|
|
| diagram |
|
| children |
PATTERN
SECTION
|
| attributes |
| Name |
Use |
Default |
Fixed |
Annotation |
|
NAME
|
required |
|
|
| documentation |
The name of this element.
|
|
|
| annotation |
| documentation |
The collection of sections that make up a complete project.
|
|
| diagram |
|
| children |
HEADER
PATTERN
ENTITY
NUGGET
|
| used
by |
|
| attributes |
| Name |
Use |
Default |
Fixed |
Annotation |
|
NAME
|
required |
|
|
| documentation |
The name of the section.
|
|
|
| annotation |
| documentation |
The container for relatedl Emeraljdjb tags.
|
|
| diagram |
 |
| used
by |
|
| annotation |
| documentation |
The contents o a Javadoc @see tag.
|
|
| diagram |
 |
| used
by |
|
| annotation |
| documentation |
The contents of the JavaDoc @since tag.
|
|
| diagram |
 |
| used
by |
|
| annotation |
| documentation |
The SQL code for the Finder WHERE clause
|
|
| diagram |
 |
| used
by |
|
| annotation |
| documentation |
The SQL source of a nugget field.
|
|
|
 |
|