Examples of PrimaryKeyCreation


Examples of org.databene.mad4db.cmd.PrimaryKeyCreation

      // PK removed
      tableChange.addSubChange(new ConstraintDeletion<DBPrimaryKeyConstraint>(pk1));
      return;
    } else if (pk1 == null) {
      // PK created
      tableChange.addSubChange(new PrimaryKeyCreation(pk2));
      return;
    }
   
    // there was a PK before and one after, so check if it was altered
    String[] colNames1 = pk1.getColumnNames();
View Full Code Here

Examples of org.databene.mad4db.cmd.PrimaryKeyCreation

    if (dbObject instanceof DBTable)
      return (Creation<E>) new TableCreation((DBTable) dbObject);
    else if (dbObject instanceof DBColumn)
      return (Creation<E>) new ColumnCreation((DBColumn) dbObject);
    else if (dbObject instanceof DBPrimaryKeyConstraint)
      return (Creation<E>) new PrimaryKeyCreation((DBPrimaryKeyConstraint) dbObject);
    else if (dbObject instanceof DBUniqueConstraint)
      return (Creation<E>) new UniqueConstraintCreation((DBUniqueConstraint) dbObject);
    else if (dbObject instanceof DBNotNullConstraint)
      return (Creation<E>) new NotNullConstraintCreation((DBNotNullConstraint) dbObject);
    else if (dbObject instanceof DBForeignKeyConstraint)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.