/** * INTERNAL * Generate portion of the Anonymous PL/SQL block that declares the temporary variables * in the DECLARE section. */ protected void buildDeclareBlock(StringBuilder sb, List<PLSQLargument> arguments) { List<PLSQLargument> inArguments = getArguments(arguments, IN); List<PLSQLargument> inOutArguments = getArguments(arguments, INOUT); inArguments.addAll(inOutArguments); List<PLSQLargument> outArguments = getArguments(arguments, OUT); Collections.sort(inArguments, new InArgComparer()); for (PLSQLargument arg : inArguments) { arg.databaseType.buildInDeclare(sb, arg); } Collections.sort(outArguments, new OutArgComparer()); for (PLSQLargument arg : outArguments) { arg.databaseType.buildOutDeclare(sb, arg); } }
/** * INTERNAL * Generate portion of the Anonymous PL/SQL block that declares the temporary variables * in the DECLARE section. */ protected void buildDeclareBlock(StringBuilder sb, List<PLSQLargument> arguments) { List<PLSQLargument> inArguments = getArguments(arguments, IN); List<PLSQLargument> inOutArguments = getArguments(arguments, INOUT); inArguments.addAll(inOutArguments); List<PLSQLargument> outArguments = getArguments(arguments, OUT); Collections.sort(inArguments, new InArgComparer()); for (PLSQLargument arg : inArguments) { arg.databaseType.buildInDeclare(sb, arg); } Collections.sort(outArguments, new OutArgComparer()); for (PLSQLargument arg : outArguments) { arg.databaseType.buildOutDeclare(sb, arg); } }
/** * INTERNAL * Generate portion of the Anonymous PL/SQL block that declares the temporary variables * in the DECLARE section * * @param sb */ protected void buildDeclareBlock(StringBuilder sb) { List<PLSQLargument> inArguments = getArguments(arguments, IN); List<PLSQLargument> inOutArguments = getArguments(arguments, INOUT); inArguments.addAll(inOutArguments); List<PLSQLargument> outArguments = getArguments(arguments, OUT); for (PLSQLargument arg : inArguments) { arg.databaseType.buildInDeclare(sb, arg); } for (PLSQLargument arg : outArguments) { arg.databaseType.buildOutDeclare(sb, arg); } }