Examples of defaultOptionDictionary()


Examples of er.extensions.jdbc.ERXSQLHelper.defaultOptionDictionary()

      try {
        EOAdaptorChannel channel = dbc.availableChannel().adaptorChannel();
        if (eomodel.adaptorName().contains("JDBC")) {
          EOSynchronizationFactory syncFactory = (EOSynchronizationFactory) channel.adaptorContext().adaptor().synchronizationFactory();
          ERXSQLHelper helper = ERXSQLHelper.newSQLHelper(channel);
          NSDictionary options = helper.defaultOptionDictionary(true, dropTables);

          // Primary key support creation throws an unwanted exception
          // if
          // EO_PK_TABLE already
          // exists (e.g. in case of MySQL), so we add pk support in a
View Full Code Here

Examples of er.extensions.jdbc.ERXSQLHelper.defaultOptionDictionary()

        }
        EOAdaptor adaptor = EOAdaptor.adaptorWithModel(eomodel);
        if (adaptor instanceof JDBCAdaptor) {
          JDBCAdaptor jdbc = (JDBCAdaptor) adaptor;
          ERXSQLHelper helper = ERXSQLHelper.newSQLHelper(jdbc);
          String sql = helper.createSchemaSQLForEntitiesInModelAndOptions(eomodel.entities(), eomodel, helper.defaultOptionDictionary(true, true));
          ERXFileUtilities.writeInputStreamToFile(new ByteArrayInputStream(sql.getBytes()), dumpFile);
          log.info("Wrote Schema SQL to " + dumpFile);
        }
      } catch (java.io.IOException e) {
        throw NSForwardException._runtimeExceptionForThrowable(e);
View Full Code Here

Examples of er.extensions.jdbc.ERXSQLHelper.defaultOptionDictionary()

      ERXEOAccessUtilities.ChannelAction action = new ERXEOAccessUtilities.ChannelAction() {
        @Override
        protected int doPerform(EOAdaptorChannel channel) {
          try {
            ERXSQLHelper helper = ERXSQLHelper.newSQLHelper(adaptorName);
            String sql = helper.createSchemaSQLForEntitiesInModelAndOptions(model.entities(), model, helper.defaultOptionDictionary(false, true)) ;
            log.debug(sql);
            try {
              ERXJDBCUtilities.executeUpdateScript(channel, sql);
            } catch (Throwable e) {
              log.info("drop failure");
View Full Code Here

Examples of er.extensions.jdbc.ERXSQLHelper.defaultOptionDictionary()

            try {
              ERXJDBCUtilities.executeUpdateScript(channel, sql);
            } catch (Throwable e) {
              log.info("drop failure");
            }
            sql = helper.createSchemaSQLForEntitiesInModelAndOptions(model.entities(), model, helper.defaultOptionDictionary(true, false)) ;
            log.debug(sql);
            ERXJDBCUtilities.executeUpdateScript(channel, sql);
          }
          catch (SQLException e) {
            throw new NSForwardException(e);
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.