Code example for CallableStatement

Methods: execute

0
			 
			@SuppressWarnings("deprecation") 
			Connection conn = getDao().getSession().connection();
			try { 
				CallableStatement callableStatement = conn.prepareCall("{ CALL BIS_MUST_AUTO_GENERATE }");
				callableStatement.execute();
			} catch (Exception e) {
				throw new RuntimeException(e);
			} finally { 
				try { 
					conn.close();
				} catch (SQLException e) {
					throw new RuntimeException(e);
				} 
			} 
			 
			long l2 = System.currentTimeMillis();
			log.info(">>>>>>>>>>>>>>>>>>>>>>>>>>>> 商业系统:自动生成应收用时:" + (l2-l1)/1000.00 +" 秒!");
		} catch(Exception e) {
			log.error("/////////////////////////// 商业系统:自动生成应收 exception! " + e.getCause());
		}