public void setSql(String sql) {
		if (StringUtils.isNotEmpty(sql)) {
			this.sql = sql.trim();
			this.comment = parseComment(sql);
			this.digest = MessageDigestUtils.MD5(sql);
			
			String sqlStatement = this.sql.toLowerCase();
			if (sqlStatement != null) {
				this.select = sqlStatement.startsWith("select");
				this.procedure = sqlStatement.startsWith("call");
			}
		}
	}
public void setSql ( String sql ) { if ( StringUtils . isNotEmpty ( sql ) ) { this . sql = sql . trim ( ) ; this . comment = parseComment ( sql ) ; this . digest = MessageDigestUtils . MD5 ( sql ) ; String sqlStatement = this . sql . toLowerCase ( ) ; if ( sqlStatement != null ) { this . select = sqlStatement . startsWith ( "select" ) ; this . procedure = sqlStatement . startsWith ( "call" ) ; } } }
设置Sql语句

@param sql Sql语句