Package nexj.core.meta.persistence.sql.upgrade

Examples of nexj.core.meta.persistence.sql.upgrade.IndexOutline.addColumn()


      m_doubleColTableStep.addColumnOutline(column);

      IndexOutline index = new IndexOutline();

      index.setName(m_manager.generateIndexName("a", "ind0", null));
      index.addColumn("id", true);
      m_singleIdxColTableStep.addIndexOutline(index);

      index = new IndexOutline();
      index.setName(m_manager.generateIndexName("a", getPrimaryKeyName("pk"), null));
      index.addColumn("id", true);
View Full Code Here


      index.addColumn("id", true);
      m_singleIdxColTableStep.addIndexOutline(index);

      index = new IndexOutline();
      index.setName(m_manager.generateIndexName("a", getPrimaryKeyName("pk"), null));
      index.addColumn("id", true);
      m_singlePKColTableStep.addIndexOutline(index);
      m_singlePKColTableStep.setPrimaryKeyName(index.getName());
   }

   /**
 
View Full Code Here

   public void testApplyIndexAspectStep()
   {
      IndexOutline outline = new IndexOutline();

      outline.setName("ind0");
      outline.addColumn("id", true);
      m_doubleColTableStep.addIndexOutline(outline);

      RelationalSchema schema = upgrade(m_doubleColTableStep, null, null);
      Table table = schema.getTable(m_doubleColTableStep.getName());
View Full Code Here

      CreateIndexStep step = new CreateIndexStep();
      IndexOutline outline = new IndexOutline();

      outline.setName("idx01");
      outline.addColumn("id", true);
      step.setTableName(table.getName());
      step.setOutline(outline);
      schema = upgrade(step, schema, null);
      table = schema.getTable(m_singleColTableStep.getName());
      assertNotNull(table);
View Full Code Here

   public void testRemoveIndexAspectStep()
   {
      IndexOutline outline = new IndexOutline();

      outline.setName("idx01");
      outline.addColumn("id", true);
      outline.addColumn("value", true);
      m_doubleColTableStep.addIndexOutline(outline);

      RelationalSchema schema = upgrade(m_doubleColTableStep, null, null);
      Table table = schema.getTable(m_doubleColTableStep.getName());
View Full Code Here

   {
      IndexOutline outline = new IndexOutline();

      outline.setName("idx01");
      outline.addColumn("id", true);
      outline.addColumn("value", true);
      m_doubleColTableStep.addIndexOutline(outline);

      RelationalSchema schema = upgrade(m_doubleColTableStep, null, null);
      Table table = schema.getTable(m_doubleColTableStep.getName());
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.