public class AttributeLine extends SingleLine
An attribute line is defined as follows:
javaType[(size[,scale])] javaName columnName [comment] [\[options\]]Where:
Examples:
long subsidiaryId subsidiary_id subsidiary ID [contextid] String(10) invoiceNo invoice_no the unique invoice number [uc] Date invoiceDate invoice_date the invoice's date long customerId customer_id object ID of the customer [uc] String(200) address address the address (multiline) [default 'blah'] DMoney total total sum (without tax) DMoney tax tax tax (vat) Timestamp printed printed first printed Double(10,2) someDouble some_double digits with scale MyType<int> extra extra some application specific type
| Constructor and Description |
|---|
AttributeLine(Document document,
int offset,
LineType lineType)
Creates an attribute line.
This line always spans only one line. |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnName()
Gets the column name in database table.
|
String |
getComment()
Gets the comment.
|
String |
getInnerName()
Gets the generic type.
|
String |
getJavaName()
Gets the Java attribute name.
|
String |
getJavaType()
Gets the java type.
|
List<String> |
getOptions()
Gets the options.
|
Integer |
getScale()
Gets the numeric scale.
|
Integer |
getSize()
Gets the size.
|
void |
parse()
Parses a line.
|
assertParsed, createModelException, createModelException, getDocument, getLength, getLineNumber, getLineType, getOffset, getSourceInfo, getText, setLength, toStringpublic void parse()
throws ModelException
Lineparse in class SingleLineModelException - if parsing failedpublic String getJavaType() throws ModelException
ModelException - if not parsedpublic String getInnerName() throws ModelException
ModelException - if not parsedpublic Integer getSize() throws ModelException
ModelException - if not parsedpublic Integer getScale() throws ModelException
ModelException - if not parsedpublic String getJavaName() throws ModelException
ModelException - if not parsedpublic String getColumnName() throws ModelException
ModelException - if not parsedpublic String getComment() throws ModelException
ModelException - if not parsedpublic List<String> getOptions() throws ModelException
ModelException - if not parsedCopyright © 2016 Krake Softwaretechnik. All rights reserved.