findByIntPraticaId(
+ long intPraticaId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns a range of all the scheduled actionses where intPraticaId = ?.
+ *
+ *
+ * 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 portos.nextmind.model.impl.ScheduledActionsModelImpl}. 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 intPraticaId the int pratica ID
+ * @param start the lower bound of the range of scheduled actionses
+ * @param end the upper bound of the range of scheduled actionses (not inclusive)
+ * @return the range of matching scheduled actionses
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List findByIntPraticaId(
+ long intPraticaId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns an ordered range of all the scheduled actionses where intPraticaId = ?.
+ *
+ *
+ * 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 portos.nextmind.model.impl.ScheduledActionsModelImpl}. 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 intPraticaId the int pratica ID
+ * @param start the lower bound of the range of scheduled actionses
+ * @param end the upper bound of the range of scheduled actionses (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally null
)
+ * @return the ordered range of matching scheduled actionses
+ * @throws SystemException if a system exception occurred
+ */
+ public java.util.List findByIntPraticaId(
+ long intPraticaId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the first scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the first matching scheduled actions
+ * @throws portos.nextmind.NoSuchScheduledActionsException if a matching scheduled actions could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public portos.nextmind.model.ScheduledActions findByIntPraticaId_First(
+ long intPraticaId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ portos.nextmind.NoSuchScheduledActionsException;
+
+ /**
+ * Returns the first scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the first matching scheduled actions, or null
if a matching scheduled actions could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public portos.nextmind.model.ScheduledActions fetchByIntPraticaId_First(
+ long intPraticaId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the last scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the last matching scheduled actions
+ * @throws portos.nextmind.NoSuchScheduledActionsException if a matching scheduled actions could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public portos.nextmind.model.ScheduledActions findByIntPraticaId_Last(
+ long intPraticaId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ portos.nextmind.NoSuchScheduledActionsException;
+
+ /**
+ * Returns the last scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the last matching scheduled actions, or null
if a matching scheduled actions could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public portos.nextmind.model.ScheduledActions fetchByIntPraticaId_Last(
+ long intPraticaId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the scheduled actionses before and after the current scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param shop_id the primary key of the current scheduled actions
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the previous, current, and next scheduled actions
+ * @throws portos.nextmind.NoSuchScheduledActionsException if a scheduled actions with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public portos.nextmind.model.ScheduledActions[] findByIntPraticaId_PrevAndNext(
+ long shop_id, long intPraticaId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ portos.nextmind.NoSuchScheduledActionsException;
+
+ /**
+ * Removes all the scheduled actionses where intPraticaId = ? from the database.
+ *
+ * @param intPraticaId the int pratica ID
+ * @throws SystemException if a system exception occurred
+ */
+ public void removeByIntPraticaId(long intPraticaId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
+ /**
+ * Returns the number of scheduled actionses where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @return the number of matching scheduled actionses
+ * @throws SystemException if a system exception occurred
+ */
+ public int countByIntPraticaId(long intPraticaId)
+ throws com.liferay.portal.kernel.exception.SystemException;
+
/**
* Caches the scheduled actions in the entity cache if it is enabled.
*
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsUtil.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsUtil.java
index c766199c..5bc51039 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsUtil.java
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsUtil.java
@@ -110,6 +110,172 @@ public class ScheduledActionsUtil {
return getPersistence().update(scheduledActions, serviceContext);
}
+ /**
+ * Returns all the scheduled actionses where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @return the matching scheduled actionses
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List findByIntPraticaId(
+ long intPraticaId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByIntPraticaId(intPraticaId);
+ }
+
+ /**
+ * Returns a range of all the scheduled actionses where intPraticaId = ?.
+ *
+ *
+ * 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 portos.nextmind.model.impl.ScheduledActionsModelImpl}. 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 intPraticaId the int pratica ID
+ * @param start the lower bound of the range of scheduled actionses
+ * @param end the upper bound of the range of scheduled actionses (not inclusive)
+ * @return the range of matching scheduled actionses
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List findByIntPraticaId(
+ long intPraticaId, int start, int end)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().findByIntPraticaId(intPraticaId, start, end);
+ }
+
+ /**
+ * Returns an ordered range of all the scheduled actionses where intPraticaId = ?.
+ *
+ *
+ * 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 portos.nextmind.model.impl.ScheduledActionsModelImpl}. 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 intPraticaId the int pratica ID
+ * @param start the lower bound of the range of scheduled actionses
+ * @param end the upper bound of the range of scheduled actionses (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally null
)
+ * @return the ordered range of matching scheduled actionses
+ * @throws SystemException if a system exception occurred
+ */
+ public static java.util.List findByIntPraticaId(
+ long intPraticaId, int start, int end,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .findByIntPraticaId(intPraticaId, start, end,
+ orderByComparator);
+ }
+
+ /**
+ * Returns the first scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the first matching scheduled actions
+ * @throws portos.nextmind.NoSuchScheduledActionsException if a matching scheduled actions could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static portos.nextmind.model.ScheduledActions findByIntPraticaId_First(
+ long intPraticaId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ portos.nextmind.NoSuchScheduledActionsException {
+ return getPersistence()
+ .findByIntPraticaId_First(intPraticaId, orderByComparator);
+ }
+
+ /**
+ * Returns the first scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the first matching scheduled actions, or null
if a matching scheduled actions could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static portos.nextmind.model.ScheduledActions fetchByIntPraticaId_First(
+ long intPraticaId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByIntPraticaId_First(intPraticaId, orderByComparator);
+ }
+
+ /**
+ * Returns the last scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the last matching scheduled actions
+ * @throws portos.nextmind.NoSuchScheduledActionsException if a matching scheduled actions could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static portos.nextmind.model.ScheduledActions findByIntPraticaId_Last(
+ long intPraticaId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ portos.nextmind.NoSuchScheduledActionsException {
+ return getPersistence()
+ .findByIntPraticaId_Last(intPraticaId, orderByComparator);
+ }
+
+ /**
+ * Returns the last scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the last matching scheduled actions, or null
if a matching scheduled actions could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static portos.nextmind.model.ScheduledActions fetchByIntPraticaId_Last(
+ long intPraticaId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence()
+ .fetchByIntPraticaId_Last(intPraticaId, orderByComparator);
+ }
+
+ /**
+ * Returns the scheduled actionses before and after the current scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param shop_id the primary key of the current scheduled actions
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the previous, current, and next scheduled actions
+ * @throws portos.nextmind.NoSuchScheduledActionsException if a scheduled actions with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ public static portos.nextmind.model.ScheduledActions[] findByIntPraticaId_PrevAndNext(
+ long shop_id, long intPraticaId,
+ com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
+ throws com.liferay.portal.kernel.exception.SystemException,
+ portos.nextmind.NoSuchScheduledActionsException {
+ return getPersistence()
+ .findByIntPraticaId_PrevAndNext(shop_id, intPraticaId,
+ orderByComparator);
+ }
+
+ /**
+ * Removes all the scheduled actionses where intPraticaId = ? from the database.
+ *
+ * @param intPraticaId the int pratica ID
+ * @throws SystemException if a system exception occurred
+ */
+ public static void removeByIntPraticaId(long intPraticaId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ getPersistence().removeByIntPraticaId(intPraticaId);
+ }
+
+ /**
+ * Returns the number of scheduled actionses where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @return the number of matching scheduled actionses
+ * @throws SystemException if a system exception occurred
+ */
+ public static int countByIntPraticaId(long intPraticaId)
+ throws com.liferay.portal.kernel.exception.SystemException {
+ return getPersistence().countByIntPraticaId(intPraticaId);
+ }
+
/**
* Caches the scheduled actions in the entity cache if it is enabled.
*
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/ext-spring.xml b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/ext-spring.xml
index 4a72a057..def9f57a 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/ext-spring.xml
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/ext-spring.xml
@@ -2,26 +2,26 @@
-
-
+
-
-
+
-
+
-
-
+
-
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
index d4f46c99..0c9e279a 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
@@ -30,6 +30,7 @@
+
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
index 214f8f0f..fc834093 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
@@ -20,6 +20,7 @@
+
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
index b99d149d..8e7d1faa 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
@@ -56,6 +56,9 @@
+
+
+
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml
index 2493483a..aa77436d 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml
@@ -3,17 +3,17 @@
-
-
+
+
-
-
+
+
-
-
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/integratore/IntegratoreSchedulato.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/integratore/IntegratoreSchedulato.java
index f3f85225..b0555dd5 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/integratore/IntegratoreSchedulato.java
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/integratore/IntegratoreSchedulato.java
@@ -1,24 +1,15 @@
package integratore;
+import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.messaging.Message;
import com.liferay.portal.kernel.messaging.MessageListener;
import com.liferay.portal.kernel.messaging.MessageListenerException;
-import com.liferay.portal.model.Company;
-import com.liferay.portal.model.Role;
-import com.liferay.portal.model.RoleConstants;
-import com.liferay.portal.model.User;
-import com.liferay.portal.security.permission.PermissionChecker;
-import com.liferay.portal.security.permission.PermissionCheckerFactoryUtil;
-import com.liferay.portal.security.permission.PermissionThreadLocal;
-import com.liferay.portal.service.CompanyLocalServiceUtil;
-import com.liferay.portal.service.RoleLocalServiceUtil;
-import com.liferay.portal.service.UserLocalServiceUtil;
-
import java.util.List;
import portos.nextmind.model.ScheduledActions;
+import portos.nextmind.service.ScheduledActionsLocalServiceUtil;
public class IntegratoreSchedulato implements MessageListener {
@@ -40,14 +31,11 @@ public class IntegratoreSchedulato implements MessageListener {
}
public void getPraticaInformation(Message message) throws SystemException, PortalException, Exception {
-
- System.out.println("get information from db and create an obj");
- List listSA = portos.nextmind.service.persistence.ScheduledActionsUtil.findAll(0, 1);
- System.out.println(listSA.toString());
- if (listSA.isEmpty()) {;}
- else {
- System.out.println(listSA.get(0).getRequestAction());
- }
+ System.out.println("get information from db and create an obj");
+ List listSA = ScheduledActionsLocalServiceUtil.findAzioniDaSvolgere(QueryUtil.ALL_POS,QueryUtil.ALL_POS);
+ for (ScheduledActions scheduledActions : listSA) {
+ System.out.println(scheduledActions.getRequestAction());
+ }
}
}
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/HeadSportelloModelImpl.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/HeadSportelloModelImpl.java
index 53a77164..667ba04e 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/HeadSportelloModelImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/HeadSportelloModelImpl.java
@@ -74,9 +74,9 @@ public class HeadSportelloModelImpl extends BaseModelImpl
public static final String TABLE_SQL_DROP = "drop table head_sportello";
public static final String ORDER_BY_JPQL = " ORDER BY headSportello.id ASC";
public static final String ORDER_BY_SQL = " ORDER BY head_sportello.id ASC";
- public static final String DATA_SOURCE = "sue-suap";
- public static final String SESSION_FACTORY = "sue-suapSessionFactory";
- public static final String TX_MANAGER = "sue-suapTransactionManager";
+ public static final String DATA_SOURCE = "suesuapDataSource";
+ public static final String SESSION_FACTORY = "suesuapSessionFactory";
+ public static final String TX_MANAGER = "suesuapTransactionManager";
public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.entity.cache.enabled.portos.nextmind.model.HeadSportello"),
true);
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsCacheModel.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsCacheModel.java
index 6ec14700..cd7e8502 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsCacheModel.java
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsCacheModel.java
@@ -36,7 +36,7 @@ public class ScheduledActionsCacheModel implements CacheModel,
Externalizable {
@Override
public String toString() {
- StringBundler sb = new StringBundler(11);
+ StringBundler sb = new StringBundler(13);
sb.append("{shop_id=");
sb.append(shop_id);
@@ -48,6 +48,8 @@ public class ScheduledActionsCacheModel implements CacheModel,
sb.append(errorLog);
sb.append(", errorFlag=");
sb.append(errorFlag);
+ sb.append(", intPraticaId=");
+ sb.append(intPraticaId);
sb.append("}");
return sb.toString();
@@ -75,6 +77,7 @@ public class ScheduledActionsCacheModel implements CacheModel,
}
scheduledActionsImpl.setErrorFlag(errorFlag);
+ scheduledActionsImpl.setIntPraticaId(intPraticaId);
scheduledActionsImpl.resetOriginalValues();
@@ -88,6 +91,7 @@ public class ScheduledActionsCacheModel implements CacheModel,
headers = objectInput.readUTF();
errorLog = objectInput.readUTF();
errorFlag = objectInput.readBoolean();
+ intPraticaId = objectInput.readLong();
}
@Override
@@ -111,6 +115,7 @@ public class ScheduledActionsCacheModel implements CacheModel,
}
objectOutput.writeBoolean(errorFlag);
+ objectOutput.writeLong(intPraticaId);
}
public long shop_id;
@@ -118,4 +123,5 @@ public class ScheduledActionsCacheModel implements CacheModel,
public String headers;
public String errorLog;
public boolean errorFlag;
+ public long intPraticaId;
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsModelImpl.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsModelImpl.java
index 1dc04e89..a6747986 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsModelImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsModelImpl.java
@@ -62,22 +62,27 @@ public class ScheduledActionsModelImpl extends BaseModelImpl
{ "request_action", Types.INTEGER },
{ "headers", Types.VARCHAR },
{ "error_log", Types.VARCHAR },
- { "error_flag", Types.BOOLEAN }
+ { "error_flag", Types.BOOLEAN },
+ { "int_pratica_id", Types.BIGINT }
};
- public static final String TABLE_SQL_CREATE = "create table scheduled_actions (shop_id LONG not null primary key,request_action INTEGER,headers VARCHAR(75) null,error_log VARCHAR(75) null,error_flag BOOLEAN)";
+ public static final String TABLE_SQL_CREATE = "create table scheduled_actions (shop_id LONG not null primary key,request_action INTEGER,headers VARCHAR(75) null,error_log VARCHAR(75) null,error_flag BOOLEAN,int_pratica_id LONG)";
public static final String TABLE_SQL_DROP = "drop table scheduled_actions";
public static final String ORDER_BY_JPQL = " ORDER BY scheduledActions.shop_id ASC";
public static final String ORDER_BY_SQL = " ORDER BY scheduled_actions.shop_id ASC";
- public static final String DATA_SOURCE = "sue-suap";
- public static final String SESSION_FACTORY = "sue-suapSessionFactory";
- public static final String TX_MANAGER = "sue-suapTransactionManager";
+ public static final String DATA_SOURCE = "suesuapDataSource";
+ public static final String SESSION_FACTORY = "suesuapSessionFactory";
+ public static final String TX_MANAGER = "suesuapTransactionManager";
public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.entity.cache.enabled.portos.nextmind.model.ScheduledActions"),
true);
public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.finder.cache.enabled.portos.nextmind.model.ScheduledActions"),
true);
- public static final boolean COLUMN_BITMASK_ENABLED = false;
+ public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
+ "value.object.column.bitmask.enabled.portos.nextmind.model.ScheduledActions"),
+ true);
+ public static long INTPRATICAID_COLUMN_BITMASK = 1L;
+ public static long SHOP_ID_COLUMN_BITMASK = 2L;
public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get(
"lock.expiration.time.portos.nextmind.model.ScheduledActions"));
@@ -123,6 +128,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl
attributes.put("headers", getHeaders());
attributes.put("errorLog", getErrorLog());
attributes.put("errorFlag", getErrorFlag());
+ attributes.put("intPraticaId", getIntPraticaId());
return attributes;
}
@@ -158,6 +164,12 @@ public class ScheduledActionsModelImpl extends BaseModelImpl
if (errorFlag != null) {
setErrorFlag(errorFlag);
}
+
+ Long intPraticaId = (Long)attributes.get("intPraticaId");
+
+ if (intPraticaId != null) {
+ setIntPraticaId(intPraticaId);
+ }
}
@Override
@@ -225,6 +237,32 @@ public class ScheduledActionsModelImpl extends BaseModelImpl
_errorFlag = errorFlag;
}
+ @Override
+ public long getIntPraticaId() {
+ return _intPraticaId;
+ }
+
+ @Override
+ public void setIntPraticaId(long intPraticaId) {
+ _columnBitmask |= INTPRATICAID_COLUMN_BITMASK;
+
+ if (!_setOriginalIntPraticaId) {
+ _setOriginalIntPraticaId = true;
+
+ _originalIntPraticaId = _intPraticaId;
+ }
+
+ _intPraticaId = intPraticaId;
+ }
+
+ public long getOriginalIntPraticaId() {
+ return _originalIntPraticaId;
+ }
+
+ public long getColumnBitmask() {
+ return _columnBitmask;
+ }
+
@Override
public ExpandoBridge getExpandoBridge() {
return ExpandoBridgeFactoryUtil.getExpandoBridge(0,
@@ -257,6 +295,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl
scheduledActionsImpl.setHeaders(getHeaders());
scheduledActionsImpl.setErrorLog(getErrorLog());
scheduledActionsImpl.setErrorFlag(getErrorFlag());
+ scheduledActionsImpl.setIntPraticaId(getIntPraticaId());
scheduledActionsImpl.resetOriginalValues();
@@ -307,6 +346,13 @@ public class ScheduledActionsModelImpl extends BaseModelImpl
@Override
public void resetOriginalValues() {
+ ScheduledActionsModelImpl scheduledActionsModelImpl = this;
+
+ scheduledActionsModelImpl._originalIntPraticaId = scheduledActionsModelImpl._intPraticaId;
+
+ scheduledActionsModelImpl._setOriginalIntPraticaId = false;
+
+ scheduledActionsModelImpl._columnBitmask = 0;
}
@Override
@@ -335,12 +381,14 @@ public class ScheduledActionsModelImpl extends BaseModelImpl
scheduledActionsCacheModel.errorFlag = getErrorFlag();
+ scheduledActionsCacheModel.intPraticaId = getIntPraticaId();
+
return scheduledActionsCacheModel;
}
@Override
public String toString() {
- StringBundler sb = new StringBundler(11);
+ StringBundler sb = new StringBundler(13);
sb.append("{shop_id=");
sb.append(getShop_id());
@@ -352,6 +400,8 @@ public class ScheduledActionsModelImpl extends BaseModelImpl
sb.append(getErrorLog());
sb.append(", errorFlag=");
sb.append(getErrorFlag());
+ sb.append(", intPraticaId=");
+ sb.append(getIntPraticaId());
sb.append("}");
return sb.toString();
@@ -359,7 +409,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl
@Override
public String toXmlString() {
- StringBundler sb = new StringBundler(19);
+ StringBundler sb = new StringBundler(22);
sb.append("");
sb.append("portos.nextmind.model.ScheduledActions");
@@ -385,6 +435,10 @@ public class ScheduledActionsModelImpl extends BaseModelImpl
"errorFlag");
+ sb.append(
+ "intPraticaId");
sb.append("");
@@ -400,5 +454,9 @@ public class ScheduledActionsModelImpl extends BaseModelImpl
private String _headers;
private String _errorLog;
private boolean _errorFlag;
+ private long _intPraticaId;
+ private long _originalIntPraticaId;
+ private boolean _setOriginalIntPraticaId;
+ private long _columnBitmask;
private ScheduledActions _escapedModel;
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/SportelloModelImpl.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/SportelloModelImpl.java
index 01b22cd9..78bbd815 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/SportelloModelImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/SportelloModelImpl.java
@@ -80,9 +80,9 @@ public class SportelloModelImpl extends BaseModelImpl
public static final String TABLE_SQL_DROP = "drop table sportello";
public static final String ORDER_BY_JPQL = " ORDER BY sportello.id ASC";
public static final String ORDER_BY_SQL = " ORDER BY sportello.id ASC";
- public static final String DATA_SOURCE = "sue-suap";
- public static final String SESSION_FACTORY = "sue-suapSessionFactory";
- public static final String TX_MANAGER = "sue-suapTransactionManager";
+ public static final String DATA_SOURCE = "suesuapDataSource";
+ public static final String SESSION_FACTORY = "suesuapSessionFactory";
+ public static final String TX_MANAGER = "suesuapTransactionManager";
public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.entity.cache.enabled.portos.nextmind.model.Sportello"),
true);
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/base/ScheduledActionsLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/base/ScheduledActionsLocalServiceClpInvoker.java
index 201ab0c5..56bb396f 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/base/ScheduledActionsLocalServiceClpInvoker.java
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/base/ScheduledActionsLocalServiceClpInvoker.java
@@ -113,6 +113,22 @@ public class ScheduledActionsLocalServiceClpInvoker {
_methodName41 = "setBeanIdentifier";
_methodParameterTypes41 = new String[] { "java.lang.String" };
+
+ _methodName46 = "findAll";
+
+ _methodParameterTypes46 = new String[] { "int", "int" };
+
+ _methodName47 = "findByIntPraticaId";
+
+ _methodParameterTypes47 = new String[] { "long" };
+
+ _methodName48 = "findByIntPraticaId";
+
+ _methodParameterTypes48 = new String[] { "long", "int", "int" };
+
+ _methodName49 = "findAzioniDaSvolgere";
+
+ _methodParameterTypes49 = new String[] { "int", "int" };
}
public Object invokeMethod(String name, String[] parameterTypes,
@@ -216,6 +232,30 @@ public class ScheduledActionsLocalServiceClpInvoker {
return null;
}
+ if (_methodName46.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes46, parameterTypes)) {
+ return ScheduledActionsLocalServiceUtil.findAll(((Integer)arguments[0]).intValue(),
+ ((Integer)arguments[1]).intValue());
+ }
+
+ if (_methodName47.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes47, parameterTypes)) {
+ return ScheduledActionsLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue());
+ }
+
+ if (_methodName48.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes48, parameterTypes)) {
+ return ScheduledActionsLocalServiceUtil.findByIntPraticaId(((Long)arguments[0]).longValue(),
+ ((Integer)arguments[1]).intValue(),
+ ((Integer)arguments[2]).intValue());
+ }
+
+ if (_methodName49.equals(name) &&
+ Arrays.deepEquals(_methodParameterTypes49, parameterTypes)) {
+ return ScheduledActionsLocalServiceUtil.findAzioniDaSvolgere(((Integer)arguments[0]).intValue(),
+ ((Integer)arguments[1]).intValue());
+ }
+
throw new UnsupportedOperationException();
}
@@ -255,4 +295,12 @@ public class ScheduledActionsLocalServiceClpInvoker {
private String[] _methodParameterTypes40;
private String _methodName41;
private String[] _methodParameterTypes41;
+ private String _methodName46;
+ private String[] _methodParameterTypes46;
+ private String _methodName47;
+ private String[] _methodParameterTypes47;
+ private String _methodName48;
+ private String[] _methodParameterTypes48;
+ private String _methodName49;
+ private String[] _methodParameterTypes49;
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/impl/ScheduledActionsLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/impl/ScheduledActionsLocalServiceImpl.java
index 8b0ef644..aa453107 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/impl/ScheduledActionsLocalServiceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/impl/ScheduledActionsLocalServiceImpl.java
@@ -14,6 +14,13 @@
package portos.nextmind.service.impl;
+import com.liferay.portal.kernel.dao.orm.DynamicQuery;
+import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
+import com.liferay.portal.kernel.exception.SystemException;
+
+import java.util.List;
+
+import portos.nextmind.model.ScheduledActions;
import portos.nextmind.service.base.ScheduledActionsLocalServiceBaseImpl;
/**
@@ -37,4 +44,25 @@ public class ScheduledActionsLocalServiceImpl
*
* Never reference this interface directly. Always use {@link portos.nextmind.service.ScheduledActionsLocalServiceUtil} to access the scheduled actions local service.
*/
+
+ public List findAll(int start, int end) throws SystemException{
+ return scheduledActionsPersistence.findAll(start, end);
+
+ }
+
+ public List findByIntPraticaId(long intPraticaId) throws SystemException{
+ return scheduledActionsPersistence.findByIntPraticaId(intPraticaId);
+ }
+
+ public List findByIntPraticaId(long intPraticaId, int start, int end) throws SystemException{
+ return scheduledActionsPersistence.findByIntPraticaId(intPraticaId,start,end);
+ }
+
+ @SuppressWarnings("unchecked")
+ public List findAzioniDaSvolgere(int start, int end) throws SystemException{
+ DynamicQuery dq = scheduledActionsLocalService.dynamicQuery();
+ dq.add(RestrictionsFactoryUtil.eq("intPraticaId", 0));
+ return (List)scheduledActionsLocalService.dynamicQuery(dq,start,end);
+ }
+
}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/ScheduledActionsPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/ScheduledActionsPersistenceImpl.java
index d33378f1..6ae3173f 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/ScheduledActionsPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/ScheduledActionsPersistenceImpl.java
@@ -19,6 +19,7 @@ import com.liferay.portal.kernel.dao.orm.EntityCacheUtil;
import com.liferay.portal.kernel.dao.orm.FinderCacheUtil;
import com.liferay.portal.kernel.dao.orm.FinderPath;
import com.liferay.portal.kernel.dao.orm.Query;
+import com.liferay.portal.kernel.dao.orm.QueryPos;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.dao.orm.Session;
import com.liferay.portal.kernel.exception.SystemException;
@@ -31,6 +32,7 @@ import com.liferay.portal.kernel.util.PropsKeys;
import com.liferay.portal.kernel.util.PropsUtil;
import com.liferay.portal.kernel.util.SetUtil;
import com.liferay.portal.kernel.util.StringBundler;
+import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.StringUtil;
import com.liferay.portal.kernel.util.UnmodifiableList;
import com.liferay.portal.model.CacheModel;
@@ -85,6 +87,506 @@ public class ScheduledActionsPersistenceImpl extends BasePersistenceImpl findByIntPraticaId(long intPraticaId)
+ throws SystemException {
+ return findByIntPraticaId(intPraticaId, QueryUtil.ALL_POS,
+ QueryUtil.ALL_POS, null);
+ }
+
+ /**
+ * Returns a range of all the scheduled actionses where intPraticaId = ?.
+ *
+ *
+ * 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 portos.nextmind.model.impl.ScheduledActionsModelImpl}. 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 intPraticaId the int pratica ID
+ * @param start the lower bound of the range of scheduled actionses
+ * @param end the upper bound of the range of scheduled actionses (not inclusive)
+ * @return the range of matching scheduled actionses
+ * @throws SystemException if a system exception occurred
+ */
+ @Override
+ public List findByIntPraticaId(long intPraticaId,
+ int start, int end) throws SystemException {
+ return findByIntPraticaId(intPraticaId, start, end, null);
+ }
+
+ /**
+ * Returns an ordered range of all the scheduled actionses where intPraticaId = ?.
+ *
+ *
+ * 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 portos.nextmind.model.impl.ScheduledActionsModelImpl}. 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 intPraticaId the int pratica ID
+ * @param start the lower bound of the range of scheduled actionses
+ * @param end the upper bound of the range of scheduled actionses (not inclusive)
+ * @param orderByComparator the comparator to order the results by (optionally null
)
+ * @return the ordered range of matching scheduled actionses
+ * @throws SystemException if a system exception occurred
+ */
+ @Override
+ public List findByIntPraticaId(long intPraticaId,
+ int start, int end, OrderByComparator orderByComparator)
+ throws SystemException {
+ boolean pagination = true;
+ FinderPath finderPath = null;
+ Object[] finderArgs = null;
+
+ if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&
+ (orderByComparator == null)) {
+ pagination = false;
+ finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICAID;
+ finderArgs = new Object[] { intPraticaId };
+ }
+ else {
+ finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICAID;
+ finderArgs = new Object[] {
+ intPraticaId,
+
+ start, end, orderByComparator
+ };
+ }
+
+ List list = (List)FinderCacheUtil.getResult(finderPath,
+ finderArgs, this);
+
+ if ((list != null) && !list.isEmpty()) {
+ for (ScheduledActions scheduledActions : list) {
+ if ((intPraticaId != scheduledActions.getIntPraticaId())) {
+ list = null;
+
+ break;
+ }
+ }
+ }
+
+ if (list == null) {
+ StringBundler query = null;
+
+ if (orderByComparator != null) {
+ query = new StringBundler(3 +
+ (orderByComparator.getOrderByFields().length * 3));
+ }
+ else {
+ query = new StringBundler(3);
+ }
+
+ query.append(_SQL_SELECT_SCHEDULEDACTIONS_WHERE);
+
+ query.append(_FINDER_COLUMN_INTPRATICAID_INTPRATICAID_2);
+
+ if (orderByComparator != null) {
+ appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS,
+ orderByComparator);
+ }
+ else
+ if (pagination) {
+ query.append(ScheduledActionsModelImpl.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(intPraticaId);
+
+ 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 scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the first matching scheduled actions
+ * @throws portos.nextmind.NoSuchScheduledActionsException if a matching scheduled actions could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ @Override
+ public ScheduledActions findByIntPraticaId_First(long intPraticaId,
+ OrderByComparator orderByComparator)
+ throws NoSuchScheduledActionsException, SystemException {
+ ScheduledActions scheduledActions = fetchByIntPraticaId_First(intPraticaId,
+ orderByComparator);
+
+ if (scheduledActions != null) {
+ return scheduledActions;
+ }
+
+ StringBundler msg = new StringBundler(4);
+
+ msg.append(_NO_SUCH_ENTITY_WITH_KEY);
+
+ msg.append("intPraticaId=");
+ msg.append(intPraticaId);
+
+ msg.append(StringPool.CLOSE_CURLY_BRACE);
+
+ throw new NoSuchScheduledActionsException(msg.toString());
+ }
+
+ /**
+ * Returns the first scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the first matching scheduled actions, or null
if a matching scheduled actions could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ @Override
+ public ScheduledActions fetchByIntPraticaId_First(long intPraticaId,
+ OrderByComparator orderByComparator) throws SystemException {
+ List list = findByIntPraticaId(intPraticaId, 0, 1,
+ orderByComparator);
+
+ if (!list.isEmpty()) {
+ return list.get(0);
+ }
+
+ return null;
+ }
+
+ /**
+ * Returns the last scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the last matching scheduled actions
+ * @throws portos.nextmind.NoSuchScheduledActionsException if a matching scheduled actions could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ @Override
+ public ScheduledActions findByIntPraticaId_Last(long intPraticaId,
+ OrderByComparator orderByComparator)
+ throws NoSuchScheduledActionsException, SystemException {
+ ScheduledActions scheduledActions = fetchByIntPraticaId_Last(intPraticaId,
+ orderByComparator);
+
+ if (scheduledActions != null) {
+ return scheduledActions;
+ }
+
+ StringBundler msg = new StringBundler(4);
+
+ msg.append(_NO_SUCH_ENTITY_WITH_KEY);
+
+ msg.append("intPraticaId=");
+ msg.append(intPraticaId);
+
+ msg.append(StringPool.CLOSE_CURLY_BRACE);
+
+ throw new NoSuchScheduledActionsException(msg.toString());
+ }
+
+ /**
+ * Returns the last scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the last matching scheduled actions, or null
if a matching scheduled actions could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ @Override
+ public ScheduledActions fetchByIntPraticaId_Last(long intPraticaId,
+ OrderByComparator orderByComparator) throws SystemException {
+ int count = countByIntPraticaId(intPraticaId);
+
+ if (count == 0) {
+ return null;
+ }
+
+ List list = findByIntPraticaId(intPraticaId,
+ count - 1, count, orderByComparator);
+
+ if (!list.isEmpty()) {
+ return list.get(0);
+ }
+
+ return null;
+ }
+
+ /**
+ * Returns the scheduled actionses before and after the current scheduled actions in the ordered set where intPraticaId = ?.
+ *
+ * @param shop_id the primary key of the current scheduled actions
+ * @param intPraticaId the int pratica ID
+ * @param orderByComparator the comparator to order the set by (optionally null
)
+ * @return the previous, current, and next scheduled actions
+ * @throws portos.nextmind.NoSuchScheduledActionsException if a scheduled actions with the primary key could not be found
+ * @throws SystemException if a system exception occurred
+ */
+ @Override
+ public ScheduledActions[] findByIntPraticaId_PrevAndNext(long shop_id,
+ long intPraticaId, OrderByComparator orderByComparator)
+ throws NoSuchScheduledActionsException, SystemException {
+ ScheduledActions scheduledActions = findByPrimaryKey(shop_id);
+
+ Session session = null;
+
+ try {
+ session = openSession();
+
+ ScheduledActions[] array = new ScheduledActionsImpl[3];
+
+ array[0] = getByIntPraticaId_PrevAndNext(session, scheduledActions,
+ intPraticaId, orderByComparator, true);
+
+ array[1] = scheduledActions;
+
+ array[2] = getByIntPraticaId_PrevAndNext(session, scheduledActions,
+ intPraticaId, orderByComparator, false);
+
+ return array;
+ }
+ catch (Exception e) {
+ throw processException(e);
+ }
+ finally {
+ closeSession(session);
+ }
+ }
+
+ protected ScheduledActions getByIntPraticaId_PrevAndNext(Session session,
+ ScheduledActions scheduledActions, long intPraticaId,
+ 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_SCHEDULEDACTIONS_WHERE);
+
+ query.append(_FINDER_COLUMN_INTPRATICAID_INTPRATICAID_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(ScheduledActionsModelImpl.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(intPraticaId);
+
+ if (orderByComparator != null) {
+ Object[] values = orderByComparator.getOrderByConditionValues(scheduledActions);
+
+ for (Object value : values) {
+ qPos.add(value);
+ }
+ }
+
+ List list = q.list();
+
+ if (list.size() == 2) {
+ return list.get(1);
+ }
+ else {
+ return null;
+ }
+ }
+
+ /**
+ * Removes all the scheduled actionses where intPraticaId = ? from the database.
+ *
+ * @param intPraticaId the int pratica ID
+ * @throws SystemException if a system exception occurred
+ */
+ @Override
+ public void removeByIntPraticaId(long intPraticaId)
+ throws SystemException {
+ for (ScheduledActions scheduledActions : findByIntPraticaId(
+ intPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
+ remove(scheduledActions);
+ }
+ }
+
+ /**
+ * Returns the number of scheduled actionses where intPraticaId = ?.
+ *
+ * @param intPraticaId the int pratica ID
+ * @return the number of matching scheduled actionses
+ * @throws SystemException if a system exception occurred
+ */
+ @Override
+ public int countByIntPraticaId(long intPraticaId) throws SystemException {
+ FinderPath finderPath = FINDER_PATH_COUNT_BY_INTPRATICAID;
+
+ Object[] finderArgs = new Object[] { intPraticaId };
+
+ Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,
+ this);
+
+ if (count == null) {
+ StringBundler query = new StringBundler(2);
+
+ query.append(_SQL_COUNT_SCHEDULEDACTIONS_WHERE);
+
+ query.append(_FINDER_COLUMN_INTPRATICAID_INTPRATICAID_2);
+
+ String sql = query.toString();
+
+ Session session = null;
+
+ try {
+ session = openSession();
+
+ Query q = session.createQuery(sql);
+
+ QueryPos qPos = QueryPos.getInstance(q);
+
+ qPos.add(intPraticaId);
+
+ 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();
+ }
+
+ private static final String _FINDER_COLUMN_INTPRATICAID_INTPRATICAID_2 = "scheduledActions.intPraticaId = ?";
public ScheduledActionsPersistenceImpl() {
setModelClass(ScheduledActions.class);
@@ -283,6 +785,8 @@ public class ScheduledActionsPersistenceImpl extends BasePersistenceImpl _badColumnNames = SetUtil.fromArray(new String[] {
- "requestAction", "errorLog", "errorFlag"
+ "requestAction", "errorLog", "errorFlag", "intPraticaId"
});
private static ScheduledActions _nullScheduledActions = new ScheduledActionsImpl() {
@Override
diff --git a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/service.properties
index 45ce947d..64d77ccc 100644
--- a/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/service.properties
+++ b/liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/service.properties
@@ -12,9 +12,9 @@
## Build
##
- build.namespace=portos
- build.number=9
- build.date=1683100407625
+ build.namespace=portos_ss
+ build.number=23
+ build.date=1683108076366
build.auto.upgrade=true
##