test_class.declarator: sqlType = VARCHAR
test_class.original_string: int sqlType = VARCHAR;
test_class.type: int
test_class.var_name: sqlType
test_class.declarator: inputValue = "The input value"
test_class.original_string: String inputValue = "The input value";
test_class.type: String
test_class.var_name: inputValue
test_class.declarator: position = 1
test_class.original_string: int position = 1;
test_class.type: int
test_class.var_name: position
test_class.declarator: userDefinedTypeName = "whatever"
test_class.original_string: String userDefinedTypeName = "whatever";
test_class.type: String
test_class.var_name: userDefinedTypeName
test_class.declarator: inputTransformerFactory
test_class.original_string: TypeTransformerFactory inputTransformerFactory;
test_class.type: TypeTransformerFactory
test_class.var_name: inputTransformerFactory
test_class.declarator: statement
test_class.original_string: StatementExecution statement;
test_class.type: StatementExecution
test_class.var_name: statement
test_class.declarator: dbpa
test_class.original_string: DbParameterAccessor dbpa;
test_class.type: DbParameterAccessor
test_class.var_name: dbpa
test_class.file: dbfit-java/core/src/test/java/dbfit/util/DbParameterAccessorTest.java
test_class.identifier: DbParameterAccessorTest
test_case.body: @Test
      public void inputObjectIsTransformedBeforeJdbcBindingWhenTransformerSpecifierTest() throws Exception {
          TypeTransformer inputTransformer = mock(TypeTransformer.class);
          Integer outputValue = 5;
          when(inputTransformer.transform(inputValue)).thenReturn(outputValue);
          when(inputTransformerFactory.getTransformer(inputValue.getClass())).thenReturn(inputTransformer);
          dbpa.set(inputValue);
          verify(statement).setObject(position, outputValue, sqlType, userDefinedTypeName);
      }
test_case.class_method_signature: DbParameterAccessorTest.inputObjectIsTransformedBeforeJdbcBindingWhenTransformerSpecifierTest()
test_case.full_signature: @Test public void inputObjectIsTransformedBeforeJdbcBindingWhenTransformerSpecifierTest()
test_case.identifier: inputObjectIsTransformedBeforeJdbcBindingWhenTransformerSpecifierTest
test_case.invocations: mock thenReturn when transform thenReturn when getTransformer getClass set setObject verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void inputObjectIsTransformedBeforeJdbcBindingWhenTransformerSpecifierTest()
focal_class.declarator: index
focal_class.modifier: private
focal_class.original_string: private int index;
focal_class.type: int
focal_class.var_name: index
focal_class.declarator: direction
focal_class.modifier: private
focal_class.original_string: private Direction direction;
focal_class.type: Direction
focal_class.var_name: direction
focal_class.declarator: name
focal_class.modifier: private
focal_class.original_string: private String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: sqlType
focal_class.modifier: private
focal_class.original_string: private int sqlType;
focal_class.type: int
focal_class.var_name: sqlType
focal_class.declarator: userDefinedTypeName
focal_class.modifier: private
focal_class.original_string: private String userDefinedTypeName;
focal_class.type: String
focal_class.var_name: userDefinedTypeName
focal_class.declarator: javaType
focal_class.modifier: private
focal_class.original_string: private Class<?> javaType;
focal_class.type: Class<?>
focal_class.var_name: javaType
focal_class.declarator: position
focal_class.modifier: private
focal_class.original_string: private int position;
focal_class.type: int
focal_class.var_name: position
focal_class.declarator: cs
focal_class.modifier: protected
focal_class.original_string: protected StatementExecution cs;
focal_class.type: StatementExecution
focal_class.var_name: cs
focal_class.declarator: dbfitToJdbcTransformerFactory
focal_class.modifier: private
focal_class.original_string: private TypeTransformerFactory dbfitToJdbcTransformerFactory;
focal_class.type: TypeTransformerFactory
focal_class.var_name: dbfitToJdbcTransformerFactory
focal_class.file: dbfit-java/core/src/main/java/dbfit/util/DbParameterAccessor.java
focal_class.identifier: DbParameterAccessor
focal_class.class_method_signature: DbParameterAccessor.copy()
focal_class.full_signature: protected DbParameterAccessor copy()
focal_class.identifier: copy
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: DbParameterAccessor
focal_class.signature: DbParameterAccessor copy()
focal_class.class_method_signature: DbParameterAccessor.clone()
focal_class.full_signature: @Override public DbParameterAccessor clone()
focal_class.identifier: clone
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: DbParameterAccessor
focal_class.signature: DbParameterAccessor clone()
focal_class.class_method_signature: DbParameterAccessor.DbParameterAccessor(String name, Direction direction, int sqlType, Class javaType, int position,
                                 TypeTransformerFactory dbfitToJdbcTransformerFactory)
focal_class.full_signature: @SuppressWarnings("unchecked") public  DbParameterAccessor(String name, Direction direction, int sqlType, Class javaType, int position,
                                 TypeTransformerFactory dbfitToJdbcTransformerFactory)
focal_class.identifier: DbParameterAccessor
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (String name, Direction direction, int sqlType, Class javaType, int position,
                                 TypeTransformerFactory dbfitToJdbcTransformerFactory)
focal_class.signature:  DbParameterAccessor(String name, Direction direction, int sqlType, Class javaType, int position,
                                 TypeTransformerFactory dbfitToJdbcTransformerFactory)
focal_class.class_method_signature: DbParameterAccessor.DbParameterAccessor(String name, Direction direction, int sqlType, String userDefinedTypeName, Class javaType, int position,
                                 TypeTransformerFactory dbfitToJdbcTransformerFactory)
focal_class.full_signature: public  DbParameterAccessor(String name, Direction direction, int sqlType, String userDefinedTypeName, Class javaType, int position,
                                 TypeTransformerFactory dbfitToJdbcTransformerFactory)
focal_class.identifier: DbParameterAccessor
focal_class.modifiers: public
focal_class.parameters: (String name, Direction direction, int sqlType, String userDefinedTypeName, Class javaType, int position,
                                 TypeTransformerFactory dbfitToJdbcTransformerFactory)
focal_class.signature:  DbParameterAccessor(String name, Direction direction, int sqlType, String userDefinedTypeName, Class javaType, int position,
                                 TypeTransformerFactory dbfitToJdbcTransformerFactory)
focal_class.class_method_signature: DbParameterAccessor.getSqlType()
focal_class.full_signature: protected int getSqlType()
focal_class.identifier: getSqlType
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getSqlType()
focal_class.class_method_signature: DbParameterAccessor.getUserDefinedTypeName()
focal_class.full_signature: public String getUserDefinedTypeName()
focal_class.identifier: getUserDefinedTypeName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getUserDefinedTypeName()
focal_class.class_method_signature: DbParameterAccessor.getDirection()
focal_class.full_signature: public Direction getDirection()
focal_class.identifier: getDirection
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Direction
focal_class.signature: Direction getDirection()
focal_class.class_method_signature: DbParameterAccessor.getName()
focal_class.full_signature: public String getName()
focal_class.identifier: getName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: DbParameterAccessor.setDirection(Direction direction)
focal_class.full_signature: public void setDirection(Direction direction)
focal_class.identifier: setDirection
focal_class.modifiers: public
focal_class.parameters: (Direction direction)
focal_class.return: void
focal_class.signature: void setDirection(Direction direction)
focal_class.class_method_signature: DbParameterAccessor.bindTo(StatementExecution cs, int ind)
focal_class.full_signature: public void bindTo(StatementExecution cs, int ind)
focal_class.identifier: bindTo
focal_class.modifiers: public
focal_class.parameters: (StatementExecution cs, int ind)
focal_class.return: void
focal_class.signature: void bindTo(StatementExecution cs, int ind)
focal_class.class_method_signature: DbParameterAccessor.toJdbcCompatibleValue(Object value)
focal_class.full_signature: private Object toJdbcCompatibleValue(Object value)
focal_class.identifier: toJdbcCompatibleValue
focal_class.modifiers: private
focal_class.parameters: (Object value)
focal_class.return: Object
focal_class.signature: Object toJdbcCompatibleValue(Object value)
focal_class.class_method_signature: DbParameterAccessor.set(Object value)
focal_class.full_signature: public void set(Object value)
focal_class.identifier: set
focal_class.modifiers: public
focal_class.parameters: (Object value)
focal_class.return: void
focal_class.signature: void set(Object value)
focal_class.class_method_signature: DbParameterAccessor.get()
focal_class.full_signature: public Object get()
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Object
focal_class.signature: Object get()
focal_class.class_method_signature: DbParameterAccessor.getPosition()
focal_class.full_signature: public int getPosition()
focal_class.identifier: getPosition
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPosition()
focal_class.class_method_signature: DbParameterAccessor.getJavaType()
focal_class.full_signature: public Class<?> getJavaType()
focal_class.identifier: getJavaType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Class<?>
focal_class.signature: Class<?> getJavaType()
focal_class.class_method_signature: DbParameterAccessor.getDbfitToJdbcTransformerFactory()
focal_class.full_signature: protected TypeTransformerFactory getDbfitToJdbcTransformerFactory()
focal_class.identifier: getDbfitToJdbcTransformerFactory
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: TypeTransformerFactory
focal_class.signature: TypeTransformerFactory getDbfitToJdbcTransformerFactory()
focal_class.class_method_signature: DbParameterAccessor.isReturnValueAccessor()
focal_class.full_signature: public boolean isReturnValueAccessor()
focal_class.identifier: isReturnValueAccessor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isReturnValueAccessor()
focal_class.class_method_signature: DbParameterAccessor.hasDirection(Direction expectedDirection)
focal_class.full_signature: public boolean hasDirection(Direction expectedDirection)
focal_class.identifier: hasDirection
focal_class.modifiers: public
focal_class.parameters: (Direction expectedDirection)
focal_class.return: boolean
focal_class.signature: boolean hasDirection(Direction expectedDirection)
focal_class.class_method_signature: DbParameterAccessor.doesNotHaveDirection(Direction expectedDirection)
focal_class.full_signature: public boolean doesNotHaveDirection(Direction expectedDirection)
focal_class.identifier: doesNotHaveDirection
focal_class.modifiers: public
focal_class.parameters: (Direction expectedDirection)
focal_class.return: boolean
focal_class.signature: boolean doesNotHaveDirection(Direction expectedDirection)
focal_method.body: public void set(Object value) throws Exception {
          if (direction == OUTPUT || direction == RETURN_VALUE) {
              throw new UnsupportedOperationException("Trying to set value of output parameter " + name);
          }
          cs.setObject(index, toJdbcCompatibleValue(value), sqlType, userDefinedTypeName);
      }
focal_method.class_method_signature: DbParameterAccessor.set(Object value)
focal_method.full_signature: public void set(Object value)
focal_method.identifier: set
focal_method.invocations: setObject toJdbcCompatibleValue
focal_method.modifiers: public
focal_method.parameters: (Object value)
focal_method.return: void
focal_method.signature: void set(Object value)