jodd-db/src/main/java/jodd/db/DbQuery.java
public Q setObject(final String param, final Object object, final int targetSqlType) {
		initPrepared();
		final int[] positions = query.getNamedParameterIndices(param);
		try {
			for (final int position : positions) {
				preparedStatement.setObject(position, object, targetSqlType);
			}
		} catch (SQLException sex) {
			throwSetParamError(param, sex);
		}
		return _this();
	}
public Q setObject(final String param, final Object object, final int targetSqlType) {
		initPrepared();
		final int[] positions = query.getNamedParameterIndices(param);
		try {
			for (final int position : positions) {
				preparedStatement.setObject(position, object, targetSqlType);
			}
		} catch (SQLException sex) {
			throwSetParamError(param, sex);
		}
		return _this();
	}
public Q setObject ( final String param , final Object object , final int targetSqlType ) { initPrepared ( ) ; final int [ ] positions = query . getNamedParameterIndices ( param ) ; try { for ( final int position : positions ) { preparedStatement . setObject ( position , object , targetSqlType ) ; } } catch ( SQLException sex ) { throwSetParamError ( param , sex ) ; } return _this ( ) ; }
Sets the value of the designated parameter with the given object.
This method is like the method <code>setObject</code>
above, except that it assumes a scale of zero.
Sets the value of the designated parameter with the given object . This method is like the method <code > setObject< / code > above except that it assumes a scale of zero .