Methods Summary |
---|
oisoft.togetherx.scriptapi.UML.UMLAttribute | getAttribute()
return myAttribute;
|
public java.util.Enumeration | getConstraints()
return new EmptyEnumeration();
|
public int | getDecimalDigits()
String tagValue = myAttribute.getProperty(tagNameSQLDigits());
if(tagValue != null){
try{
return Integer.parseInt(tagValue);
}
catch(NumberFormatException err){
err.printStackTrace();
}
}
// Size not set by some reason.
return 0;
|
public java.lang.String | getName()
if( myName == null ){
myName = myTable.createColumnName(this);
}
return myName;
|
public java.lang.String | getRemarks()
return "";
|
public int | getSize()
String tagValue = myAttribute.getProperty(tagNameSQLSize());
if(tagValue != null){
try{
return Integer.parseInt(tagValue);
}
catch(NumberFormatException err){
err.printStackTrace();
}
}
// Size not set by some reason.
return 0;
|
public oisoft.togetherx.scripts.SQL.SQLTable | getTable()
return myTable;
|
SQLDiagramTags | getTags()
return myTable.getTags();
|
public short | getType()
return 0;
|
public java.lang.String | getTypeName()
return myAttribute.getProperty(tagNameSQLType());
|
boolean | isForeignKey()
//return !myAttribute.getContainingClass().equals(myTable.getUMLClass());
return myForeignKey;
|
public boolean | isNullAllowed()
return myNullable;
|
boolean | isPrimaryKey()
return myForcePrimaryKey
|| (!isForeignKey() && getAttribute().hasProperty(getTags().attributePrimaryKey()));
|
private java.lang.String | tagNameSQLDigits()
return getTags().attributePrecision();
|
private java.lang.String | tagNameSQLSize()
return getTags().attributeLength();
|
private java.lang.String | tagNameSQLType()
return getTags().attributeSQLType();
|