/** * INTERNAL: * Execute the DDL to drop the object. */ public void dropFromDatabase(AbstractSession session) throws EclipseLinkException { session.priviledgedExecuteNonSelectingCall(new SQLCall(buildDeletionWriter(session, new StringWriter()).toString())); if (shouldCreateVPDCalls(session)) { session.priviledgedExecuteNonSelectingCall(new SQLCall(buildVPDDeletionWriter(session, new StringWriter()).toString())); } }
/** * INTERNAL: * Execute the DDL to drop the object. */ public void dropFromDatabase(AbstractSession session) throws EclipseLinkException { session.priviledgedExecuteNonSelectingCall(new SQLCall(buildDeletionWriter(session, new StringWriter()).toString())); if (shouldCreateVPDCalls(session)) { session.priviledgedExecuteNonSelectingCall(new SQLCall(buildVPDDeletionWriter(session, new StringWriter()).toString())); } }
/** * INTERNAL: * Execute the DDL to drop the object. Either directly from the database * of write out the statement to a file. */ public void dropObject(AbstractSession session, Writer schemaWriter, boolean createSQLFiles) throws EclipseLinkException { if (schemaWriter == null) { this.dropFromDatabase(session); } else { buildDeletionWriter(session, schemaWriter); if (shouldCreateVPDCalls(session)) { buildVPDDeletionWriter(session, schemaWriter); } } }
/** * INTERNAL: * Execute the DDL to drop the object. Either directly from the database * of write out the statement to a file. */ public void dropObject(AbstractSession session, Writer schemaWriter, boolean createSQLFiles) throws EclipseLinkException { if (schemaWriter == null) { this.dropFromDatabase(session); } else { buildDeletionWriter(session, schemaWriter); if (shouldCreateVPDCalls(session)) { buildVPDDeletionWriter(session, schemaWriter); } } }