Description of Table.
Inheritance: DatabaseItem, DatabaseFramework.Table
 public DB2ColumnTransformer(Table table, Column involvedColumn,DB2TableTransformer dependingTransformer,NameTranslator nameTranslator)
     : this(table,nameTranslator)
 {
     this._involvedColumn = involvedColumn;
     this._dependingTransformer = dependingTransformer;
     _column = new Column((DB_EA.Table)table, involvedColumn.name);
     _column.type = involvedColumn.type;
     _column.logicalAttribute = ((DB_EA.Column)involvedColumn).logicalAttribute;
     if (dependingTransformer.associationEnd != null)
     {
         if (dependingTransformer.associationEnd.lower > 0 )
         {
             _column.isNotNullable = true;
         }
     }
 }
Beispiel #2
0
 public EDDTable(DB_EA.Table wrappedTable, GlossaryManagerSettings settings)
 {
     this._wrappedTable = wrappedTable;
     this.settings      = settings;
 }
 public Column(Table owner, string name)
 {
     this._ownerTable = owner;
     this.name = name;
     this.ownerTable.addColumn(this);
 }
 public Column(Table owner, TSF_EA.Attribute attribute)
 {
     this._ownerTable = owner;
     this._wrappedattribute = attribute;
 }
 public EAColumnTransformer(Table table, NameTranslator nameTranslator)
     : base(nameTranslator)
 {
     this._table =  table;
 }
 public EAPrimaryKeyTransformer(Table table, NameTranslator nameTranslator)
     : base(nameTranslator)
 {
     _table = table;
 }
 public DB2ColumnTransformer(Table table, Column column, UTF_EA.Attribute attribute,NameTranslator nameTranslator)
     : this(table,nameTranslator)
 {
     this.logicalProperty = attribute;
     this.column = column;
 }
 public override DB.DatabaseItem createAsNewItem(DB.DatabaseItem owner, bool save = true)
 {
     Database existingDatabase = owner as Database;
     var newTable = new Table((Database)existingDatabase,this.name);
     newTable._logicalClasses = new List<Class>(logicalClasses);
     newTable.derivedFromItem = this;
     if (save) newTable.save();
     return newTable;
 }
 public DB2ColumnTransformer(Table table,NameTranslator nameTranslator)
     : base(table,nameTranslator)
 {
 }
 public PrimaryKey(Table owner,Operation operation)
     : base(owner, operation)
 {
 }
 public PrimaryKey(Table owner, List<Column> involvedColumns)
     : base(owner, involvedColumns)
 {
 }
 public DB2PrimaryKeyTransformer(Table table, List<Column> involvedColumns,NameTranslator nameTranslator)
     : base(table,nameTranslator)
 {
     this._table.primaryKey = new DB_EA.PrimaryKey((DB_EA.Table)table, involvedColumns);
     resetName();
 }
 public ForeignKey(Table owner, List<Column> involvedColumns)
     : base(owner, involvedColumns)
 {
 }
 public ForeignKey(Table owner,Operation operation)
     : base(owner,operation)
 {
 }
 private void getForeignTable()
 {
     if (wrappedAssociation != null)
     {
         var targetClass = _wrappedAssociation.target as Class;
         if (targetClass != null)
         {
             _foreignTable = new Table(this._owner._owner, targetClass);
         }
     }
 }
 protected override void updateDetails(DB.DatabaseItem newDatabaseItem)
 {
     base.updateDetails(newDatabaseItem);
     ForeignKey newForeignKey = (ForeignKey)newDatabaseItem;
     //update the association
     this._foreignTable = newForeignKey._foreignTable;
     //set logical association
     this.logicalAssociation = newForeignKey.logicalAssociation;
 }