* @param method
* @return
* @throws Exception
*/
public static CacheableOperator getOperator(Method method) throws Exception {
SQL sqlAnno = method.getAnnotation(SQL.class);
if (sqlAnno == null) {
throw new IncorrectAnnotationException("each method expected one cc.concurrent.mango.SQL annotation " +
"but not found");
}
String sql = sqlAnno.value();
if (Strings.isNullOrEmpty(sql)) {
throw new IncorrectSqlException("sql is null or empty");
}
ASTRootNode rootNode = new Parser(sql).parse().preprocessing();
SQLType sqlType = getSQLType(sql);