Package org.apache.empire.db.DBRelation

Examples of org.apache.empire.db.DBRelation.DBCascadeAction


      // Check
      if (getRelation(name)!=null)
            throw new ItemExistsException(name); // Relation already exists
      // Get default cascade action
      DBTable targetTable = (DBTable)references[0].getTargetColumn().getRowSet();
      DBCascadeAction deleteAction = targetTable.getDefaultCascadeDeleteAction();
        // Add a Relation
        DBRelation relation = new DBRelation(this, name, references, deleteAction);
        if (relations.contains(relation))
            throw new ItemExistsException(name); // Relation already exists
        // Add Reference column to table
View Full Code Here


      // Check
      if (getRelation(name)!=null)
            throw new ItemExistsException(name); // Relation already exists
      // Get default cascade action
      DBTable targetTable = (DBTable)references[0].getTargetColumn().getRowSet();
      DBCascadeAction deleteAction = targetTable.getDefaultCascadeDeleteAction();
        // Add a Relation
        DBRelation relation = new DBRelation(this, name, references, deleteAction);
        if (relations.contains(relation))
            throw new ItemExistsException(name); // Relation already exists
        // Add Reference column to table
View Full Code Here

      // Check
      if (getRelation(name)!=null)
            throw new ItemExistsException(name); // Relation already exists
      // Get default cascade action
      DBTable targetTable = (DBTable)references[0].getTargetColumn().getRowSet();
      DBCascadeAction deleteAction = (targetTable.isCascadeDelete() ? DBCascadeAction.CASCADE_RECORDS : DBCascadeAction.NONE);
        // Add a Relation
        DBRelation relation = new DBRelation(this, name, references, deleteAction);
        if (relations.contains(relation))
            throw new ItemExistsException(name); // Relation already exists
        // Add Reference column to table
View Full Code Here

      // Check
      if (getRelation(name)!=null)
            throw new ItemExistsException(name); // Relation already exists
      // Get default cascade action
      DBTable targetTable = (DBTable)references[0].getTargetColumn().getRowSet();
      DBCascadeAction deleteAction = (targetTable.isCascadeDelete() ? DBCascadeAction.CASCADE_RECORDS : DBCascadeAction.NONE);
        // Add a Relation
        DBRelation relation = new DBRelation(this, name, references, deleteAction);
        if (relations.contains(relation))
            throw new ItemExistsException(name); // Relation already exists
        // Add Reference column to table
View Full Code Here

      // Check
      if (getRelation(name)!=null)
            throw new ItemExistsException(name); // Relation already exists
      // Get default cascade action
      DBTable targetTable = (DBTable)references[0].getTargetColumn().getRowSet();
      DBCascadeAction deleteAction = (targetTable.isCascadeDelete() ? DBCascadeAction.CASCADE_RECORDS : DBCascadeAction.NONE);
        // Add a Relation
        DBRelation relation = new DBRelation(this, name, references, deleteAction);
        if (relations.contains(relation))
            throw new ItemExistsException(name); // Relation already exists
        // Add Reference column to table
View Full Code Here

TOP

Related Classes of org.apache.empire.db.DBRelation.DBCascadeAction

Copyright © 2018 www.massapicom. 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.