Class PLSQLStoredFunctionCall

java.lang.Object
org.eclipse.persistence.internal.databaseaccess.DatasourceCall
org.eclipse.persistence.internal.databaseaccess.DatabaseCall
All Implemented Interfaces:
Serializable, Cloneable, Call

public class PLSQLStoredFunctionCall extends PLSQLStoredProcedureCall
Purpose: Used to define a platform independent function call. Note that not all platforms support stored functions. This supports output parameters. Functions can also be called through custom SQL.
See Also:
  • Constructor Details

    • PLSQLStoredFunctionCall

      public PLSQLStoredFunctionCall()
    • PLSQLStoredFunctionCall

      public PLSQLStoredFunctionCall(org.eclipse.persistence.internal.helper.DatabaseType databaseType)
    • PLSQLStoredFunctionCall

      public PLSQLStoredFunctionCall(org.eclipse.persistence.internal.helper.DatabaseType databaseType, int length)
    • PLSQLStoredFunctionCall

      public PLSQLStoredFunctionCall(org.eclipse.persistence.internal.helper.DatabaseType databaseType, int length, int scale)
  • Method Details

    • getCallHeader

      public String getCallHeader(org.eclipse.persistence.internal.databaseaccess.DatabasePlatform platform)
      INTERNAL: Return call header for the call string.
      Overrides:
      getCallHeader in class StoredProcedureCall
    • getFirstParameterIndexForCallString

      public int getFirstParameterIndexForCallString()
      INTERNAL: Return the first index of parameter to be placed inside brackets in the call string.
      Overrides:
      getFirstParameterIndexForCallString in class StoredProcedureCall
    • isStoredFunctionCall

      public boolean isStoredFunctionCall()
      INTERNAL:
      Overrides:
      isStoredFunctionCall in class org.eclipse.persistence.internal.databaseaccess.DatasourceCall
    • isStoredPLSQLFunctionCall

      public boolean isStoredPLSQLFunctionCall()
      Overrides:
      isStoredPLSQLFunctionCall in class org.eclipse.persistence.internal.databaseaccess.DatasourceCall
    • prepareInternal

      public void prepareInternal(org.eclipse.persistence.internal.sessions.AbstractSession session)
      INTERNAL:
      Overrides:
      prepareInternal in class PLSQLStoredProcedureCall
    • setResult

      public void setResult(org.eclipse.persistence.internal.helper.DatabaseType databaseType)
      PUBLIC: Define the return type of the function.
    • setResult

      public void setResult(org.eclipse.persistence.internal.helper.DatabaseType databaseType, int length)
      PUBLIC: Define the return type of the function.
    • setResult

      public void setResult(org.eclipse.persistence.internal.helper.DatabaseType databaseType, int length, int scale)
      PUBLIC: Define the return type of the function.
    • buildProcedureInvocation

      protected void buildProcedureInvocation(StringBuilder sb, List<PLSQLargument> arguments)
      INTERNAL Generate portion of the Anonymous PL/SQL block that invokes the target function.
      Overrides:
      buildProcedureInvocation in class PLSQLStoredProcedureCall