001
014
015 package com.liferay.portal.kernel.dao.orm;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.transaction.TransactionAttribute;
019 import com.liferay.portal.service.BaseLocalService;
020
021
024 public interface ActionableDynamicQuery {
025
026 public AddCriteriaMethod getAddCriteriaMethod();
027
028 public AddOrderCriteriaMethod getAddOrderCriteriaMethod();
029
030 public PerformActionMethod<?> getPerformActionMethod();
031
032 public PerformCountMethod getPerformCountMethod();
033
034 public boolean isParallel();
035
036 public void performActions() throws PortalException;
037
038 public long performCount() throws PortalException;
039
040 public void setAddCriteriaMethod(AddCriteriaMethod addCriteriaMethod);
041
042 public void setAddOrderCriteriaMethod(
043 AddOrderCriteriaMethod addOrderCriteriaMethod);
044
045 public void setBaseLocalService(BaseLocalService baseLocalService);
046
047
050 @Deprecated
051 public void setClass(Class<?> clazz);
052
053 public void setClassLoader(ClassLoader classLoader);
054
055 public void setCompanyId(long companyId);
056
057 public void setGroupId(long groupId);
058
059 public void setGroupIdPropertyName(String groupIdPropertyName);
060
061 public void setInterval(int interval);
062
063 public void setModelClass(Class<?> modelClass);
064
065 public void setParallel(boolean parallel);
066
067 public void setPerformActionMethod(
068 PerformActionMethod<?> performActionMethod);
069
070 public void setPerformCountMethod(PerformCountMethod performCountMethod);
071
072 public void setPrimaryKeyPropertyName(String primaryKeyPropertyName);
073
074 public void setTransactionAttribute(
075 TransactionAttribute transactionAttribute);
076
077 public interface AddCriteriaMethod {
078
079 public void addCriteria(DynamicQuery dynamicQuery);
080
081 }
082
083 public interface AddOrderCriteriaMethod {
084
085 public void addOrderCriteria(DynamicQuery dynamicQuery);
086
087 }
088
089 public interface PerformActionMethod<T> {
090
091 public void performAction(T t) throws PortalException;
092
093 }
094
095 public interface PerformCountMethod {
096
097 public long performCount() throws PortalException;
098
099 }
100
101 }