/** * INTERNAL: * Execute the DDL to create this object. */ public void createOnDatabase(AbstractSession session) throws EclipseLinkException { session.priviledgedExecuteNonSelectingCall(new SQLCall(buildCreationWriter(session, new StringWriter()).toString())); if (shouldCreateVPDCalls(session)) { session.priviledgedExecuteNonSelectingCall(new SQLCall(buildVPDCreationPolicyWriter(session, new StringWriter()).toString())); session.priviledgedExecuteNonSelectingCall(new SQLCall(buildVPDCreationFunctionWriter(session, new StringWriter()).toString())); } }
/** * INTERNAL: * Execute the DDL to create this object. */ public void createOnDatabase(AbstractSession session) throws EclipseLinkException { session.priviledgedExecuteNonSelectingCall(new SQLCall(buildCreationWriter(session, new StringWriter()).toString())); if (shouldCreateVPDCalls(session)) { session.priviledgedExecuteNonSelectingCall(new SQLCall(buildVPDCreationPolicyWriter(session, new StringWriter()).toString())); session.priviledgedExecuteNonSelectingCall(new SQLCall(buildVPDCreationFunctionWriter(session, new StringWriter()).toString())); } }
/** * INTERNAL: * Either drop from the database directly or write the statement to a file. * Database objects are root level entities such as tables, views, procs, sequences... */ public void createObject(AbstractSession session, Writer schemaWriter) throws EclipseLinkException { if (schemaWriter == null) { this.createOnDatabase(session); } else { this.buildCreationWriter(session, schemaWriter); if (shouldCreateVPDCalls(session)) { buildVPDCreationPolicyWriter(session, schemaWriter); buildVPDCreationFunctionWriter(session, schemaWriter); } } }
/** * INTERNAL: * Either drop from the database directly or write the statement to a file. * Database objects are root level entities such as tables, views, procs, sequences... */ public void createObject(AbstractSession session, Writer schemaWriter) throws EclipseLinkException { if (schemaWriter == null) { this.createOnDatabase(session); } else { this.buildCreationWriter(session, schemaWriter); if (shouldCreateVPDCalls(session)) { buildVPDCreationPolicyWriter(session, schemaWriter); buildVPDCreationFunctionWriter(session, schemaWriter); } } }