OracleSpParameter extends OracleSpParameterBase { public void assignOutputVariable() { if (needsArgumentTypeChange()) { out.append(" ") .append(getWrapperArgumentName()) .append(" := ") .append(bool2chr(getWrapperVarName())) .append(";\n"); } } protected  OracleSpParameter(String paramName, Direction direction, String dataType,
                                String prefix); static OracleSpParameter newInstance(String paramName, Direction direction,
                            String dataType); static OracleSpParameter newInstance(String paramName, Direction direction,
                            String dataType, String prefix); String getShortDirectionName(); String getWrapperVarName(); void declareArgument(); void declareReturnValue(); void declareVariable(); void assignOutputVariable(); String getCallArgument(); void genSpCallArgumentWithinWrapper();  }
@Test public void testAssignVariable() { OracleSpParameter p = factory.makeSpParameter("p", OUTPUT, "BOOLEAN", "z"); p.assignOutputVariable(); assertEquals("z_p := z_bool2chr( z_v_p_out );", p.toString().trim()); }