Connection con = session.connection();
String procedure = "{call SP_XYZ(?,?) }";
try {
CallableStatement cstmt = con.prepareCall(procedure);
cstmt.setInt(1, Integer.parseInt(Id));
cstmt.registerOutParameter(2, OracleTypes.INTEGER);
cstmt.executeUpdate();
int importCount = cstmt.getInt(2);
return importCount;
} catch (SQLException e) {
// TODO 自動生成 catch 塊
e.printStackTrace();
//return -1;
throw new Exception(e.getMessage());
}