All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.javaclub.cdl.client.parameter.SetBinaryStreamHandler Maven / Gradle / Ivy

There is a newer version: 2.3.9
Show newest version
/*(C) 2007-2012 Alibaba Group Holding Limited.	
 *This program is free software; you can redistribute it and/or modify	
*it under the terms of the GNU General Public License version 2 as	
* published by the Free Software Foundation.	
* Authors:	
*   junyu  , shenxun ,	
*   linxuan  ,qihao  	
*/	
package com.github.javaclub.cdl.client.parameter;

import java.io.InputStream;
import java.sql.PreparedStatement;
import java.sql.SQLException;

public class SetBinaryStreamHandler implements ParameterHandler {
	public void setParameter(PreparedStatement stmt, Object[] args)
			throws SQLException {
		stmt.setBinaryStream((Integer) args[0], (InputStream) args[1], (Integer) args[2]);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy