net.hasor.jdbc
接口 BatchPreparedStatementSetter

所有已知子接口:
InterruptibleBatchPreparedStatementSetter

public interface BatchPreparedStatementSetter

批量更新时动态参数设置接口。

版本:
: 2013-10-9
作者:
Thomas Risberg, Juergen Hoeller, 赵永春(zyc@hasor.net)

方法摘要
 int getBatchSize()
          Return the size of the batch.
 void setValues(PreparedStatement ps, int i)
          Set parameter values on the given PreparedStatement.
 

方法详细信息

setValues

void setValues(PreparedStatement ps,
               int i)
               throws SQLException
Set parameter values on the given PreparedStatement.

参数:
ps - the PreparedStatement to invoke setter methods on
i - index of the statement we're issuing in the batch, starting from 0
抛出:
SQLException - if a SQLException is encountered (i.e. there is no need to catch SQLException)

getBatchSize

int getBatchSize()
Return the size of the batch.

返回:
the number of statements in the batch


Copyright © 2013-2014. All Rights Reserved.