ParameterGetSetRegisterBuilder { public String setParameter(int sequenceNumber) { pa.setSequenceNumber(sequenceNumber); if (TypeMapper.ORACLE_OBJECT.equals(pa.getDataType())) { return MustacheRunner.build("sniplets/OBJECT-GET.mustache", pa); } if (pa.isPrimitiveList()) { return MustacheRunner.build("sniplets/LIST-PRIMITIVE-GET.mustache", pa); } if (TypeMapper.ORACLE_TABLE.equals(pa.getDataType())) { return MustacheRunner.build("sniplets/LIST-GET.mustache", pa); } if (TypeMapper.JDBC_BOOLEAN.equals(pa.getJDBCType())) { return MustacheRunner.build("sniplets/BOOLEAN-GET.mustache", pa); } if (TypeMapper.JAVA_INTEGER.equals(pa.getJavaDataType())) { return MustacheRunner.build("sniplets/INTEGER-GET.mustache", pa); } if (TypeMapper.JAVA_BYTEARRAY.equals(pa.getJavaDataType())) { return MustacheRunner.build("sniplets/RAW-GET.mustache", pa); } return MustacheRunner.build("sniplets/DEFAULT-GET.mustache", pa); } ParameterGetSetRegisterBuilder(ProcedureArgument pa); String setParameter(int sequenceNumber);  }
@Test public void testSetParameter() throws Exception { ParameterGetSetRegisterBuilder parameterGetSetRegisterBuilder = new ParameterGetSetRegisterBuilder(new ProcedureArgument("P_HELLO", "VARCHAR2", null, true, false, "VARCHAR2")); String s = parameterGetSetRegisterBuilder.setParameter(1); Assert.assertTrue(s.contains("Types.VARCHAR")); }