diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath index ec042ff0..810ab9d4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath @@ -2,7 +2,6 @@ - @@ -14,10 +13,7 @@ - - - - - + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.jdt.core.prefs index f42de363..d17b6724 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.jdt.core.prefs +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.jdt.core.prefs @@ -1,7 +1,12 @@ eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.source=1.7 diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index 97057930..f640386f 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml index 4e6dee1b..daf0ded8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml @@ -173,10 +173,9 @@ - + - @@ -193,6 +192,16 @@ + + + + + + + + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java index d8ff9e1b..98fcd60a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalService.java @@ -349,6 +349,13 @@ public interface ParereGeologoLocalService extends BaseLocalService, public int countByUserDaApprovare(com.liferay.portal.model.User user) throws com.liferay.portal.kernel.exception.SystemException; + public java.util.List findByUserApprovati( + com.liferay.portal.model.User user, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + public int countByUserApprovati(com.liferay.portal.model.User user) + throws com.liferay.portal.kernel.exception.SystemException; + public java.util.List findByUserDaAssegnare( com.liferay.portal.model.User user, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java index 2bfcccd7..688fc0fd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceClp.java @@ -177,53 +177,63 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { _methodParameterTypes31 = new String[] { "com.liferay.portal.model.User" }; - _methodName32 = "findByUserDaAssegnare"; + _methodName32 = "findByUserApprovati"; _methodParameterTypes32 = new String[] { "com.liferay.portal.model.User", "int", "int" }; - _methodName33 = "countByUserDaAssegnare"; + _methodName33 = "countByUserApprovati"; _methodParameterTypes33 = new String[] { "com.liferay.portal.model.User" }; - _methodName34 = "findByUserAssegnati"; + _methodName34 = "findByUserDaAssegnare"; _methodParameterTypes34 = new String[] { "com.liferay.portal.model.User", "int", "int" }; - _methodName35 = "countByUserAssegnati"; + _methodName35 = "countByUserDaAssegnare"; _methodParameterTypes35 = new String[] { "com.liferay.portal.model.User" }; - _methodName36 = "countByGeologoIdInCorso"; + _methodName36 = "findByUserAssegnati"; - _methodParameterTypes36 = new String[] { "long" }; + _methodParameterTypes36 = new String[] { + "com.liferay.portal.model.User", "int", "int" + }; + + _methodName37 = "countByUserAssegnati"; + + _methodParameterTypes37 = new String[] { "com.liferay.portal.model.User" }; + + _methodName38 = "countByGeologoIdInCorso"; + + _methodParameterTypes38 = new String[] { "long" }; - _methodName37 = "findByGeologoIdInCorso"; + _methodName39 = "findByGeologoIdInCorso"; - _methodParameterTypes37 = new String[] { "long", "int", "int" }; + _methodParameterTypes39 = new String[] { "long", "int", "int" }; - _methodName38 = "findWithParereByGeologoId"; + _methodName40 = "findWithParereByGeologoId"; - _methodParameterTypes38 = new String[] { "long", "int", "int" }; + _methodParameterTypes40 = new String[] { "long", "int", "int" }; - _methodName39 = "countFindWithParereByGeologoId"; + _methodName41 = "countFindWithParereByGeologoId"; - _methodParameterTypes39 = new String[] { "long" }; + _methodParameterTypes41 = new String[] { "long" }; - _methodName40 = "findWithParereByGeologoIdAndApprovazione"; + _methodName42 = "findWithParereByGeologoIdAndApprovazione"; - _methodParameterTypes40 = new String[] { "long", "boolean", "int", "int" }; + _methodParameterTypes42 = new String[] { "long", "boolean", "int", "int" }; - _methodName41 = "countFindWithParereByGeologoIdAndApprovazione"; + _methodName43 = "countFindWithParereByGeologoIdAndApprovazione"; - _methodParameterTypes41 = new String[] { "long", "boolean" }; + _methodParameterTypes43 = new String[] { "long", "boolean" }; - _methodName42 = "getCarichiLavoro"; + _methodName44 = "getCarichiLavoro"; - _methodParameterTypes42 = new String[] { "long", "int" }; + _methodParameterTypes44 = new String[] { "long", "int" }; } @Override @@ -1208,7 +1218,7 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { } @Override - public java.util.List findByUserDaAssegnare( + public java.util.List findByUserApprovati( com.liferay.portal.model.User user, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -1238,7 +1248,7 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { } @Override - public int countByUserDaAssegnare(com.liferay.portal.model.User user) + public int countByUserApprovati(com.liferay.portal.model.User user) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -1267,7 +1277,7 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { } @Override - public java.util.List findByUserAssegnati( + public java.util.List findByUserDaAssegnare( com.liferay.portal.model.User user, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -1297,7 +1307,7 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { } @Override - public int countByUserAssegnati(com.liferay.portal.model.User user) + public int countByUserDaAssegnare(com.liferay.portal.model.User user) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -1326,13 +1336,72 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { } @Override - public int countByGeologoIdInCorso(long geologoUserId) + public java.util.List findByUserAssegnati( + com.liferay.portal.model.User user, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, new Object[] { geologoUserId }); + _methodParameterTypes36, + new Object[] { ClpSerializer.translateInput(user), start, end }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.List)ClpSerializer.translateOutput(returnObj); + } + + @Override + public int countByUserAssegnati(com.liferay.portal.model.User user) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, + new Object[] { ClpSerializer.translateInput(user) }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return ((Integer)returnObj).intValue(); + } + + @Override + public int countByGeologoIdInCorso(long geologoUserId) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { geologoUserId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1360,8 +1429,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { geologoUserId, start, end }); } catch (Throwable t) { @@ -1390,8 +1459,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { geologoUserId, start, end }); } catch (Throwable t) { @@ -1419,8 +1488,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, new Object[] { geologoUserId }); + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { geologoUserId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1448,8 +1517,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { geologoUserId, approvazione, start, end }); } catch (Throwable t) { @@ -1478,8 +1547,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { geologoUserId, approvazione }); } catch (Throwable t) { @@ -1509,8 +1578,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { controlloPraticaId, giorni }); } catch (Throwable t) { @@ -1621,4 +1690,8 @@ public class ParereGeologoLocalServiceClp implements ParereGeologoLocalService { private String[] _methodParameterTypes41; private String _methodName42; private String[] _methodParameterTypes42; + private String _methodName43; + private String[] _methodParameterTypes43; + private String _methodName44; + private String[] _methodParameterTypes44; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java index 45f1791e..32267d10 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceUtil.java @@ -396,6 +396,17 @@ public class ParereGeologoLocalServiceUtil { return getService().countByUserDaApprovare(user); } + public static java.util.List findByUserApprovati( + com.liferay.portal.model.User user, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().findByUserApprovati(user, start, end); + } + + public static int countByUserApprovati(com.liferay.portal.model.User user) + throws com.liferay.portal.kernel.exception.SystemException { + return getService().countByUserApprovati(user); + } + public static java.util.List findByUserDaAssegnare( com.liferay.portal.model.User user, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java index 96d7cccf..72329b79 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ParereGeologoLocalServiceWrapper.java @@ -426,6 +426,19 @@ public class ParereGeologoLocalServiceWrapper return _parereGeologoLocalService.countByUserDaApprovare(user); } + @Override + public java.util.List findByUserApprovati( + com.liferay.portal.model.User user, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return _parereGeologoLocalService.findByUserApprovati(user, start, end); + } + + @Override + public int countByUserApprovati(com.liferay.portal.model.User user) + throws com.liferay.portal.kernel.exception.SystemException { + return _parereGeologoLocalService.countByUserApprovati(user); + } + @Override public java.util.List findByUserDaAssegnare( com.liferay.portal.model.User user, int start, int end) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistence.java index a7c1971d..37ebbb3a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistence.java @@ -973,11 +973,10 @@ public interface ParereGeologoPersistence extends BasePersistence throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -985,14 +984,14 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the matching parere geologos * @throws SystemException if a system exception occurred */ - public java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. @@ -1000,7 +999,6 @@ public interface ParereGeologoPersistence extends BasePersistence * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1010,15 +1008,14 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the range of matching parere geologos * @throws SystemException if a system exception occurred */ - public java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, - int start, int end) + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. @@ -1026,7 +1023,6 @@ public interface ParereGeologoPersistence extends BasePersistence * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1037,20 +1033,18 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the ordered range of matching parere geologos * @throws SystemException if a system exception occurred */ - public java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, - int start, int end, + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1060,20 +1054,19 @@ public interface ParereGeologoPersistence extends BasePersistence * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found * @throws SystemException if a system exception occurred */ - public it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + public it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchParereGeologoException; /** - * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1082,19 +1075,18 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the first matching parere geologo, or null if a matching parere geologo could not be found * @throws SystemException if a system exception occurred */ - public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1104,20 +1096,19 @@ public interface ParereGeologoPersistence extends BasePersistence * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found * @throws SystemException if a system exception occurred */ - public it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + public it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchParereGeologoException; /** - * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1126,20 +1117,19 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the last matching parere geologo, or null if a matching parere geologo could not be found * @throws SystemException if a system exception occurred */ - public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param parereGeologoId the primary key of the current parere geologo * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1149,17 +1139,16 @@ public interface ParereGeologoPersistence extends BasePersistence * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a parere geologo with the primary key could not be found * @throws SystemException if a system exception occurred */ - public it.tref.liferay.portos.bo.model.ParereGeologo[] findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext( + public it.tref.liferay.portos.bo.model.ParereGeologo[] findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext( long parereGeologoId, long groupId, int unitaOperativa, - long geologoUserId, long assegnatoreUserId, - java.util.Date dtAssegnazione, java.util.Date dtApprovazione, - java.util.Date dtAnnullamento, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchParereGeologoException; /** - * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. @@ -1167,7 +1156,6 @@ public interface ParereGeologoPersistence extends BasePersistence * * @param groupIds the group IDs * @param unitaOperativas the unita operativas - * @param geologoUserId the geologo user ID * @param assegnatoreUserIds the assegnatore user IDs * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1175,14 +1163,14 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the matching parere geologos * @throws SystemException if a system exception occurred */ - public java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long[] groupIds, int[] unitaOperativas, long geologoUserId, - long[] assegnatoreUserIds, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. @@ -1190,7 +1178,6 @@ public interface ParereGeologoPersistence extends BasePersistence * * @param groupIds the group IDs * @param unitaOperativas the unita operativas - * @param geologoUserId the geologo user ID * @param assegnatoreUserIds the assegnatore user IDs * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1200,15 +1187,14 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the range of matching parere geologos * @throws SystemException if a system exception occurred */ - public java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long[] groupIds, int[] unitaOperativas, long geologoUserId, - long[] assegnatoreUserIds, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, - int start, int end) + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. @@ -1216,7 +1202,6 @@ public interface ParereGeologoPersistence extends BasePersistence * * @param groupIds the group IDs * @param unitaOperativas the unita operativas - * @param geologoUserId the geologo user ID * @param assegnatoreUserIds the assegnatore user IDs * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1227,38 +1212,35 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the ordered range of matching parere geologos * @throws SystemException if a system exception occurred */ - public java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long[] groupIds, int[] unitaOperativas, long geologoUserId, - long[] assegnatoreUserIds, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, - int start, int end, + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** - * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ? from the database. + * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ? from the database. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione * @param dtAnnullamento the dt annullamento * @throws SystemException if a system exception occurred */ - public void removeByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + public void removeByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1266,18 +1248,17 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the number of matching parere geologos * @throws SystemException if a system exception occurred */ - public int countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + public int countByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupIds the group IDs * @param unitaOperativas the unita operativas - * @param geologoUserId the geologo user ID * @param assegnatoreUserIds the assegnatore user IDs * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1285,10 +1266,10 @@ public interface ParereGeologoPersistence extends BasePersistence * @return the number of matching parere geologos * @throws SystemException if a system exception occurred */ - public int countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long[] groupIds, int[] unitaOperativas, long geologoUserId, - long[] assegnatoreUserIds, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + public int countByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento) throws com.liferay.portal.kernel.exception.SystemException; /** @@ -1610,6 +1591,325 @@ public interface ParereGeologoPersistence extends BasePersistence java.util.Date dtAnnullamento, java.util.Date dtApprovazione) throws com.liferay.portal.kernel.exception.SystemException; + /** + * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @return the matching parere geologos + * @throws SystemException if a system exception occurred + */ + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param start the lower bound of the range of parere geologos + * @param end the upper bound of the range of parere geologos (not inclusive) + * @return the range of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param start the lower bound of the range of parere geologos + * @param end the upper bound of the range of parere geologos (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching parere geologo + * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_First( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchParereGeologoException; + + /** + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching parere geologo, or null if a matching parere geologo could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_First( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching parere geologo + * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_Last( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchParereGeologoException; + + /** + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching parere geologo, or null if a matching parere geologo could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_Last( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param parereGeologoId the primary key of the current parere geologo + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next parere geologo + * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a parere geologo with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.ParereGeologo[] findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_PrevAndNext( + long parereGeologoId, long groupId, int unitaOperativa, + long assegnatoreUserId, java.util.Date dtCompilazione, + java.util.Date dtAssegnazione, java.util.Date dtAnnullamento, + java.util.Date dtApprovazione, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchParereGeologoException; + + /** + * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @return the matching parere geologos + * @throws SystemException if a system exception occurred + */ + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param start the lower bound of the range of parere geologos + * @param end the upper bound of the range of parere geologos (not inclusive) + * @return the range of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param start the lower bound of the range of parere geologos + * @param end the upper bound of the range of parere geologos (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ? from the database. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @throws SystemException if a system exception occurred + */ + public void removeByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @return the number of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @return the number of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) + throws com.liferay.portal.kernel.exception.SystemException; + /** * Caches the parere geologo in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoUtil.java index 0b59cb36..23ee45f2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/ParereGeologoUtil.java @@ -1231,11 +1231,10 @@ public class ParereGeologoUtil { } /** - * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1243,19 +1242,19 @@ public class ParereGeologoUtil { * @return the matching parere geologos * @throws SystemException if a system exception occurred */ - public static java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, - unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, - dtApprovazione, dtAnnullamento); + .findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento); } /** - * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. @@ -1263,7 +1262,6 @@ public class ParereGeologoUtil { * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1273,20 +1271,19 @@ public class ParereGeologoUtil { * @return the range of matching parere geologos * @throws SystemException if a system exception occurred */ - public static java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, - int start, int end) + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, - unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, - dtApprovazione, dtAnnullamento, start, end); + .findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento, start, end); } /** - * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. @@ -1294,7 +1291,6 @@ public class ParereGeologoUtil { * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1305,25 +1301,23 @@ public class ParereGeologoUtil { * @return the ordered range of matching parere geologos * @throws SystemException if a system exception occurred */ - public static java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, - int start, int end, + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, - unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, - dtApprovazione, dtAnnullamento, start, end, orderByComparator); + .findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento, start, end, orderByComparator); } /** - * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1333,25 +1327,24 @@ public class ParereGeologoUtil { * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + public static it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchParereGeologoException { return getPersistence() - .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First(groupId, - unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, - dtApprovazione, dtAnnullamento, orderByComparator); + .findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First(groupId, + unitaOperativa, assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento, orderByComparator); } /** - * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1360,24 +1353,23 @@ public class ParereGeologoUtil { * @return the first matching parere geologo, or null if a matching parere geologo could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + public static it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First(groupId, - unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, - dtApprovazione, dtAnnullamento, orderByComparator); + .fetchByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_First(groupId, + unitaOperativa, assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento, orderByComparator); } /** - * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1387,25 +1379,24 @@ public class ParereGeologoUtil { * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + public static it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchParereGeologoException { return getPersistence() - .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last(groupId, - unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, - dtApprovazione, dtAnnullamento, orderByComparator); + .findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last(groupId, + unitaOperativa, assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento, orderByComparator); } /** - * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1414,25 +1405,24 @@ public class ParereGeologoUtil { * @return the last matching parere geologo, or null if a matching parere geologo could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, + public static it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .fetchByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last(groupId, - unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, - dtApprovazione, dtAnnullamento, orderByComparator); + .fetchByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_Last(groupId, + unitaOperativa, assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento, orderByComparator); } /** - * Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param parereGeologoId the primary key of the current parere geologo * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1442,22 +1432,21 @@ public class ParereGeologoUtil { * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a parere geologo with the primary key could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.ParereGeologo[] findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext( + public static it.tref.liferay.portos.bo.model.ParereGeologo[] findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext( long parereGeologoId, long groupId, int unitaOperativa, - long geologoUserId, long assegnatoreUserId, - java.util.Date dtAssegnazione, java.util.Date dtApprovazione, - java.util.Date dtAnnullamento, + long assegnatoreUserId, java.util.Date dtAssegnazione, + java.util.Date dtApprovazione, java.util.Date dtAnnullamento, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchParereGeologoException { return getPersistence() - .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext(parereGeologoId, - groupId, unitaOperativa, geologoUserId, assegnatoreUserId, - dtAssegnazione, dtApprovazione, dtAnnullamento, orderByComparator); + .findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento_PrevAndNext(parereGeologoId, + groupId, unitaOperativa, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento, orderByComparator); } /** - * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. @@ -1465,7 +1454,6 @@ public class ParereGeologoUtil { * * @param groupIds the group IDs * @param unitaOperativas the unita operativas - * @param geologoUserId the geologo user ID * @param assegnatoreUserIds the assegnatore user IDs * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1473,19 +1461,19 @@ public class ParereGeologoUtil { * @return the matching parere geologos * @throws SystemException if a system exception occurred */ - public static java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long[] groupIds, int[] unitaOperativas, long geologoUserId, - long[] assegnatoreUserIds, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, - unitaOperativas, geologoUserId, assegnatoreUserIds, dtAssegnazione, + .findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, + unitaOperativas, assegnatoreUserIds, dtAssegnazione, dtApprovazione, dtAnnullamento); } /** - * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. @@ -1493,7 +1481,6 @@ public class ParereGeologoUtil { * * @param groupIds the group IDs * @param unitaOperativas the unita operativas - * @param geologoUserId the geologo user ID * @param assegnatoreUserIds the assegnatore user IDs * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1503,20 +1490,19 @@ public class ParereGeologoUtil { * @return the range of matching parere geologos * @throws SystemException if a system exception occurred */ - public static java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long[] groupIds, int[] unitaOperativas, long geologoUserId, - long[] assegnatoreUserIds, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, - int start, int end) + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, - unitaOperativas, geologoUserId, assegnatoreUserIds, dtAssegnazione, + .findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, + unitaOperativas, assegnatoreUserIds, dtAssegnazione, dtApprovazione, dtAnnullamento, start, end); } /** - * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. @@ -1524,7 +1510,6 @@ public class ParereGeologoUtil { * * @param groupIds the group IDs * @param unitaOperativas the unita operativas - * @param geologoUserId the geologo user ID * @param assegnatoreUserIds the assegnatore user IDs * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1535,48 +1520,45 @@ public class ParereGeologoUtil { * @return the ordered range of matching parere geologos * @throws SystemException if a system exception occurred */ - public static java.util.List findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long[] groupIds, int[] unitaOperativas, long geologoUserId, - long[] assegnatoreUserIds, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento, - int start, int end, + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, - unitaOperativas, geologoUserId, assegnatoreUserIds, dtAssegnazione, + .findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, + unitaOperativas, assegnatoreUserIds, dtAssegnazione, dtApprovazione, dtAnnullamento, start, end, orderByComparator); } /** - * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ? from the database. + * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ? from the database. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione * @param dtAnnullamento the dt annullamento * @throws SystemException if a system exception occurred */ - public static void removeByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + public static void removeByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento) throws com.liferay.portal.kernel.exception.SystemException { getPersistence() - .removeByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, - unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, - dtApprovazione, dtAnnullamento); + .removeByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento); } /** - * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupId the group ID * @param unitaOperativa the unita operativa - * @param geologoUserId the geologo user ID * @param assegnatoreUserId the assegnatore user ID * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1584,23 +1566,22 @@ public class ParereGeologoUtil { * @return the number of matching parere geologos * @throws SystemException if a system exception occurred */ - public static int countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + public static int countByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, - unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, - dtApprovazione, dtAnnullamento); + .countByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento); } /** - * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and geologoUserId = ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * * @param groupIds the group IDs * @param unitaOperativas the unita operativas - * @param geologoUserId the geologo user ID * @param assegnatoreUserIds the assegnatore user IDs * @param dtAssegnazione the dt assegnazione * @param dtApprovazione the dt approvazione @@ -1608,14 +1589,14 @@ public class ParereGeologoUtil { * @return the number of matching parere geologos * @throws SystemException if a system exception occurred */ - public static int countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long[] groupIds, int[] unitaOperativas, long geologoUserId, - long[] assegnatoreUserIds, java.util.Date dtAssegnazione, - java.util.Date dtApprovazione, java.util.Date dtAnnullamento) + public static int countByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtAssegnazione, java.util.Date dtApprovazione, + java.util.Date dtAnnullamento) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, - unitaOperativas, geologoUserId, assegnatoreUserIds, dtAssegnazione, + .countByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupIds, + unitaOperativas, assegnatoreUserIds, dtAssegnazione, dtApprovazione, dtAnnullamento); } @@ -2009,6 +1990,396 @@ public class ParereGeologoUtil { dtAssegnazione, dtAnnullamento, dtApprovazione); } + /** + * Returns all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @return the matching parere geologos + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione); + } + + /** + * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param start the lower bound of the range of parere geologos + * @param end the upper bound of the range of parere geologos (not inclusive) + * @return the range of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, start, end); + } + + /** + * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param start the lower bound of the range of parere geologos + * @param end the upper bound of the range of parere geologos (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, start, end, orderByComparator); + } + + /** + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching parere geologo + * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_First( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchParereGeologoException { + return getPersistence() + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_First(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, orderByComparator); + } + + /** + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching parere geologo, or null if a matching parere geologo could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_First( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_First(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, orderByComparator); + } + + /** + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching parere geologo + * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_Last( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchParereGeologoException { + return getPersistence() + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_Last(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, orderByComparator); + } + + /** + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching parere geologo, or null if a matching parere geologo could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_Last( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_Last(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, orderByComparator); + } + + /** + * Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param parereGeologoId the primary key of the current parere geologo + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next parere geologo + * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a parere geologo with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.ParereGeologo[] findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_PrevAndNext( + long parereGeologoId, long groupId, int unitaOperativa, + long assegnatoreUserId, java.util.Date dtCompilazione, + java.util.Date dtAssegnazione, java.util.Date dtAnnullamento, + java.util.Date dtApprovazione, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchParereGeologoException { + return getPersistence() + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_PrevAndNext(parereGeologoId, + groupId, unitaOperativa, assegnatoreUserId, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, orderByComparator); + } + + /** + * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @return the matching parere geologos + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupIds, + unitaOperativas, assegnatoreUserIds, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione); + } + + /** + * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param start the lower bound of the range of parere geologos + * @param end the upper bound of the range of parere geologos (not inclusive) + * @return the range of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupIds, + unitaOperativas, assegnatoreUserIds, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, start, end); + } + + /** + * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param start the lower bound of the range of parere geologos + * @param end the upper bound of the range of parere geologos (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione, + int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupIds, + unitaOperativas, assegnatoreUserIds, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, start, end, + orderByComparator); + } + + /** + * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ? from the database. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @throws SystemException if a system exception occurred + */ + public static void removeByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) + throws com.liferay.portal.kernel.exception.SystemException { + getPersistence() + .removeByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione); + } + + /** + * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @return the number of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public static int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione); + } + + /** + * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @return the number of matching parere geologos + * @throws SystemException if a system exception occurred + */ + public static int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + java.util.Date dtCompilazione, java.util.Date dtAssegnazione, + java.util.Date dtAnnullamento, java.util.Date dtApprovazione) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupIds, + unitaOperativas, assegnatoreUserIds, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione); + } + /** * Caches the parere geologo in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties index 414d58ac..5de1340d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties @@ -175,10 +175,12 @@ IX_5D9EAD5E=portos_bo_ParereGeo.GeologoUserId_DtCompilazione_DtAnnullamento IX_81AC7104=portos_bo_ParereGeo.GroupId_GeologoUserId_DtCompilazione_DtAnnullamento IX_B4CF0B7E=portos_bo_ParereGeo.Group_Geologo_Assegnatore_DtCompilazione_DtAnnullamento IX_94C87F94=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_DtCompilazione_DtAnnullamento_DtApprovazione +IX_EF38FC0D=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento IX_94C87F94=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_NotDtCompilazione_Annullamento_DtApprovazione IX_94C87F94=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_NotDtCompilazione_DtAnnullamento_DtApprovazione IX_94C87F94=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAnnullamento_DtApprovazione IX_D0EBB039=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_DtApprovazione +IX_D0EBB039=portos_bo_ParereGeo.Group_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione IX_3A6B6848=portos_bo_ParereGeo.Group_UnitaOperativa_Geologo_Assegnatore_DtCompilazione_DtAnnullamento IX_9E215E93=portos_bo_ParereGeo.Group_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento IX_E45CCE1A=portos_bo_ParereGeo.Group_UnitaOperativa_Geologo_Assegnatore_NotDtCompilazione_DtApprovazione_DtAnnullamento diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql index 94bef81d..1a82fe7c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql @@ -170,6 +170,7 @@ create index IX_2E6B85CA on portos_bo_ParereGeo (companyId, groupId); create index IX_5D9EAD5E on portos_bo_ParereGeo (geologoUserId, dtCompilazione, dtAnnullamento); create index IX_B4CF0B7E on portos_bo_ParereGeo (groupId, geologoUserId, assegnatoreUserId, dtCompilazione, dtAnnullamento); create index IX_81AC7104 on portos_bo_ParereGeo (groupId, geologoUserId, dtCompilazione, dtAnnullamento); +create index IX_EF38FC0D on portos_bo_ParereGeo (groupId, unitaOperativa, assegnatoreUserId, dtAssegnazione, dtApprovazione, dtAnnullamento); create index IX_94C87F94 on portos_bo_ParereGeo (groupId, unitaOperativa, assegnatoreUserId, dtCompilazione, dtAnnullamento, dtApprovazione); create index IX_D0EBB039 on portos_bo_ParereGeo (groupId, unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, dtAnnullamento, dtApprovazione); create index IX_9E215E93 on portos_bo_ParereGeo (groupId, unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, dtApprovazione, dtAnnullamento); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java index 9baf15e0..b1964739 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java @@ -192,53 +192,63 @@ public class ParereGeologoLocalServiceClpInvoker { _methodParameterTypes187 = new String[] { "com.liferay.portal.model.User" }; - _methodName188 = "findByUserDaAssegnare"; + _methodName188 = "findByUserApprovati"; _methodParameterTypes188 = new String[] { "com.liferay.portal.model.User", "int", "int" }; - _methodName189 = "countByUserDaAssegnare"; + _methodName189 = "countByUserApprovati"; _methodParameterTypes189 = new String[] { "com.liferay.portal.model.User" }; - _methodName190 = "findByUserAssegnati"; + _methodName190 = "findByUserDaAssegnare"; _methodParameterTypes190 = new String[] { "com.liferay.portal.model.User", "int", "int" }; - _methodName191 = "countByUserAssegnati"; + _methodName191 = "countByUserDaAssegnare"; _methodParameterTypes191 = new String[] { "com.liferay.portal.model.User" }; - _methodName192 = "countByGeologoIdInCorso"; + _methodName192 = "findByUserAssegnati"; - _methodParameterTypes192 = new String[] { "long" }; + _methodParameterTypes192 = new String[] { + "com.liferay.portal.model.User", "int", "int" + }; + + _methodName193 = "countByUserAssegnati"; + + _methodParameterTypes193 = new String[] { "com.liferay.portal.model.User" }; + + _methodName194 = "countByGeologoIdInCorso"; - _methodName193 = "findByGeologoIdInCorso"; + _methodParameterTypes194 = new String[] { "long" }; - _methodParameterTypes193 = new String[] { "long", "int", "int" }; + _methodName195 = "findByGeologoIdInCorso"; - _methodName197 = "findWithParereByGeologoId"; + _methodParameterTypes195 = new String[] { "long", "int", "int" }; - _methodParameterTypes197 = new String[] { "long", "int", "int" }; + _methodName199 = "findWithParereByGeologoId"; - _methodName198 = "countFindWithParereByGeologoId"; + _methodParameterTypes199 = new String[] { "long", "int", "int" }; - _methodParameterTypes198 = new String[] { "long" }; + _methodName200 = "countFindWithParereByGeologoId"; - _methodName199 = "findWithParereByGeologoIdAndApprovazione"; + _methodParameterTypes200 = new String[] { "long" }; - _methodParameterTypes199 = new String[] { "long", "boolean", "int", "int" }; + _methodName201 = "findWithParereByGeologoIdAndApprovazione"; - _methodName200 = "countFindWithParereByGeologoIdAndApprovazione"; + _methodParameterTypes201 = new String[] { "long", "boolean", "int", "int" }; - _methodParameterTypes200 = new String[] { "long", "boolean" }; + _methodName202 = "countFindWithParereByGeologoIdAndApprovazione"; - _methodName201 = "getCarichiLavoro"; + _methodParameterTypes202 = new String[] { "long", "boolean" }; - _methodParameterTypes201 = new String[] { "long", "int" }; + _methodName203 = "getCarichiLavoro"; + + _methodParameterTypes203 = new String[] { "long", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -442,68 +452,80 @@ public class ParereGeologoLocalServiceClpInvoker { if (_methodName188.equals(name) && Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { - return ParereGeologoLocalServiceUtil.findByUserDaAssegnare((com.liferay.portal.model.User)arguments[0], + return ParereGeologoLocalServiceUtil.findByUserApprovati((com.liferay.portal.model.User)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } if (_methodName189.equals(name) && Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { - return ParereGeologoLocalServiceUtil.countByUserDaAssegnare((com.liferay.portal.model.User)arguments[0]); + return ParereGeologoLocalServiceUtil.countByUserApprovati((com.liferay.portal.model.User)arguments[0]); } if (_methodName190.equals(name) && Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { - return ParereGeologoLocalServiceUtil.findByUserAssegnati((com.liferay.portal.model.User)arguments[0], + return ParereGeologoLocalServiceUtil.findByUserDaAssegnare((com.liferay.portal.model.User)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } if (_methodName191.equals(name) && Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { - return ParereGeologoLocalServiceUtil.countByUserAssegnati((com.liferay.portal.model.User)arguments[0]); + return ParereGeologoLocalServiceUtil.countByUserDaAssegnare((com.liferay.portal.model.User)arguments[0]); } if (_methodName192.equals(name) && Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { - return ParereGeologoLocalServiceUtil.countByGeologoIdInCorso(((Long)arguments[0]).longValue()); + return ParereGeologoLocalServiceUtil.findByUserAssegnati((com.liferay.portal.model.User)arguments[0], + ((Integer)arguments[1]).intValue(), + ((Integer)arguments[2]).intValue()); } if (_methodName193.equals(name) && Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { + return ParereGeologoLocalServiceUtil.countByUserAssegnati((com.liferay.portal.model.User)arguments[0]); + } + + if (_methodName194.equals(name) && + Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { + return ParereGeologoLocalServiceUtil.countByGeologoIdInCorso(((Long)arguments[0]).longValue()); + } + + if (_methodName195.equals(name) && + Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { return ParereGeologoLocalServiceUtil.findByGeologoIdInCorso(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName197.equals(name) && - Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { + if (_methodName199.equals(name) && + Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName198.equals(name) && - Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { + if (_methodName200.equals(name) && + Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue()); } - if (_methodName199.equals(name) && - Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { + if (_methodName201.equals(name) && + Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { return ParereGeologoLocalServiceUtil.findWithParereByGeologoIdAndApprovazione(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName200.equals(name) && - Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { + if (_methodName202.equals(name) && + Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoIdAndApprovazione(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { + if (_methodName203.equals(name) && + Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { return ParereGeologoLocalServiceUtil.getCarichiLavoro(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); } @@ -591,14 +613,18 @@ public class ParereGeologoLocalServiceClpInvoker { private String[] _methodParameterTypes192; private String _methodName193; private String[] _methodParameterTypes193; - private String _methodName197; - private String[] _methodParameterTypes197; - private String _methodName198; - private String[] _methodParameterTypes198; + private String _methodName194; + private String[] _methodParameterTypes194; + private String _methodName195; + private String[] _methodParameterTypes195; private String _methodName199; private String[] _methodParameterTypes199; private String _methodName200; private String[] _methodParameterTypes200; private String _methodName201; private String[] _methodParameterTypes201; + private String _methodName202; + private String[] _methodParameterTypes202; + private String _methodName203; + private String[] _methodParameterTypes203; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java index 1cc3b436..4e35132d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java @@ -115,7 +115,7 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase Date now = serviceContext.getModifiedDate(new Date()); parere.setModifiedDate(serviceContext.getModifiedDate()); parere.setDtCompilazione(now); - if(Validator.isNull(parere.getUnitaOperativa())){ + if(0 == parere.getUnitaOperativa()){ parere.setApprovatoreUserId(serviceContext.getUserId()); parere.setDtApprovazione(now); } @@ -233,6 +233,25 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), new long[] { 0L, user.getUserId() }, null, null, null, null); } + + @Override + public List findByUserApprovati(User user, int start, int end) throws SystemException { + + return parereGeologoPersistence + .findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), + new long[] { 0L, user.getUserId() }, null, null, null, null, start, end, + OrderByComparatorFactoryUtil.create(ParereGeologoImpl.TABLE_NAME, "dtCompilazione", false)); + } + + @Override + public int countByUserApprovati(User user) throws SystemException { + + return parereGeologoPersistence + .countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), + new long[] { 0L, user.getUserId() }, null, null, null, null); + } @Override public List findByUserDaAssegnare(User user, int start, int end) throws SystemException { @@ -254,8 +273,8 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase @Override public List findByUserAssegnati(User user, int start, int end) throws SystemException { - return parereGeologoPersistence.findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), 0L, + return parereGeologoPersistence.findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), new long[] { 0L, user.getUserId() }, null, null, null, start, end, OrderByComparatorFactoryUtil.create(ParereGeologoImpl.TABLE_NAME, "dtRichista", false)); } @@ -263,8 +282,8 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase @Override public int countByUserAssegnati(User user) throws SystemException { - return parereGeologoPersistence.countByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), 0L, + return parereGeologoPersistence.countByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + UserUtil.getGroupIds(user), UserUtil.getUnitaOperativeArray(user), new long[] { 0L, user.getUserId() }, null, null, null); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java index 672b671d..ae67d3d7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java @@ -3835,36 +3835,35 @@ public class ParereGeologoPersistenceImpl extends BasePersistenceImpl findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, Date dtAssegnazione, Date dtApprovazione, - Date dtAnnullamento) throws SystemException { - return findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, - unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, - dtApprovazione, dtAnnullamento, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); + public List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + Date dtAssegnazione, Date dtApprovazione, Date dtAnnullamento) + throws SystemException { + return findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); } /** - * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. @@ -3892,7 +3890,6 @@ public class ParereGeologoPersistenceImpl extends BasePersistenceImpl findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, Date dtAssegnazione, Date dtApprovazione, - Date dtAnnullamento, int start, int end) throws SystemException { - return findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, - unitaOperativa, geologoUserId, assegnatoreUserId, dtAssegnazione, - dtApprovazione, dtAnnullamento, start, end, null); + public List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + Date dtAssegnazione, Date dtApprovazione, Date dtAnnullamento, + int start, int end) throws SystemException { + return findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento(groupId, + unitaOperativa, assegnatoreUserId, dtAssegnazione, dtApprovazione, + dtAnnullamento, start, end, null); } /** - * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and geologoUserId = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. + * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtAssegnazione ≠ ? and dtApprovazione = ? and dtAnnullamento = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. @@ -3921,7 +3918,6 @@ public class ParereGeologoPersistenceImpl extends BasePersistenceImpl findByGroup_UnitaOperativa_Geologo_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( - long groupId, int unitaOperativa, long geologoUserId, - long assegnatoreUserId, Date dtAssegnazione, Date dtApprovazione, - Date dtAnnullamento, int start, int end, - OrderByComparator orderByComparator) throws SystemException { + public List findByGroup_UnitaOperativa_Assegnatore_NotDtAssegnazione_DtApprovazione_DtAnnullamento( + long groupId, int unitaOperativa, long assegnatoreUserId, + Date dtAssegnazione, Date dtApprovazione, Date dtAnnullamento, + int start, int end, OrderByComparator orderByComparator) + throws SystemException { boolean pagination = true; FinderPath finderPath = null; Object[] finderArgs = null; - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUP_UNITAOPERATIVA_GEOLOGO_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO; + finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTASSEGNAZIONE_DTAPPROVAZIONE_DTANNULLAMENTO; finderArgs = new Object[] { - groupId, unitaOperativa, geologoUserId, assegnatoreUserId, - dtAssegnazione, dtApprovazione, dtAnnullamento, + groupId, unitaOperativa, assegnatoreUserId, dtAssegnazione, + dtApprovazione, dtAnnullamento, start, end, orderByComparator }; @@ -3957,7 +3953,6 @@ public class ParereGeologoPersistenceImpl extends BasePersistenceImpl findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione) throws SystemException { + return findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param start the lower bound of the range of parere geologos + * @param end the upper bound of the range of parere geologos (not inclusive) + * @return the range of matching parere geologos + * @throws SystemException if a system exception occurred + */ + @Override + public List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione, int start, int end) throws SystemException { + return findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, dtAssegnazione, + dtAnnullamento, dtApprovazione, start, end, null); + } + + /** + * Returns an ordered range of all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param start the lower bound of the range of parere geologos + * @param end the upper bound of the range of parere geologos (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching parere geologos + * @throws SystemException if a system exception occurred + */ + @Override + public List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + boolean pagination = true; + FinderPath finderPath = null; + Object[] finderArgs = null; + + finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE; + finderArgs = new Object[] { + groupId, unitaOperativa, assegnatoreUserId, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, + + start, end, orderByComparator + }; + + List list = (List)FinderCacheUtil.getResult(finderPath, + finderArgs, this); + + if ((list != null) && !list.isEmpty()) { + for (ParereGeologo parereGeologo : list) { + if ((groupId != parereGeologo.getGroupId()) || + (unitaOperativa != parereGeologo.getUnitaOperativa()) || + (assegnatoreUserId != parereGeologo.getAssegnatoreUserId()) || + Validator.equals(dtCompilazione, + parereGeologo.getDtCompilazione()) || + Validator.equals(dtAssegnazione, + parereGeologo.getDtAssegnazione()) || + !Validator.equals(dtAnnullamento, + parereGeologo.getDtAnnullamento()) || + Validator.equals(dtApprovazione, + parereGeologo.getDtApprovazione())) { + list = null; + + break; + } + } + } + + if (list == null) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(9 + + (orderByComparator.getOrderByFields().length * 3)); + } + else { + query = new StringBundler(9); + } + + query.append(_SQL_SELECT_PAREREGEOLOGO_WHERE); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_GROUPID_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_UNITAOPERATIVA_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_ASSEGNATOREUSERID_2); + + boolean bindDtCompilazione = false; + + if (dtCompilazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_1); + } + else { + bindDtCompilazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_2); + } + + boolean bindDtAssegnazione = false; + + if (dtAssegnazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_1); + } + else { + bindDtAssegnazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_2); + } + + boolean bindDtAnnullamento = false; + + if (dtAnnullamento == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_1); + } + else { + bindDtAnnullamento = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_2); + } + + boolean bindDtApprovazione = false; + + if (dtApprovazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_1); + } + else { + bindDtApprovazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_2); + } + + if (orderByComparator != null) { + appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, + orderByComparator); + } + else + if (pagination) { + query.append(ParereGeologoModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(groupId); + + qPos.add(unitaOperativa); + + qPos.add(assegnatoreUserId); + + if (bindDtCompilazione) { + qPos.add(CalendarUtil.getTimestamp(dtCompilazione)); + } + + if (bindDtAssegnazione) { + qPos.add(CalendarUtil.getTimestamp(dtAssegnazione)); + } + + if (bindDtAnnullamento) { + qPos.add(CalendarUtil.getTimestamp(dtAnnullamento)); + } + + if (bindDtApprovazione) { + qPos.add(CalendarUtil.getTimestamp(dtApprovazione)); + } + + if (!pagination) { + list = (List)QueryUtil.list(q, getDialect(), + start, end, false); + + Collections.sort(list); + + list = new UnmodifiableList(list); + } + else { + list = (List)QueryUtil.list(q, getDialect(), + start, end); + } + + cacheResult(list); + + FinderCacheUtil.putResult(finderPath, finderArgs, list); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return list; + } + + /** + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching parere geologo + * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_First( + long groupId, int unitaOperativa, long assegnatoreUserId, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione, OrderByComparator orderByComparator) + throws NoSuchParereGeologoException, SystemException { + ParereGeologo parereGeologo = fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_First(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, + orderByComparator); + + if (parereGeologo != null) { + return parereGeologo; + } + + StringBundler msg = new StringBundler(16); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("groupId="); + msg.append(groupId); + + msg.append(", unitaOperativa="); + msg.append(unitaOperativa); + + msg.append(", assegnatoreUserId="); + msg.append(assegnatoreUserId); + + msg.append(", dtCompilazione="); + msg.append(dtCompilazione); + + msg.append(", dtAssegnazione="); + msg.append(dtAssegnazione); + + msg.append(", dtAnnullamento="); + msg.append(dtAnnullamento); + + msg.append(", dtApprovazione="); + msg.append(dtApprovazione); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchParereGeologoException(msg.toString()); + } + + /** + * Returns the first parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching parere geologo, or null if a matching parere geologo could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_First( + long groupId, int unitaOperativa, long assegnatoreUserId, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione, OrderByComparator orderByComparator) + throws SystemException { + List list = findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, 0, 1, + orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching parere geologo + * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a matching parere geologo could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public ParereGeologo findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_Last( + long groupId, int unitaOperativa, long assegnatoreUserId, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione, OrderByComparator orderByComparator) + throws NoSuchParereGeologoException, SystemException { + ParereGeologo parereGeologo = fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_Last(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, + orderByComparator); + + if (parereGeologo != null) { + return parereGeologo; + } + + StringBundler msg = new StringBundler(16); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("groupId="); + msg.append(groupId); + + msg.append(", unitaOperativa="); + msg.append(unitaOperativa); + + msg.append(", assegnatoreUserId="); + msg.append(assegnatoreUserId); + + msg.append(", dtCompilazione="); + msg.append(dtCompilazione); + + msg.append(", dtAssegnazione="); + msg.append(dtAssegnazione); + + msg.append(", dtAnnullamento="); + msg.append(dtAnnullamento); + + msg.append(", dtApprovazione="); + msg.append(dtApprovazione); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchParereGeologoException(msg.toString()); + } + + /** + * Returns the last parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching parere geologo, or null if a matching parere geologo could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public ParereGeologo fetchByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_Last( + long groupId, int unitaOperativa, long assegnatoreUserId, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione, OrderByComparator orderByComparator) + throws SystemException { + int count = countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione); + + if (count == 0) { + return null; + } + + List list = findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupId, + unitaOperativa, assegnatoreUserId, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, count - 1, + count, orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the parere geologos before and after the current parere geologo in the ordered set where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param parereGeologoId the primary key of the current parere geologo + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next parere geologo + * @throws it.tref.liferay.portos.bo.NoSuchParereGeologoException if a parere geologo with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public ParereGeologo[] findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_PrevAndNext( + long parereGeologoId, long groupId, int unitaOperativa, + long assegnatoreUserId, Date dtCompilazione, Date dtAssegnazione, + Date dtAnnullamento, Date dtApprovazione, + OrderByComparator orderByComparator) + throws NoSuchParereGeologoException, SystemException { + ParereGeologo parereGeologo = findByPrimaryKey(parereGeologoId); + + Session session = null; + + try { + session = openSession(); + + ParereGeologo[] array = new ParereGeologoImpl[3]; + + array[0] = getByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_PrevAndNext(session, + parereGeologo, groupId, unitaOperativa, assegnatoreUserId, + dtCompilazione, dtAssegnazione, dtAnnullamento, + dtApprovazione, orderByComparator, true); + + array[1] = parereGeologo; + + array[2] = getByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_PrevAndNext(session, + parereGeologo, groupId, unitaOperativa, assegnatoreUserId, + dtCompilazione, dtAssegnazione, dtAnnullamento, + dtApprovazione, orderByComparator, false); + + return array; + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + } + + protected ParereGeologo getByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione_PrevAndNext( + Session session, ParereGeologo parereGeologo, long groupId, + int unitaOperativa, long assegnatoreUserId, Date dtCompilazione, + Date dtAssegnazione, Date dtAnnullamento, Date dtApprovazione, + OrderByComparator orderByComparator, boolean previous) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(6 + + (orderByComparator.getOrderByFields().length * 6)); + } + else { + query = new StringBundler(3); + } + + query.append(_SQL_SELECT_PAREREGEOLOGO_WHERE); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_GROUPID_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_UNITAOPERATIVA_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_ASSEGNATOREUSERID_2); + + boolean bindDtCompilazione = false; + + if (dtCompilazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_1); + } + else { + bindDtCompilazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_2); + } + + boolean bindDtAssegnazione = false; + + if (dtAssegnazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_1); + } + else { + bindDtAssegnazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_2); + } + + boolean bindDtAnnullamento = false; + + if (dtAnnullamento == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_1); + } + else { + bindDtAnnullamento = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_2); + } + + boolean bindDtApprovazione = false; + + if (dtApprovazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_1); + } + else { + bindDtApprovazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_2); + } + + if (orderByComparator != null) { + String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); + + if (orderByConditionFields.length > 0) { + query.append(WHERE_AND); + } + + for (int i = 0; i < orderByConditionFields.length; i++) { + query.append(_ORDER_BY_ENTITY_ALIAS); + query.append(orderByConditionFields[i]); + + if ((i + 1) < orderByConditionFields.length) { + if (orderByComparator.isAscending() ^ previous) { + query.append(WHERE_GREATER_THAN_HAS_NEXT); + } + else { + query.append(WHERE_LESSER_THAN_HAS_NEXT); + } + } + else { + if (orderByComparator.isAscending() ^ previous) { + query.append(WHERE_GREATER_THAN); + } + else { + query.append(WHERE_LESSER_THAN); + } + } + } + + query.append(ORDER_BY_CLAUSE); + + String[] orderByFields = orderByComparator.getOrderByFields(); + + for (int i = 0; i < orderByFields.length; i++) { + query.append(_ORDER_BY_ENTITY_ALIAS); + query.append(orderByFields[i]); + + if ((i + 1) < orderByFields.length) { + if (orderByComparator.isAscending() ^ previous) { + query.append(ORDER_BY_ASC_HAS_NEXT); + } + else { + query.append(ORDER_BY_DESC_HAS_NEXT); + } + } + else { + if (orderByComparator.isAscending() ^ previous) { + query.append(ORDER_BY_ASC); + } + else { + query.append(ORDER_BY_DESC); + } + } + } + } + else { + query.append(ParereGeologoModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Query q = session.createQuery(sql); + + q.setFirstResult(0); + q.setMaxResults(2); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(groupId); + + qPos.add(unitaOperativa); + + qPos.add(assegnatoreUserId); + + if (bindDtCompilazione) { + qPos.add(CalendarUtil.getTimestamp(dtCompilazione)); + } + + if (bindDtAssegnazione) { + qPos.add(CalendarUtil.getTimestamp(dtAssegnazione)); + } + + if (bindDtAnnullamento) { + qPos.add(CalendarUtil.getTimestamp(dtAnnullamento)); + } + + if (bindDtApprovazione) { + qPos.add(CalendarUtil.getTimestamp(dtApprovazione)); + } + + if (orderByComparator != null) { + Object[] values = orderByComparator.getOrderByConditionValues(parereGeologo); + + for (Object value : values) { + qPos.add(value); + } + } + + List list = q.list(); + + if (list.size() == 2) { + return list.get(1); + } + else { + return null; + } + } + + /** + * Returns all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @return the matching parere geologos + * @throws SystemException if a system exception occurred + */ + @Override + public List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione) throws SystemException { + return findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupIds, + unitaOperativas, assegnatoreUserIds, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param start the lower bound of the range of parere geologos + * @param end the upper bound of the range of parere geologos (not inclusive) + * @return the range of matching parere geologos + * @throws SystemException if a system exception occurred + */ + @Override + public List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione, int start, int end) throws SystemException { + return findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupIds, + unitaOperativas, assegnatoreUserIds, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, start, end, null); + } + + /** + * Returns an ordered range of all the parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

+ * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @param start the lower bound of the range of parere geologos + * @param end the upper bound of the range of parere geologos (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching parere geologos + * @throws SystemException if a system exception occurred + */ + @Override + public List findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione, int start, int end, + OrderByComparator orderByComparator) throws SystemException { + if ((groupIds != null) && (groupIds.length == 1) && + (unitaOperativas != null) && (unitaOperativas.length == 1) && + (assegnatoreUserIds != null) && + (assegnatoreUserIds.length == 1)) { + return findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione(groupIds[0], + unitaOperativas[0], assegnatoreUserIds[0], dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, start, end, + orderByComparator); + } + + boolean pagination = true; + Object[] finderArgs = null; + + if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && + (orderByComparator == null)) { + pagination = false; + finderArgs = new Object[] { + StringUtil.merge(groupIds), + StringUtil.merge(unitaOperativas), + StringUtil.merge(assegnatoreUserIds), dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione + }; + } + else { + finderArgs = new Object[] { + StringUtil.merge(groupIds), + StringUtil.merge(unitaOperativas), + StringUtil.merge(assegnatoreUserIds), dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, + + start, end, orderByComparator + }; + } + + List list = (List)FinderCacheUtil.getResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE, + finderArgs, this); + + if ((list != null) && !list.isEmpty()) { + for (ParereGeologo parereGeologo : list) { + if (!ArrayUtil.contains(groupIds, parereGeologo.getGroupId()) || + !ArrayUtil.contains(unitaOperativas, + parereGeologo.getUnitaOperativa()) || + !ArrayUtil.contains(assegnatoreUserIds, + parereGeologo.getAssegnatoreUserId()) || + Validator.equals(dtCompilazione, + parereGeologo.getDtCompilazione()) || + Validator.equals(dtAssegnazione, + parereGeologo.getDtAssegnazione()) || + !Validator.equals(dtAnnullamento, + parereGeologo.getDtAnnullamento()) || + Validator.equals(dtApprovazione, + parereGeologo.getDtApprovazione())) { + list = null; + + break; + } + } + } + + if (list == null) { + StringBundler query = new StringBundler(); + + query.append(_SQL_SELECT_PAREREGEOLOGO_WHERE); + + boolean conjunctionable = false; + + if ((groupIds == null) || (groupIds.length > 0)) { + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(StringPool.OPEN_PARENTHESIS); + + for (int i = 0; i < groupIds.length; i++) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_GROUPID_5); + + if ((i + 1) < groupIds.length) { + query.append(WHERE_OR); + } + } + + query.append(StringPool.CLOSE_PARENTHESIS); + + conjunctionable = true; + } + + if ((unitaOperativas == null) || (unitaOperativas.length > 0)) { + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(StringPool.OPEN_PARENTHESIS); + + for (int i = 0; i < unitaOperativas.length; i++) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_UNITAOPERATIVA_5); + + if ((i + 1) < unitaOperativas.length) { + query.append(WHERE_OR); + } + } + + query.append(StringPool.CLOSE_PARENTHESIS); + + conjunctionable = true; + } + + if ((assegnatoreUserIds == null) || + (assegnatoreUserIds.length > 0)) { + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(StringPool.OPEN_PARENTHESIS); + + for (int i = 0; i < assegnatoreUserIds.length; i++) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_ASSEGNATOREUSERID_5); + + if ((i + 1) < assegnatoreUserIds.length) { + query.append(WHERE_OR); + } + } + + query.append(StringPool.CLOSE_PARENTHESIS); + + conjunctionable = true; + } + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtCompilazione = false; + + if (dtCompilazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_4); + } + else { + bindDtCompilazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_5); + } + + conjunctionable = true; + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtAssegnazione = false; + + if (dtAssegnazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_4); + } + else { + bindDtAssegnazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_5); + } + + conjunctionable = true; + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtAnnullamento = false; + + if (dtAnnullamento == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_4); + } + else { + bindDtAnnullamento = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_5); + } + + conjunctionable = true; + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtApprovazione = false; + + if (dtApprovazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_4); + } + else { + bindDtApprovazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_5); + } + + conjunctionable = true; + + if (orderByComparator != null) { + appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, + orderByComparator); + } + else + if (pagination) { + query.append(ParereGeologoModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (groupIds != null) { + qPos.add(groupIds); + } + + if (unitaOperativas != null) { + qPos.add(unitaOperativas); + } + + if (assegnatoreUserIds != null) { + qPos.add(assegnatoreUserIds); + } + + if (bindDtCompilazione) { + qPos.add(CalendarUtil.getTimestamp(dtCompilazione)); + } + + if (bindDtAssegnazione) { + qPos.add(CalendarUtil.getTimestamp(dtAssegnazione)); + } + + if (bindDtAnnullamento) { + qPos.add(CalendarUtil.getTimestamp(dtAnnullamento)); + } + + if (bindDtApprovazione) { + qPos.add(CalendarUtil.getTimestamp(dtApprovazione)); + } + + if (!pagination) { + list = (List)QueryUtil.list(q, getDialect(), + start, end, false); + + Collections.sort(list); + + list = new UnmodifiableList(list); + } + else { + list = (List)QueryUtil.list(q, getDialect(), + start, end); + } + + cacheResult(list); + + FinderCacheUtil.putResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE, + finderArgs, list); + } + catch (Exception e) { + FinderCacheUtil.removeResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE, + finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return list; + } + + /** + * Removes all the parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ? from the database. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @throws SystemException if a system exception occurred + */ + @Override + public void removeByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione) throws SystemException { + for (ParereGeologo parereGeologo : findByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + groupId, unitaOperativa, assegnatoreUserId, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { + remove(parereGeologo); + } + } + + /** + * Returns the number of parere geologos where groupId = ? and unitaOperativa = ? and assegnatoreUserId = ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupId the group ID + * @param unitaOperativa the unita operativa + * @param assegnatoreUserId the assegnatore user ID + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @return the number of matching parere geologos + * @throws SystemException if a system exception occurred + */ + @Override + public int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long groupId, int unitaOperativa, long assegnatoreUserId, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione) throws SystemException { + FinderPath finderPath = FINDER_PATH_WITH_PAGINATION_COUNT_BY_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE; + + Object[] finderArgs = new Object[] { + groupId, unitaOperativa, assegnatoreUserId, dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione + }; + + Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, + this); + + if (count == null) { + StringBundler query = new StringBundler(8); + + query.append(_SQL_COUNT_PAREREGEOLOGO_WHERE); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_GROUPID_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_UNITAOPERATIVA_2); + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_ASSEGNATOREUSERID_2); + + boolean bindDtCompilazione = false; + + if (dtCompilazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_1); + } + else { + bindDtCompilazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_2); + } + + boolean bindDtAssegnazione = false; + + if (dtAssegnazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_1); + } + else { + bindDtAssegnazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_2); + } + + boolean bindDtAnnullamento = false; + + if (dtAnnullamento == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_1); + } + else { + bindDtAnnullamento = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_2); + } + + boolean bindDtApprovazione = false; + + if (dtApprovazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_1); + } + else { + bindDtApprovazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_2); + } + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + qPos.add(groupId); + + qPos.add(unitaOperativa); + + qPos.add(assegnatoreUserId); + + if (bindDtCompilazione) { + qPos.add(CalendarUtil.getTimestamp(dtCompilazione)); + } + + if (bindDtAssegnazione) { + qPos.add(CalendarUtil.getTimestamp(dtAssegnazione)); + } + + if (bindDtAnnullamento) { + qPos.add(CalendarUtil.getTimestamp(dtAnnullamento)); + } + + if (bindDtApprovazione) { + qPos.add(CalendarUtil.getTimestamp(dtApprovazione)); + } + + count = (Long)q.uniqueResult(); + + FinderCacheUtil.putResult(finderPath, finderArgs, count); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + /** + * Returns the number of parere geologos where groupId = any ? and unitaOperativa = any ? and assegnatoreUserId = any ? and dtCompilazione ≠ ? and dtAssegnazione ≠ ? and dtAnnullamento = ? and dtApprovazione ≠ ?. + * + * @param groupIds the group IDs + * @param unitaOperativas the unita operativas + * @param assegnatoreUserIds the assegnatore user IDs + * @param dtCompilazione the dt compilazione + * @param dtAssegnazione the dt assegnazione + * @param dtAnnullamento the dt annullamento + * @param dtApprovazione the dt approvazione + * @return the number of matching parere geologos + * @throws SystemException if a system exception occurred + */ + @Override + public int countByGroup_UnitaOperativa_Assegnatore_NotDtCompilazione_NotDtAssegnazione_DtAnnullamento_NotDtApprovazione( + long[] groupIds, int[] unitaOperativas, long[] assegnatoreUserIds, + Date dtCompilazione, Date dtAssegnazione, Date dtAnnullamento, + Date dtApprovazione) throws SystemException { + Object[] finderArgs = new Object[] { + StringUtil.merge(groupIds), StringUtil.merge(unitaOperativas), + StringUtil.merge(assegnatoreUserIds), dtCompilazione, + dtAssegnazione, dtAnnullamento, dtApprovazione + }; + + Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE, + finderArgs, this); + + if (count == null) { + StringBundler query = new StringBundler(); + + query.append(_SQL_COUNT_PAREREGEOLOGO_WHERE); + + boolean conjunctionable = false; + + if ((groupIds == null) || (groupIds.length > 0)) { + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(StringPool.OPEN_PARENTHESIS); + + for (int i = 0; i < groupIds.length; i++) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_GROUPID_5); + + if ((i + 1) < groupIds.length) { + query.append(WHERE_OR); + } + } + + query.append(StringPool.CLOSE_PARENTHESIS); + + conjunctionable = true; + } + + if ((unitaOperativas == null) || (unitaOperativas.length > 0)) { + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(StringPool.OPEN_PARENTHESIS); + + for (int i = 0; i < unitaOperativas.length; i++) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_UNITAOPERATIVA_5); + + if ((i + 1) < unitaOperativas.length) { + query.append(WHERE_OR); + } + } + + query.append(StringPool.CLOSE_PARENTHESIS); + + conjunctionable = true; + } + + if ((assegnatoreUserIds == null) || + (assegnatoreUserIds.length > 0)) { + if (conjunctionable) { + query.append(WHERE_AND); + } + + query.append(StringPool.OPEN_PARENTHESIS); + + for (int i = 0; i < assegnatoreUserIds.length; i++) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_ASSEGNATOREUSERID_5); + + if ((i + 1) < assegnatoreUserIds.length) { + query.append(WHERE_OR); + } + } + + query.append(StringPool.CLOSE_PARENTHESIS); + + conjunctionable = true; + } + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtCompilazione = false; + + if (dtCompilazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_4); + } + else { + bindDtCompilazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_5); + } + + conjunctionable = true; + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtAssegnazione = false; + + if (dtAssegnazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_4); + } + else { + bindDtAssegnazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_5); + } + + conjunctionable = true; + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtAnnullamento = false; + + if (dtAnnullamento == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_4); + } + else { + bindDtAnnullamento = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_5); + } + + conjunctionable = true; + + if (conjunctionable) { + query.append(WHERE_AND); + } + + boolean bindDtApprovazione = false; + + if (dtApprovazione == null) { + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_4); + } + else { + bindDtApprovazione = true; + + query.append(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_5); + } + + conjunctionable = true; + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (groupIds != null) { + qPos.add(groupIds); + } + + if (unitaOperativas != null) { + qPos.add(unitaOperativas); + } + + if (assegnatoreUserIds != null) { + qPos.add(assegnatoreUserIds); + } + + if (bindDtCompilazione) { + qPos.add(CalendarUtil.getTimestamp(dtCompilazione)); + } + + if (bindDtAssegnazione) { + qPos.add(CalendarUtil.getTimestamp(dtAssegnazione)); + } + + if (bindDtAnnullamento) { + qPos.add(CalendarUtil.getTimestamp(dtAnnullamento)); + } + + if (bindDtApprovazione) { + qPos.add(CalendarUtil.getTimestamp(dtApprovazione)); + } + + count = (Long)q.uniqueResult(); + + FinderCacheUtil.putResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE, + finderArgs, count); + } + catch (Exception e) { + FinderCacheUtil.removeResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE, + finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return count.intValue(); + } + + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_GROUPID_2 = + "parereGeologo.groupId = ? AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_GROUPID_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_GROUPID_2) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_UNITAOPERATIVA_2 = + "parereGeologo.unitaOperativa = ? AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_UNITAOPERATIVA_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_UNITAOPERATIVA_2) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_ASSEGNATOREUSERID_2 = + "parereGeologo.assegnatoreUserId = ? AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_ASSEGNATOREUSERID_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_ASSEGNATOREUSERID_2) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_1 = + "parereGeologo.dtCompilazione IS NOT NULL AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_2 = + "parereGeologo.dtCompilazione != ? AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_4 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_1) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTCOMPILAZIONE_2) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_1 = + "parereGeologo.dtAssegnazione IS NOT NULL AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_2 = + "parereGeologo.dtAssegnazione != ? AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_4 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_1) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTASSEGNAZIONE_2) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_1 = + "parereGeologo.dtAnnullamento IS NULL AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_2 = + "parereGeologo.dtAnnullamento = ? AND "; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_4 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_1) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTANNULLAMENTO_2) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_1 = + "parereGeologo.dtApprovazione IS NOT NULL"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_2 = + "parereGeologo.dtApprovazione != ?"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_4 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_1) + + ")"; + private static final String _FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_5 = + "(" + + removeConjunction(_FINDER_COLUMN_GROUP_UNITAOPERATIVA_ASSEGNATORE_NOTDTCOMPILAZIONE_NOTDTASSEGNAZIONE_DTANNULLAMENTO_NOTDTAPPROVAZIONE_DTAPPROVAZIONE_2) + + ")"; public ParereGeologoPersistenceImpl() { setModelClass(ParereGeologo.class); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties index 534156e8..6a0b4043 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_bo - build.number=3655 - build.date=1681487857951 + build.number=3659 + build.date=1682088644625 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index 97057930..ab6c53d2 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/actions.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/actions.jsp index 9e8b6998..c15a035f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/actions.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/actions.jsp @@ -66,7 +66,7 @@ if (searchContainer != null) { url="<%= downloadUrl %>" /> - + <% String buttonId = "buttonIdApprovaParere_" + parereId; %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/init.jsp index 071f2011..3ce96346 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/init.jsp @@ -43,7 +43,7 @@ int countForniti = 0; } sb.append(",Pareri approvati"); // FIXME completare implementando il service per countByUserApprovati - countApprovati = ParereGeologoLocalServiceUtil.countFindWithParereByGeologoIdAndApprovazione(user.getUserId(), true); + countApprovati = ParereGeologoLocalServiceUtil.countByUserApprovati(user); if (countApprovati > 0) { sb.append(" (").append(countApprovati).append(")"); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareriapprovati.jsp b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareriapprovati.jsp index dfe30c4f..cbcb1452 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareriapprovati.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/pareregeologo/pareriapprovati.jsp @@ -23,7 +23,7 @@ <% - List lista = ParereGeologoLocalServiceUtil.findWithParereByGeologoIdAndApprovazione(user.getUserId(), true, searchContainer.getStart(), + List lista = ParereGeologoLocalServiceUtil.findByUserApprovati(user, searchContainer.getStart(), searchContainer.getEnd()); searchContainer.setTotal(countApprovati); pageContext.setAttribute("results", lista);