| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | PLSQLStoredProcedureCall.InArgComparer
Class responsible for comparing PLSQLargument instances based on the inIndex property. |
| pack-priv static class | PLSQLStoredProcedureCall.OutArgComparer
Class responsible for comparing PLSQLargument instances based on the outIndex property. |
| pack-priv static class | PLSQLStoredProcedureCall.TypeInfo
INTERNAL: Helper structure used to store the PLSQL type conversion routines. |
| Modifier and Type | Field and Description |
|---|---|
| protected List | arguments
List of procedure IN/OUT/INOUT arguments. |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| protected int | functionId
Id used to generate unique local functions. |
| protected int | originalIndex
Keeps track of the next procedure argument index. |
| pack-priv static final String | |
| pack-priv static final String | |
| pack-priv static final String | |
| protected AbstractRecord | translationRow
Translation row stored after translation on the call clone, used only for logging. |
| private Map | typesInfo
Map of conversion function routines for converting complex PLSQL types. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addNamedArgument(String procedureParameterName, DatabaseType databaseType)
PUBLIC: Add a named IN argument to the stored procedure. |
| public void | addNamedArgument(String procedureParameterName, DatabaseType databaseType, int length)
PUBLIC: Add a named IN argument to the stored procedure. |
| public void | addNamedArgument(String procedureParameterName, DatabaseType databaseType, int precision, int scale)
PUBLIC: Add a named IN argument to the stored procedure. |
| public void | addNamedArgument(String procedureParameterName, String argumentFieldName, int type)
Overrides org. |
| public void | addNamedArgument(String procedureParameterName, String argumentFieldName, int type, String typeName)
Overrides org. |
| public void | addNamedArgument(String procedureParameterAndArgumentFieldName)
Overrides org. |
| public void | addNamedArgument(String procedureParameterName, String argumentFieldName)
Overrides org. |
| public void | addNamedArgumentValue(String procedureParameterName, Object argumentValue)
Overrides org. |
| public void | addNamedInOutputArgument(String procedureParameterName, DatabaseType databaseType)
PUBLIC: Add a named IN OUT argument to the stored procedure. |
| public void | addNamedInOutputArgument(String procedureParameterName, DatabaseType databaseType, int length)
PUBLIC: Add a named IN OUT argument to the stored procedure. |
| public void | addNamedInOutputArgument(String procedureParameterName, DatabaseType databaseType, int precision, int scale)
PUBLIC: Add a named IN OUT argument to the stored procedure. |
| public void | addNamedInOutputArgument(String procedureParameterName, String inArgumentFieldName, String outArgumentFieldName, int type)
Overrides org. |
| public void | addNamedInOutputArgument(String procedureParameterName, String inArgumentFieldName, String outArgumentFieldName, int type, String typeName)
Overrides org. |
| public void | addNamedInOutputArgument(String procedureParameterName, String inArgumentFieldName, String outArgumentFieldName, int type, String typeName, Class<?> classType)
Overrides org. |
| public void | addNamedInOutputArgument(String procedureParameterName, String inArgumentFieldName, String outArgumentFieldName, int type, String typeName, Class<?> javaType, DatabaseField nestedType)
Overrides org. |
| public void | addNamedInOutputArgument(String procedureParameterAndArgumentFieldName)
Overrides org. |
| public void | addNamedInOutputArgument(String procedureParameterName, String argumentFieldName)
Overrides org. |
| public void | addNamedInOutputArgument(String procedureParameterName, String argumentFieldName, Class<?> type)
Overrides org. |
| public void | addNamedInOutputArgument(String procedureParameterName, String inArgumentFieldName, String outArgumentFieldName, Class<?> type)
Overrides org. |
| public void | addNamedInOutputArgumentValue(String procedureParameterName, Object inArgumentValue, String outArgumentFieldName, Class<?> type)
Overrides org. |
| public void | addNamedOutputArgument(String procedureParameterName, DatabaseType databaseType)
PUBLIC: Add a named OUT argument to the stored procedure. |
| public void | addNamedOutputArgument(String procedureParameterName, DatabaseType databaseType, int length)
PUBLIC: Add a named OUT argument to the stored procedure. |
| public void | addNamedOutputArgument(String procedureParameterName, DatabaseType databaseType, int precision, int scale)
PUBLIC: Add a named OUT argument to the stored procedure. |
| public void | addNamedOutputArgument(String procedureParameterName, String argumentFieldName, int jdbcType, String typeName, Class<?> javaType)
Overrides org. |
| public void | addNamedOutputArgument(String procedureParameterName, String argumentFieldName, int jdbcType, String typeName, Class<?> javaType, DatabaseField nestedType)
Overrides org. |
| public void | addNamedOutputArgument(String procedureParameterName, String argumentFieldName, int type, String typeName)
Overrides org. |
| public void | addNamedOutputArgument(String procedureParameterName, String argumentFieldName, int type)
Overrides org. |
| public void | addNamedOutputArgument(String procedureParameterAndArgumentFieldName)
Overrides org. |
| public void | addNamedOutputArgument(String procedureParameterName, String argumentFieldName)
Overrides org. |
| public void | addNamedOutputArgument(String procedureParameterName, String argumentFieldName, Class<?> type)
Overrides org. |
| protected void | addNestedFunctionsForArgument(List<String> functions, PLSQLargument argument, DatabaseType databaseType, Set<DatabaseType> processed)
INTERNAL Add the nested function string required for the type and its subtypes. |
| public void | addUnamedArgument(String argumentFieldName, Class<?> type)
Overrides org. |
| public void | addUnamedArgument(String argumentFieldName, int type, String typeName, DatabaseField nestedType)
Overrides org. |
| public void | addUnamedArgument(String argumentFieldName, int type, String typeName)
Overrides org. |
| public void | addUnamedArgument(String argumentFieldName, int type)
Overrides org. |
| public void | addUnamedArgument(String argumentFieldName)
Overrides org. |
| public void | addUnamedArgumentValue(Object argumentValue)
Overrides org. |
| public void | addUnamedInOutputArgument(String argumentFieldName, Class<?> type)
Overrides org. |
| public void | addUnamedInOutputArgument(String inArgumentFieldName, String outArgumentFieldName, Class<?> type)
Overrides org. |
| public void | addUnamedInOutputArgument(String inArgumentFieldName, String outArgumentFieldName, int type, String typeName, Class<?> collection, DatabaseField nestedType)
Overrides org. |
| public void | addUnamedInOutputArgument(String inArgumentFieldName, String outArgumentFieldName, int type, String typeName, Class<?> collection)
Overrides org. |
| public void | addUnamedInOutputArgument(String inArgumentFieldName, String outArgumentFieldName, int type, String typeName)
Overrides org. |
| public void | addUnamedInOutputArgument(String inArgumentFieldName, String outArgumentFieldName, int type)
Overrides org. |
| public void | addUnamedInOutputArgument(String argumentFieldName)
Overrides org. |
| public void | addUnamedInOutputArgumentValue(Object inArgumentValue, String outArgumentFieldName, Class<?> type)
Overrides org. |
| public void | addUnamedOutputArgument(String argumentFieldName, Class<?> type)
Overrides org. |
| public void | addUnamedOutputArgument(String argumentFieldName, int jdbcType, String typeName, Class<?> javaType, DatabaseField nestedType)
Overrides org. |
| public void | addUnamedOutputArgument(String argumentFieldName, int jdbcType, String typeName, Class<?> javaType)
Overrides org. |
| public void | addUnamedOutputArgument(String argumentFieldName, int type, String typeName)
Overrides org. |
| public void | addUnamedOutputArgument(String argumentFieldName, int type)
Overrides org. |
| public void | addUnamedOutputArgument(String argumentFieldName)
Overrides org. |
| protected void | assignIndices()
INTERNAL compute the re-ordered indices - Do the IN args first, then the 'IN-half' of the INOUT args next, the OUT args, then the 'OUT-half' of the INOUT args |
| protected void | buildBeginBlock(StringBuilder sb, List<PLSQLargument> arguments)
INTERNAL Generate portion of the Anonymous PL/SQL block that assigns fields at the beginning of the BEGIN block (before invoking the target procedure). |
| protected void | buildDeclareBlock(StringBuilder sb, List<PLSQLargument> arguments)
INTERNAL Generate portion of the Anonymous PL/SQL block that declares the temporary variables in the DECLARE section. |
| protected void | buildNestedFunctions(StringBuilder stream, List<PLSQLargument> arguments)
INTERNAL Generate portion of the Anonymous PL/SQL block with PL/SQL conversion routines as nested functions. |
| protected void | buildOutAssignments(StringBuilder sb, List<PLSQLargument> arguments)
INTERNAL Generate portion of the Anonymous PL/SQL block after the target procedures has been invoked and OUT parameters must be handled. |
| public AbstractRecord | buildOutputRow(CallableStatement statement, DatabaseAccessor accessor, AbstractSession session)
Overrides org. |
| protected void | buildProcedureInvocation(StringBuilder sb, List<PLSQLargument> arguments)
INTERNAL Generate portion of the Anonymous PL/SQL block that invokes the target procedure. |
| private PLSQLStoredProcedureCall. | generateNestedFunction(ComplexDatabaseType type)
INTERNAL: Generate the nested function to convert the PLSQL type to its compatible SQL type. |
| private PLSQLStoredProcedureCall. | generateNestedFunction(ComplexDatabaseType type, boolean isNonAssociativeCollection)
INTERNAL: Generate the nested function to convert the PLSQL type to its compatible SQL type. |
| protected static List | Returns: list of arguments with the specified directionINTERNAL |
| public List | |
| public String | getLogString(Accessor accessor)
Overrides org. Implements org. |
| public Object | getOutputParameterValue(CallableStatement
SQL/JDBC statement to call stored procedure/function statement, int 0-based index in the argument list index, AbstractSession Active database session (in connected state). session)Overrides org. |
| public String | getPl2SQLName(ComplexDatabaseType type)
Return the conversion function name, generate the function if missing. |
| public String | getSQL2PlName(ComplexDatabaseType type)
Return the conversion function name, generate the function if missing. |
| public boolean | |
| protected void | prepareInternal(AbstractSession session)
Overrides org. |
| public Statement | prepareStatement(DatabaseAccessor accessor, AbstractRecord translationRow, AbstractSession session)
Overrides org. |
| public void | |
| public void | translate(AbstractRecord translationRow, AbstractRecord modifyRow, AbstractSession session)
Overrides org. |
| public void | useNamedCursorOutputAsResultSet(String argumentName)
Overrides org. |
| public void | useNamedCursorOutputAsResultSet(String argumentName, DatabaseType databaseType)
PUBLIC: Add a named OUT cursor argument to the stored procedure. |
| public void | useUnnamedCursorOutputAsResultSet()
Overrides org. |