Code example for Connection

Methods: prepareCall

0
		try { 
			sql=sqlParser.parseQuerySQL(obj, sqlMapId);
		} catch (MappingException e) {			
			e.printStackTrace();
		} 
		cstmt=connection.prepareCall(sql);
		cstmt.execute();	
		cstmt.close();
	} 
	/** 
	 * 根据Map参数和sqlMapId,调用存储过程或函数 
	 * @param obj 
	 * @param sqlMapId 
	 * @throws SQLException 
	 */ 
	public synchronized void namedExecute(Map params,String sqlMapId) throws SQLException{
		SqlParser sqlParser=new SqlParserImpl();
		String sql="";
		try { 
			sql=sqlParser.parseQuerySQL(params, sqlMapId);
Experience pair programming with AI  Get Codota for Java