/** * 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)); }
/** * Create constraints. */ public void createConstraints(DatabaseSession session) { //CR2612669 createConstraints(session, new SchemaManager(session)); }
/** * Drop the tables from the database. */ public void dropTables(DatabaseSession session) { //CR2612669 dropTables(session, new SchemaManager(session)); }
/** * Create constraints. */ public void createConstraints(DatabaseSession session) { //CR2612669 createConstraints(session, new SchemaManager(session)); }
/** * Drop the table constraints from the database. */ public void dropConstraints(DatabaseSession session) { //CR2612669 dropConstraints(session, new SchemaManager(session)); }
/** * Recreate the tables on the database. * This will drop the tables if they exist and recreate them. */ public void replaceTables(DatabaseSession session) { replaceTables(session, new SchemaManager(session)); }
/** * Create constraints. */ public void createConstraints(org.eclipse.persistence.sessions.DatabaseSession session) { //CR2612669 createConstraints(session, new SchemaManager(session)); }
/** * Drop the tables from the database. */ public void dropTables(org.eclipse.persistence.sessions.DatabaseSession session) { //CR2612669 dropTables(session, new SchemaManager(session)); }
/** * Recreate the tables on the database. * This will drop the tables if they exist and recreate them. */ public void replaceTables(DatabaseSession session) { replaceTables(session, new SchemaManager(session)); }
/** * Drop the table constraints from the database. */ public void dropConstraints(org.eclipse.persistence.sessions.DatabaseSession session) { //CR2612669 dropConstraints(session, new SchemaManager(session)); }
/** * Recreate the tables on the database. * This will drop the tables if they exist and recreate them. */ public void replaceTables(org.eclipse.persistence.sessions.DatabaseSession session) { replaceTables(session, new SchemaManager(session)); }
/** * Drop the tables from the database. */ public void dropTables(DatabaseSession session) { //CR2612669 dropTables(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)); }
/** * Drop the table constraints from the database. */ public void dropConstraints(DatabaseSession session) { //CR2612669 dropConstraints(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)); }
/** * INTERNAL: * Generate and write DDL from the persistence unit metadata to the database. */ protected void writeMetadataDDLToDatabase(TableCreationType tableCreationType, Map props, DatabaseSessionImpl session, ClassLoader classLoader) { SchemaManager mgr = new SchemaManager(session); // Set the create database schemas flag on the schema manager. String createSchemas = getConfigPropertyAsString(SCHEMA_GENERATION_CREATE_DATABASE_SCHEMAS, props); mgr.setCreateDatabaseSchemas(createSchemas != null && createSchemas.equalsIgnoreCase("true")); writeDDLToDatabase(mgr, tableCreationType); }
/** * INTERNAL: * Generate and write DDL from the persistence unit metadata to scripts. */ protected void writeMetadataDDLToScript(TableCreationType tableCreationType, Map props, DatabaseSessionImpl session, ClassLoader classLoader) { SchemaManager mgr = new SchemaManager(session); // Set the create database schemas flag on the schema manager. String createSchemas = getConfigPropertyAsString(SCHEMA_GENERATION_CREATE_DATABASE_SCHEMAS, props); mgr.setCreateDatabaseSchemas(createSchemas != null && createSchemas.equalsIgnoreCase("true")); writeDDLToFiles(mgr, getConfigPropertyAsString(PersistenceUnitProperties.APP_LOCATION, props), getConfigProperty(SCHEMA_GENERATION_SCRIPTS_CREATE_TARGET, props), getConfigProperty(SCHEMA_GENERATION_SCRIPTS_DROP_TARGET, props), tableCreationType, props); }
SchemaManager mgr = new SchemaManager(session);