Package org.conserve

Examples of org.conserve.PersistenceManager.dropTable()


  public void testChangeSubclassing() throws Exception
  {

    PersistenceManager pm = new PersistenceManager(driver, database, login, password);
    // drop all tables
    pm.dropTable(Object.class);
    // create two OriginalObject, store them.
    pm.saveObject(new OriginalObject());
    pm.saveObject(new OriginalObject());
    // create two NotSubClass, store them
    NotSubClass ns = new NotSubClass();
View Full Code Here


  @Test
  public void testChangeInheritance() throws Exception
  {
    PersistenceManager pm = new PersistenceManager(driver, database, login, password);
    // drop all tables
    pm.dropTable(Object.class);
    // create two OriginalObject, store them.
    pm.saveObject(new OriginalObject());
    pm.saveObject(new OriginalObject());
    // rename OriginalObject to ChangedInheritance
    pm.changeName(OriginalObject.class, ChangedInheritance.class);
View Full Code Here

  @Test
  public void testCopyDown() throws Exception
  {
    PersistenceManager pm = new PersistenceManager(driver, database, login, password);
    // drop all tables
    pm.dropTable(Object.class);
    // add two Bottom objects.
    OriginalBottom b1 = new OriginalBottom();
    b1.setFoo(1);
    OriginalBottom b2 = new OriginalBottom();
    b2.setFoo(2);
View Full Code Here

  @Test
  public void testCopyUp() throws Exception
  {
    PersistenceManager pm = new PersistenceManager(driver, database, login, password);
    // drop all tables
    pm.dropTable(Object.class);
    // add two Bottom objects.
    ModifiedBottom b1 = new ModifiedBottom();
    b1.setFoo(1);
    ModifiedBottom b2 = new ModifiedBottom();
    b2.setFoo(2);
View Full Code Here

  @Test
  public void testListObjects() throws Exception
  {
    PersistenceManager pm = new PersistenceManager(driver, database, login, password);
    // drop all tables
    pm.dropTable(Object.class);

    ListContainingObject a = new ListContainingObject();
    a.addStr("1");
    a.addStr("2");
    a.addStr("3");
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.