return cacheDescriptor.getPropertyPath();
}
private void buildCacheDescriptor(Method method) {
Class<?> daoClass = method.getDeclaringClass();
Cache cacheAnno = daoClass.getAnnotation(Cache.class);
cacheDescriptor = new CacheDescriptor();
if (cacheAnno != null) { // dao类使用cache
CacheIgnored cacheIgnoredAnno = method.getAnnotation(CacheIgnored.class);
if (cacheIgnoredAnno == null) { // method不禁用cache
cacheDescriptor.setUseCache(true);
cacheDescriptor.setPrefix(cacheAnno.prefix());
cacheDescriptor.setExpire(Reflection.instantiate(cacheAnno.expire()));
cacheDescriptor.setNum(cacheAnno.num());
Annotation[][] pass = method.getParameterAnnotations();
int num = 0;
for (int i = 0; i < pass.length; i++) {
Annotation[] pas = pass[i];
for (Annotation pa : pas) {