protected void extendTablesAndConstraints(SchemaManager schemaManager, DatabaseSession session) { buildConstraints(schemaManager, true); boolean ignore = shouldIgnoreDatabaseException(); setIgnoreDatabaseException(true); try { extendTables(session, schemaManager, false); } finally { setIgnoreDatabaseException(ignore); } }
protected void extendTablesAndConstraints(SchemaManager schemaManager, DatabaseSession session) { buildConstraints(schemaManager, true); boolean ignore = shouldIgnoreDatabaseException(); setIgnoreDatabaseException(true); try { extendTables(session, schemaManager, false); } finally { setIgnoreDatabaseException(ignore); } }
/** * Create or extend the default table schema for the project this session associated with. */ public void extendDefaultTables(boolean generateFKConstraints) throws EclipseLinkException { boolean shouldLogExceptionStackTrace = getSession().getSessionLog().shouldLogExceptionStackTrace(); this.session.getSessionLog().setShouldLogExceptionStackTrace(false); try { TableCreator tableCreator = getDefaultTableCreator(generateFKConstraints); tableCreator.extendTables(this.session, this); } catch (DatabaseException exception) { // Ignore error } finally { this.session.getSessionLog().setShouldLogExceptionStackTrace(shouldLogExceptionStackTrace); } // Reset database change events to new tables. if (this.session.getDatabaseEventListener() != null) { this.session.getDatabaseEventListener().remove(this.session); this.session.getDatabaseEventListener().register(this.session); } }
/** * Create or extend the default table schema for the project this session associated with. */ public void extendDefaultTables(boolean generateFKConstraints) throws EclipseLinkException { boolean shouldLogExceptionStackTrace = getSession().getSessionLog().shouldLogExceptionStackTrace(); this.session.getSessionLog().setShouldLogExceptionStackTrace(false); try { TableCreator tableCreator = getDefaultTableCreator(generateFKConstraints); tableCreator.extendTables(this.session, this); } catch (DatabaseException exception) { // Ignore error } finally { this.session.getSessionLog().setShouldLogExceptionStackTrace(shouldLogExceptionStackTrace); } // Reset database change events to new tables. if (this.session.getDatabaseEventListener() != null) { this.session.getDatabaseEventListener().remove(this.session); this.session.getDatabaseEventListener().register(this.session); } }