Package org.conserve.tools

Examples of org.conserve.tools.TableManager


    }
    // remove columns from subclasstable where they are no longer in the
    // class
    try
    {
      TableManager tm = adapter.getPersist().getTableManager();
      ObjectRepresentation objRes = toStack.getActualRepresentation();
      Map<String, String> valueTypeMap = tm.getDatabaseColumns(objRes.getTableName(),
          cw);
      for (Entry<String, String> e : valueTypeMap.entrySet())
      {
        String colName = e.getKey();
        if (!isSystemColumn(colName) && !objRes.hasProperty(colName))
        {
          tm.dropColumn(objRes.getTableName(), colName, cw);
        }
      }
    }
    catch (ClassNotFoundException ex)
    {
View Full Code Here


    updater = new Updater(adapter);

    arrayEntryWriter = new ArrayEntryWriter(adapter);

    // set up a manager for system tables and table creation
    tableManager = new TableManager(this.isCreateSchema(), connectionPool,
        adapter);
    try
    {
      tableManager.initializeSystemTables();
    }
View Full Code Here

TOP

Related Classes of org.conserve.tools.TableManager

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.