/** * This creates the tables on the database. * If the table already exists this will fail. */ public void createTables(DatabaseSession session, SchemaManager schemaManager) { createTables(session, schemaManager, true); }
/** * This creates the tables on the database. * If the table already exists this will fail. */ public void createTables(DatabaseSession session, SchemaManager schemaManager, boolean build) { createTables(session, schemaManager, build, true, true, true); }
/** * This creates the tables on the database. * If the table already exists this will fail. */ public void createTables(DatabaseSession session, SchemaManager schemaManager) { createTables(session, schemaManager, true); }
/** * This creates the tables on the database. * If the table already exists this will fail. */ public void createTables(DatabaseSession session, SchemaManager schemaManager, boolean build) { createTables(session, schemaManager, build, true, true, true); }
/** * This creates the tables on the database. * If the table already exists this will fail. */ public void createTables(org.eclipse.persistence.sessions.DatabaseSession session) { //CR2612669 createTables(session, new SchemaManager(session)); }
/** * This creates the tables on the database. * If the table already exists this will fail. */ public void createTables(org.eclipse.persistence.sessions.DatabaseSession session) { //CR2612669 createTables(session, new SchemaManager(session)); }
/** * This creates the tables on the database. * If the table already exists this will fail. */ public void createTables(org.eclipse.persistence.sessions.DatabaseSession session) { //CR2612669 createTables(session, new SchemaManager(session)); }
protected void replaceTablesAndConstraints(SchemaManager schemaManager, DatabaseSession session, boolean createSequenceTables, boolean createSequences) { buildConstraints(schemaManager, true); boolean ignore = shouldIgnoreDatabaseException(); setIgnoreDatabaseException(true); try { dropTables(session, schemaManager, false); } finally { setIgnoreDatabaseException(ignore); } createTables(session, schemaManager, false, false, createSequenceTables, createSequences); }
protected void replaceTablesAndConstraints(SchemaManager schemaManager, DatabaseSession session, boolean createSequenceTables, boolean createSequences) { buildConstraints(schemaManager, true); boolean ignore = shouldIgnoreDatabaseException(); setIgnoreDatabaseException(true); try { dropTables(session, schemaManager, false); } finally { setIgnoreDatabaseException(ignore); } createTables(session, schemaManager, false, false, createSequenceTables, createSequences); }
public void createTables(boolean generateFKConstraints, Collection<DynamicType> entityTypes) { AbstractSession createSession = getSession(); TableCreator creator = new DefaultTableGenerator(getSession().getProject(), generateFKConstraints).generateFilteredDefaultTableCreator(createSession); creator.setIgnoreDatabaseException(true); creator.createTables((DatabaseSession) getSession(), this); }
public void createTables(boolean generateFKConstraints, DynamicType... entityTypes) { AbstractSession createSession = getSession(); TableCreator creator = new DefaultTableGenerator(getSession().getProject(), generateFKConstraints).generateFilteredDefaultTableCreator(createSession); creator.setIgnoreDatabaseException(true); creator.createTables((DatabaseSession) getSession(), this); }
public void createTables(boolean generateFKConstraints, Collection<DynamicType> entityTypes) { AbstractSession createSession = getSession(); TableCreator creator = new DefaultTableGenerator(getSession().getProject(), generateFKConstraints).generateFilteredDefaultTableCreator(createSession); creator.setIgnoreDatabaseException(true); creator.createTables((DatabaseSession) getSession(), this); }
public void createTables(boolean generateFKConstraints, DynamicType... entityTypes) { AbstractSession createSession = getSession(); TableCreator creator = new DefaultTableGenerator(getSession().getProject(), generateFKConstraints).generateFilteredDefaultTableCreator(createSession); creator.setIgnoreDatabaseException(true); creator.createTables((DatabaseSession) getSession(), this); }
public void createTables(boolean generateFKConstraints, DynamicType... entityTypes) { AbstractSession createSession = getSession(); TableCreator creator = new DefaultTableGenerator(getSession().getProject(), generateFKConstraints).generateFilteredDefaultTableCreator(createSession); creator.setIgnoreDatabaseException(true); creator.createTables((DatabaseSession) getSession(), this); }
/** * Create the default table schema for the TopLink project this session associated with. */ public void createDefaultTables(boolean generateFKConstraints) { //Create each table w/o throwing exception and/or exit if some of them are already existed in the db. //If a table is already existed, skip the creation. boolean shouldLogExceptionStackTrace = getSession().getSessionLog().shouldLogExceptionStackTrace(); getSession().getSessionLog().setShouldLogExceptionStackTrace(false); try { TableCreator tableCreator = getDefaultTableCreator(generateFKConstraints); tableCreator.createTables(session, this); } catch (DatabaseException ex) { // Ignore error } finally { getSession().getSessionLog().setShouldLogExceptionStackTrace(shouldLogExceptionStackTrace); } }
/** * Create the default table schema for the project this session associated with. */ public void createDefaultTables(boolean generateFKConstraints) { //Create each table w/o throwing exception and/or exit if some of them are already existed in the db. //If a table is already existed, skip the creation. boolean shouldLogExceptionStackTrace = getSession().getSessionLog().shouldLogExceptionStackTrace(); getSession().getSessionLog().setShouldLogExceptionStackTrace(false); try { TableCreator tableCreator = getDefaultTableCreator(generateFKConstraints); tableCreator.createTables(this.session, this); } catch (DatabaseException ex) { // Ignore error } finally { getSession().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 the default table schema for the project this session associated with. */ public void createDefaultTables(boolean generateFKConstraints) { //Create each table w/o throwing exception and/or exit if some of them are already existed in the db. //If a table is already existed, skip the creation. boolean shouldLogExceptionStackTrace = getSession().getSessionLog().shouldLogExceptionStackTrace(); getSession().getSessionLog().setShouldLogExceptionStackTrace(false); try { TableCreator tableCreator = getDefaultTableCreator(generateFKConstraints); tableCreator.createTables(this.session, this); } catch (DatabaseException ex) { // Ignore error } finally { getSession().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); } }