Sfoglia il codice sorgente

integrate finder

feature/kafka-integrator
E-A 1 anno fa
parent
commit
690cc92ce4
  1. 5
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.classpath
  2. 12
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.project
  3. 1
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.tern-project
  4. 1
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/.gitignore
  5. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/commons-logging.jar
  6. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-api.jar
  7. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-impl.jar
  8. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/log4j.jar
  9. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/schedulatore-portos-pratiche-portlet-service.jar
  10. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-bridges.jar
  11. BIN
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-taglib.jar
  12. 27
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service.xml
  13. 42
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsClp.java
  14. 14
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsModel.java
  15. 10
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsSoap.java
  16. 27
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsWrapper.java
  17. 16
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalService.java
  18. 141
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceClp.java
  19. 24
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceUtil.java
  20. 29
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceWrapper.java
  21. 138
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsPersistence.java
  22. 166
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsUtil.java
  23. 16
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/ext-spring.xml
  24. 1
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
  25. 1
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
  26. 3
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
  27. 12
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml
  28. 22
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/integratore/IntegratoreSchedulato.java
  29. 6
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/HeadSportelloModelImpl.java
  30. 8
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsCacheModel.java
  31. 74
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/ScheduledActionsModelImpl.java
  32. 6
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/model/impl/SportelloModelImpl.java
  33. 48
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/base/ScheduledActionsLocalServiceClpInvoker.java
  34. 28
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/impl/ScheduledActionsLocalServiceImpl.java
  35. 533
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/portos/nextmind/service/persistence/ScheduledActionsPersistenceImpl.java
  36. 6
      liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/service.properties

5
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.classpath

@ -18,10 +18,5 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/> <attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=schedulatore-portos-pratiche-portlet&amp;ivyXmlPath=ivy.xml&amp;confs=*&amp;ivySettingsPath=%24%7Bliferay_sdk_dir%3Aschedulatore-portos-pratiche-portlet%7D%2Fivy-settings.xml&amp;loadSettingsOnDemand=false&amp;ivyUserDir=%24%7Bliferay_sdk_dir%3Aschedulatore-portos-pratiche-portlet%7D%2F.ivy&amp;propertyFiles=">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/> <classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath> </classpath>

12
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.project

@ -31,18 +31,6 @@
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.apache.ivyde.eclipse.ivynature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures> </natures>
<filteredResources>
<filter>
<id>1683013922482</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription> </projectDescription>

1
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/.tern-project

@ -1 +0,0 @@
{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]}

1
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/.gitignore vendored

@ -1 +1,2 @@
/classes/ /classes/
/service-classes/

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/commons-logging.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-api.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/jstl-impl.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/log4j.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/schedulatore-portos-pratiche-portlet-service.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-bridges.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/lib/util-taglib.jar

File binario non mostrato.

27
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service.xml

@ -2,11 +2,11 @@
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.2.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_2_0.dtd"> <!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.2.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_2_0.dtd">
<service-builder package-path="portos.nextmind"> <service-builder package-path="portos.nextmind">
<author>ebusu</author> <author>ebusu</author>
<namespace>portos</namespace> <namespace>portos_ss</namespace>
<entity name="Sportello" table="sportello" <entity name="Sportello" table="sportello"
data-source="sue-suapDataSource" local-service="true" remote-service="false" data-source="suesuapDataSource" local-service="true" remote-service="false"
session-factory="sue-suapSessionFactory" session-factory="suesuapSessionFactory"
tx-manager="sue-suapTransactionManager"> tx-manager="suesuapTransactionManager">
<column name="id" primary="true" type="long" db-name="id" /> <column name="id" primary="true" type="long" db-name="id" />
<column name="application" type="String" db-name="application"/> <column name="application" type="String" db-name="application"/>
<column name="clientId" type="String" db-name="client_id" /> <column name="clientId" type="String" db-name="client_id" />
@ -23,11 +23,13 @@
<column name="creationDate" type="Date" db-name="creation_date" /> <column name="creationDate" type="Date" db-name="creation_date" />
<column name="lastUpdateDate" type="Date" db-name="last_update_date" /> <column name="lastUpdateDate" type="Date" db-name="last_update_date" />
<column name="sentToPortosDate" type="Date" db-name="sent_to_portos_date" /> <column name="sentToPortosDate" type="Date" db-name="sent_to_portos_date" />
</entity> </entity>
<entity name="HeadSportello" table="head_sportello" <entity name="HeadSportello" table="head_sportello"
data-source="sue-suapDataSource" local-service="true" remote-service="false" data-source="suesuapDataSource" local-service="true" remote-service="false"
session-factory="sue-suapSessionFactory" session-factory="suesuapSessionFactory"
tx-manager="sue-suapTransactionManager"> tx-manager="suesuapTransactionManager">
<column name="id" primary="true" type="long" db-name="id" /> <column name="id" primary="true" type="long" db-name="id" />
<column name="requestAction" type="String" db-name="wios_requestAction"></column> <column name="requestAction" type="String" db-name="wios_requestAction"></column>
<column name="sender" type="String" db-name="wios_sender"></column> <column name="sender" type="String" db-name="wios_sender"></column>
@ -41,14 +43,19 @@
<column name="sportello_id" type="long" db-name="sportello_id"></column> <column name="sportello_id" type="long" db-name="sportello_id"></column>
</entity> </entity>
<entity name="ScheduledActions" table="scheduled_actions" <entity name="ScheduledActions" table="scheduled_actions"
data-source="sue-suapDataSource" local-service="true" remote-service="false" data-source="suesuapDataSource" local-service="true" remote-service="false"
session-factory="sue-suapSessionFactory" session-factory="suesuapSessionFactory"
tx-manager="sue-suapTransactionManager"> tx-manager="suesuapTransactionManager">
<column name="shop_id" primary="true" type="long" db-name="shop_id" /> <column name="shop_id" primary="true" type="long" db-name="shop_id" />
<column name="requestAction" type="int" db-name="request_action"></column> <column name="requestAction" type="int" db-name="request_action"></column>
<column name="headers" type="String" db-name="headers"></column> <column name="headers" type="String" db-name="headers"></column>
<column name="errorLog" type="String" db-name="error_log"></column> <column name="errorLog" type="String" db-name="error_log"></column>
<column name="errorFlag" type="boolean" db-name="error_flag"></column> <column name="errorFlag" type="boolean" db-name="error_flag"></column>
<column name="intPraticaId" type="long" db-name="int_pratica_id" />
<finder return-type="Collection" name="IntPraticaId">
<finder-column name="intPraticaId" />
</finder>
</entity> </entity>
</service-builder> </service-builder>

42
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsClp.java

@ -78,6 +78,7 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
attributes.put("headers", getHeaders()); attributes.put("headers", getHeaders());
attributes.put("errorLog", getErrorLog()); attributes.put("errorLog", getErrorLog());
attributes.put("errorFlag", getErrorFlag()); attributes.put("errorFlag", getErrorFlag());
attributes.put("intPraticaId", getIntPraticaId());
return attributes; return attributes;
} }
@ -113,6 +114,12 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
if (errorFlag != null) { if (errorFlag != null) {
setErrorFlag(errorFlag); setErrorFlag(errorFlag);
} }
Long intPraticaId = (Long)attributes.get("intPraticaId");
if (intPraticaId != null) {
setIntPraticaId(intPraticaId);
}
} }
@Override @Override
@ -235,6 +242,29 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
} }
} }
@Override
public long getIntPraticaId() {
return _intPraticaId;
}
@Override
public void setIntPraticaId(long intPraticaId) {
_intPraticaId = intPraticaId;
if (_scheduledActionsRemoteModel != null) {
try {
Class<?> clazz = _scheduledActionsRemoteModel.getClass();
Method method = clazz.getMethod("setIntPraticaId", long.class);
method.invoke(_scheduledActionsRemoteModel, intPraticaId);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
public BaseModel<?> getScheduledActionsRemoteModel() { public BaseModel<?> getScheduledActionsRemoteModel() {
return _scheduledActionsRemoteModel; return _scheduledActionsRemoteModel;
} }
@ -311,6 +341,7 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
clone.setHeaders(getHeaders()); clone.setHeaders(getHeaders());
clone.setErrorLog(getErrorLog()); clone.setErrorLog(getErrorLog());
clone.setErrorFlag(getErrorFlag()); clone.setErrorFlag(getErrorFlag());
clone.setIntPraticaId(getIntPraticaId());
return clone; return clone;
} }
@ -363,7 +394,7 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(11); StringBundler sb = new StringBundler(13);
sb.append("{shop_id="); sb.append("{shop_id=");
sb.append(getShop_id()); sb.append(getShop_id());
@ -375,6 +406,8 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
sb.append(getErrorLog()); sb.append(getErrorLog());
sb.append(", errorFlag="); sb.append(", errorFlag=");
sb.append(getErrorFlag()); sb.append(getErrorFlag());
sb.append(", intPraticaId=");
sb.append(getIntPraticaId());
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -382,7 +415,7 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
@Override @Override
public String toXmlString() { public String toXmlString() {
StringBundler sb = new StringBundler(19); StringBundler sb = new StringBundler(22);
sb.append("<model><model-name>"); sb.append("<model><model-name>");
sb.append("portos.nextmind.model.ScheduledActions"); sb.append("portos.nextmind.model.ScheduledActions");
@ -408,6 +441,10 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
"<column><column-name>errorFlag</column-name><column-value><![CDATA["); "<column><column-name>errorFlag</column-name><column-value><![CDATA[");
sb.append(getErrorFlag()); sb.append(getErrorFlag());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>intPraticaId</column-name><column-value><![CDATA[");
sb.append(getIntPraticaId());
sb.append("]]></column-value></column>");
sb.append("</model>"); sb.append("</model>");
@ -419,6 +456,7 @@ public class ScheduledActionsClp extends BaseModelImpl<ScheduledActions>
private String _headers; private String _headers;
private String _errorLog; private String _errorLog;
private boolean _errorFlag; private boolean _errorFlag;
private long _intPraticaId;
private BaseModel<?> _scheduledActionsRemoteModel; private BaseModel<?> _scheduledActionsRemoteModel;
private Class<?> _clpSerializerClass = portos.nextmind.service.ClpSerializer.class; private Class<?> _clpSerializerClass = portos.nextmind.service.ClpSerializer.class;
} }

14
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsModel.java

@ -136,6 +136,20 @@ public interface ScheduledActionsModel extends BaseModel<ScheduledActions> {
*/ */
public void setErrorFlag(boolean errorFlag); public void setErrorFlag(boolean errorFlag);
/**
* Returns the int pratica ID of this scheduled actions.
*
* @return the int pratica ID of this scheduled actions
*/
public long getIntPraticaId();
/**
* Sets the int pratica ID of this scheduled actions.
*
* @param intPraticaId the int pratica ID of this scheduled actions
*/
public void setIntPraticaId(long intPraticaId);
@Override @Override
public boolean isNew(); public boolean isNew();

10
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsSoap.java

@ -34,6 +34,7 @@ public class ScheduledActionsSoap implements Serializable {
soapModel.setHeaders(model.getHeaders()); soapModel.setHeaders(model.getHeaders());
soapModel.setErrorLog(model.getErrorLog()); soapModel.setErrorLog(model.getErrorLog());
soapModel.setErrorFlag(model.getErrorFlag()); soapModel.setErrorFlag(model.getErrorFlag());
soapModel.setIntPraticaId(model.getIntPraticaId());
return soapModel; return soapModel;
} }
@ -132,9 +133,18 @@ public class ScheduledActionsSoap implements Serializable {
_errorFlag = errorFlag; _errorFlag = errorFlag;
} }
public long getIntPraticaId() {
return _intPraticaId;
}
public void setIntPraticaId(long intPraticaId) {
_intPraticaId = intPraticaId;
}
private long _shop_id; private long _shop_id;
private int _requestAction; private int _requestAction;
private String _headers; private String _headers;
private String _errorLog; private String _errorLog;
private boolean _errorFlag; private boolean _errorFlag;
private long _intPraticaId;
} }

27
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/model/ScheduledActionsWrapper.java

@ -54,6 +54,7 @@ public class ScheduledActionsWrapper implements ScheduledActions,
attributes.put("headers", getHeaders()); attributes.put("headers", getHeaders());
attributes.put("errorLog", getErrorLog()); attributes.put("errorLog", getErrorLog());
attributes.put("errorFlag", getErrorFlag()); attributes.put("errorFlag", getErrorFlag());
attributes.put("intPraticaId", getIntPraticaId());
return attributes; return attributes;
} }
@ -89,6 +90,12 @@ public class ScheduledActionsWrapper implements ScheduledActions,
if (errorFlag != null) { if (errorFlag != null) {
setErrorFlag(errorFlag); setErrorFlag(errorFlag);
} }
Long intPraticaId = (Long)attributes.get("intPraticaId");
if (intPraticaId != null) {
setIntPraticaId(intPraticaId);
}
} }
/** /**
@ -221,6 +228,26 @@ public class ScheduledActionsWrapper implements ScheduledActions,
_scheduledActions.setErrorFlag(errorFlag); _scheduledActions.setErrorFlag(errorFlag);
} }
/**
* Returns the int pratica ID of this scheduled actions.
*
* @return the int pratica ID of this scheduled actions
*/
@Override
public long getIntPraticaId() {
return _scheduledActions.getIntPraticaId();
}
/**
* Sets the int pratica ID of this scheduled actions.
*
* @param intPraticaId the int pratica ID of this scheduled actions
*/
@Override
public void setIntPraticaId(long intPraticaId) {
_scheduledActions.setIntPraticaId(intPraticaId);
}
@Override @Override
public boolean isNew() { public boolean isNew() {
return _scheduledActions.isNew(); return _scheduledActions.isNew();

16
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalService.java

@ -253,4 +253,20 @@ public interface ScheduledActionsLocalService extends BaseLocalService,
public java.lang.Object invokeMethod(java.lang.String name, public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments) java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable; throws java.lang.Throwable;
public java.util.List<portos.nextmind.model.ScheduledActions> findAll(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<portos.nextmind.model.ScheduledActions> findByIntPraticaId(
long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<portos.nextmind.model.ScheduledActions> findByIntPraticaId(
long intPraticaId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<portos.nextmind.model.ScheduledActions> findAzioniDaSvolgere(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
} }

141
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceClp.java

@ -115,6 +115,22 @@ public class ScheduledActionsLocalServiceClp
_methodName17 = "setBeanIdentifier"; _methodName17 = "setBeanIdentifier";
_methodParameterTypes17 = new String[] { "java.lang.String" }; _methodParameterTypes17 = new String[] { "java.lang.String" };
_methodName19 = "findAll";
_methodParameterTypes19 = new String[] { "int", "int" };
_methodName20 = "findByIntPraticaId";
_methodParameterTypes20 = new String[] { "long" };
_methodName21 = "findByIntPraticaId";
_methodParameterTypes21 = new String[] { "long", "int", "int" };
_methodName22 = "findAzioniDaSvolgere";
_methodParameterTypes22 = new String[] { "int", "int" };
} }
@Override @Override
@ -670,6 +686,123 @@ public class ScheduledActionsLocalServiceClp
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
@Override
public java.util.List<portos.nextmind.model.ScheduledActions> findAll(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName19,
_methodParameterTypes19, new Object[] { 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<portos.nextmind.model.ScheduledActions>)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<portos.nextmind.model.ScheduledActions> findByIntPraticaId(
long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName20,
_methodParameterTypes20, new Object[] { intPraticaId });
}
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<portos.nextmind.model.ScheduledActions>)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<portos.nextmind.model.ScheduledActions> findByIntPraticaId(
long intPraticaId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName21,
_methodParameterTypes21,
new Object[] { intPraticaId, 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<portos.nextmind.model.ScheduledActions>)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<portos.nextmind.model.ScheduledActions> findAzioniDaSvolgere(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName22,
_methodParameterTypes22, new Object[] { 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<portos.nextmind.model.ScheduledActions>)ClpSerializer.translateOutput(returnObj);
}
private InvokableLocalService _invokableLocalService; private InvokableLocalService _invokableLocalService;
private String _methodName0; private String _methodName0;
private String[] _methodParameterTypes0; private String[] _methodParameterTypes0;
@ -707,4 +840,12 @@ public class ScheduledActionsLocalServiceClp
private String[] _methodParameterTypes16; private String[] _methodParameterTypes16;
private String _methodName17; private String _methodName17;
private String[] _methodParameterTypes17; private String[] _methodParameterTypes17;
private String _methodName19;
private String[] _methodParameterTypes19;
private String _methodName20;
private String[] _methodParameterTypes20;
private String _methodName21;
private String[] _methodParameterTypes21;
private String _methodName22;
private String[] _methodParameterTypes22;
} }

24
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceUtil.java

@ -275,6 +275,30 @@ public class ScheduledActionsLocalServiceUtil {
return getService().invokeMethod(name, parameterTypes, arguments); return getService().invokeMethod(name, parameterTypes, arguments);
} }
public static java.util.List<portos.nextmind.model.ScheduledActions> findAll(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().findAll(start, end);
}
public static java.util.List<portos.nextmind.model.ScheduledActions> findByIntPraticaId(
long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().findByIntPraticaId(intPraticaId);
}
public static java.util.List<portos.nextmind.model.ScheduledActions> findByIntPraticaId(
long intPraticaId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().findByIntPraticaId(intPraticaId, start, end);
}
public static java.util.List<portos.nextmind.model.ScheduledActions> findAzioniDaSvolgere(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().findAzioniDaSvolgere(start, end);
}
public static void clearService() { public static void clearService() {
_service = null; _service = null;
} }

29
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/ScheduledActionsLocalServiceWrapper.java

@ -289,6 +289,35 @@ public class ScheduledActionsLocalServiceWrapper
arguments); arguments);
} }
@Override
public java.util.List<portos.nextmind.model.ScheduledActions> findAll(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return _scheduledActionsLocalService.findAll(start, end);
}
@Override
public java.util.List<portos.nextmind.model.ScheduledActions> findByIntPraticaId(
long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException {
return _scheduledActionsLocalService.findByIntPraticaId(intPraticaId);
}
@Override
public java.util.List<portos.nextmind.model.ScheduledActions> findByIntPraticaId(
long intPraticaId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return _scheduledActionsLocalService.findByIntPraticaId(intPraticaId,
start, end);
}
@Override
public java.util.List<portos.nextmind.model.ScheduledActions> findAzioniDaSvolgere(
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return _scheduledActionsLocalService.findAzioniDaSvolgere(start, end);
}
/** /**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService} * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
*/ */

138
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/service/portos/nextmind/service/persistence/ScheduledActionsPersistence.java

@ -37,6 +37,144 @@ public interface ScheduledActionsPersistence extends BasePersistence<ScheduledAc
* Never modify or reference this interface directly. Always use {@link ScheduledActionsUtil} to access the scheduled actions persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. * Never modify or reference this interface directly. Always use {@link ScheduledActionsUtil} to access the scheduled actions persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
*/ */
/**
* Returns all the scheduled actionses where intPraticaId = &#63;.
*
* @param intPraticaId the int pratica ID
* @return the matching scheduled actionses
* @throws SystemException if a system exception occurred
*/
public java.util.List<portos.nextmind.model.ScheduledActions> findByIntPraticaId(
long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the scheduled actionses where intPraticaId = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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<portos.nextmind.model.ScheduledActions> 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 = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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 <code>null</code>)
* @return the ordered range of matching scheduled actionses
* @throws SystemException if a system exception occurred
*/
public java.util.List<portos.nextmind.model.ScheduledActions> 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 = &#63;.
*
* @param intPraticaId the int pratica ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @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 = &#63;.
*
* @param intPraticaId the int pratica ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching scheduled actions, or <code>null</code> 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 = &#63;.
*
* @param intPraticaId the int pratica ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @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 = &#63;.
*
* @param intPraticaId the int pratica ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching scheduled actions, or <code>null</code> 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 = &#63;.
*
* @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 <code>null</code>)
* @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 = &#63; 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 = &#63;.
*
* @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. * Caches the scheduled actions in the entity cache if it is enabled.
* *

166
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); return getPersistence().update(scheduledActions, serviceContext);
} }
/**
* Returns all the scheduled actionses where intPraticaId = &#63;.
*
* @param intPraticaId the int pratica ID
* @return the matching scheduled actionses
* @throws SystemException if a system exception occurred
*/
public static java.util.List<portos.nextmind.model.ScheduledActions> findByIntPraticaId(
long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().findByIntPraticaId(intPraticaId);
}
/**
* Returns a range of all the scheduled actionses where intPraticaId = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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<portos.nextmind.model.ScheduledActions> 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 = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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 <code>null</code>)
* @return the ordered range of matching scheduled actionses
* @throws SystemException if a system exception occurred
*/
public static java.util.List<portos.nextmind.model.ScheduledActions> 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 = &#63;.
*
* @param intPraticaId the int pratica ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @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 = &#63;.
*
* @param intPraticaId the int pratica ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching scheduled actions, or <code>null</code> 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 = &#63;.
*
* @param intPraticaId the int pratica ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @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 = &#63;.
*
* @param intPraticaId the int pratica ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching scheduled actions, or <code>null</code> 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 = &#63;.
*
* @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 <code>null</code>)
* @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 = &#63; 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 = &#63;.
*
* @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. * Caches the scheduled actions in the entity cache if it is enabled.
* *

16
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/ext-spring.xml

@ -2,26 +2,26 @@
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans> <beans>
<bean id="sue-suapHibernateSessionFactory" <bean id="suesuapHibernateSessionFactory"
class="com.liferay.portal.spring.hibernate.PortletHibernateConfiguration" class="com.liferay.portal.spring.hibernate.PortletHibernateConfiguration"
lazy-init="true"> lazy-init="true">
<property name="dataSource" ref="sue-suapDataSource" /> <property name="dataSource" ref="suesuapDataSource" />
</bean> </bean>
<bean id="sue-suapTransactionManager" <bean id="suesuapTransactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"
lazy-init="true"> lazy-init="true">
<property name="dataSource" ref="sue-suapDataSource" /> <property name="dataSource" ref="suesuapDataSource" />
<property name="globalRollbackOnParticipationFailure" value="false" /> <property name="globalRollbackOnParticipationFailure" value="false" />
<property name="sessionFactory" ref="sue-suapSessionFactory" /> <property name="sessionFactory" ref="suesuapSessionFactory" />
</bean> </bean>
<bean id="sue-suapSessionFactory" class="com.liferay.portal.dao.orm.hibernate.SessionFactoryImpl" <bean id="suesuapSessionFactory" class="com.liferay.portal.dao.orm.hibernate.SessionFactoryImpl"
lazy-init="true"> lazy-init="true">
<property name="sessionFactoryImplementor" ref="sue-suapHibernateSessionFactory" /> <property name="sessionFactoryImplementor" ref="suesuapHibernateSessionFactory" />
</bean> </bean>
<bean id="sue-suapDataSource" <bean id="suesuapDataSource"
class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy"> class="org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy">
<property name="targetDataSource"> <property name="targetDataSource">
<bean class="com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean"> <bean class="com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean">

1
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml

@ -30,6 +30,7 @@
<property name="headers" type="com.liferay.portal.dao.orm.hibernate.StringType" /> <property name="headers" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="errorLog" type="com.liferay.portal.dao.orm.hibernate.StringType" column="error_log" /> <property name="errorLog" type="com.liferay.portal.dao.orm.hibernate.StringType" column="error_log" />
<property name="errorFlag" type="com.liferay.portal.dao.orm.hibernate.BooleanType" column="error_flag" /> <property name="errorFlag" type="com.liferay.portal.dao.orm.hibernate.BooleanType" column="error_flag" />
<property name="intPraticaId" type="com.liferay.portal.dao.orm.hibernate.LongType" column="int_pratica_id" />
</class> </class>
<class name="portos.nextmind.model.impl.SportelloImpl" table="sportello"> <class name="portos.nextmind.model.impl.SportelloImpl" table="sportello">
<cache usage="read-write" /> <cache usage="read-write" />

1
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml

@ -20,6 +20,7 @@
<field name="headers" type="String" /> <field name="headers" type="String" />
<field name="errorLog" type="String" /> <field name="errorLog" type="String" />
<field name="errorFlag" type="boolean" /> <field name="errorFlag" type="boolean" />
<field name="intPraticaId" type="long" />
</model> </model>
<model name="portos.nextmind.model.Sportello"> <model name="portos.nextmind.model.Sportello">
<field name="id" type="long" /> <field name="id" type="long" />

3
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml

@ -56,6 +56,9 @@
<basic name="errorFlag"> <basic name="errorFlag">
<column name="ERROR_FLAG" /> <column name="ERROR_FLAG" />
</basic> </basic>
<basic name="intPraticaId">
<column name="INT_PRATICA_ID" />
</basic>
<transient name="modelAttributes" /> <transient name="modelAttributes" />
<transient name="primaryKey" /> <transient name="primaryKey" />
<transient name="primaryKeyObj" /> <transient name="primaryKeyObj" />

12
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/META-INF/portlet-spring.xml

@ -3,17 +3,17 @@
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" default-destroy-method="destroy" default-init-method="afterPropertiesSet" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" default-destroy-method="destroy" default-init-method="afterPropertiesSet" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean id="portos.nextmind.service.HeadSportelloLocalService" class="portos.nextmind.service.impl.HeadSportelloLocalServiceImpl" /> <bean id="portos.nextmind.service.HeadSportelloLocalService" class="portos.nextmind.service.impl.HeadSportelloLocalServiceImpl" />
<bean id="portos.nextmind.service.persistence.HeadSportelloPersistence" class="portos.nextmind.service.persistence.HeadSportelloPersistenceImpl" parent="basePersistence"> <bean id="portos.nextmind.service.persistence.HeadSportelloPersistence" class="portos.nextmind.service.persistence.HeadSportelloPersistenceImpl" parent="basePersistence">
<property name="dataSource" ref="sue-suap" /> <property name="dataSource" ref="suesuapDataSource" />
<property name="sessionFactory" ref="sue-suapSessionFactory" /> <property name="sessionFactory" ref="suesuapSessionFactory" />
</bean> </bean>
<bean id="portos.nextmind.service.ScheduledActionsLocalService" class="portos.nextmind.service.impl.ScheduledActionsLocalServiceImpl" /> <bean id="portos.nextmind.service.ScheduledActionsLocalService" class="portos.nextmind.service.impl.ScheduledActionsLocalServiceImpl" />
<bean id="portos.nextmind.service.persistence.ScheduledActionsPersistence" class="portos.nextmind.service.persistence.ScheduledActionsPersistenceImpl" parent="basePersistence"> <bean id="portos.nextmind.service.persistence.ScheduledActionsPersistence" class="portos.nextmind.service.persistence.ScheduledActionsPersistenceImpl" parent="basePersistence">
<property name="dataSource" ref="sue-suap" /> <property name="dataSource" ref="suesuapDataSource" />
<property name="sessionFactory" ref="sue-suapSessionFactory" /> <property name="sessionFactory" ref="suesuapSessionFactory" />
</bean> </bean>
<bean id="portos.nextmind.service.SportelloLocalService" class="portos.nextmind.service.impl.SportelloLocalServiceImpl" /> <bean id="portos.nextmind.service.SportelloLocalService" class="portos.nextmind.service.impl.SportelloLocalServiceImpl" />
<bean id="portos.nextmind.service.persistence.SportelloPersistence" class="portos.nextmind.service.persistence.SportelloPersistenceImpl" parent="basePersistence"> <bean id="portos.nextmind.service.persistence.SportelloPersistence" class="portos.nextmind.service.persistence.SportelloPersistenceImpl" parent="basePersistence">
<property name="dataSource" ref="sue-suap" /> <property name="dataSource" ref="suesuapDataSource" />
<property name="sessionFactory" ref="sue-suapSessionFactory" /> <property name="sessionFactory" ref="suesuapSessionFactory" />
</bean> </bean>
</beans> </beans>

22
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/integratore/IntegratoreSchedulato.java

@ -1,24 +1,15 @@
package integratore; package integratore;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.messaging.Message; import com.liferay.portal.kernel.messaging.Message;
import com.liferay.portal.kernel.messaging.MessageListener; import com.liferay.portal.kernel.messaging.MessageListener;
import com.liferay.portal.kernel.messaging.MessageListenerException; 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 java.util.List;
import portos.nextmind.model.ScheduledActions; import portos.nextmind.model.ScheduledActions;
import portos.nextmind.service.ScheduledActionsLocalServiceUtil;
public class IntegratoreSchedulato implements MessageListener { public class IntegratoreSchedulato implements MessageListener {
@ -40,13 +31,10 @@ public class IntegratoreSchedulato implements MessageListener {
} }
public void getPraticaInformation(Message message) throws SystemException, PortalException, Exception { public void getPraticaInformation(Message message) throws SystemException, PortalException, Exception {
System.out.println("get information from db and create an obj"); System.out.println("get information from db and create an obj");
List<ScheduledActions> listSA = portos.nextmind.service.persistence.ScheduledActionsUtil.findAll(0, 1); List<ScheduledActions> listSA = ScheduledActionsLocalServiceUtil.findAzioniDaSvolgere(QueryUtil.ALL_POS,QueryUtil.ALL_POS);
System.out.println(listSA.toString()); for (ScheduledActions scheduledActions : listSA) {
if (listSA.isEmpty()) {;} System.out.println(scheduledActions.getRequestAction());
else {
System.out.println(listSA.get(0).getRequestAction());
} }
} }

6
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<HeadSportello>
public static final String TABLE_SQL_DROP = "drop table head_sportello"; 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_JPQL = " ORDER BY headSportello.id ASC";
public static final String ORDER_BY_SQL = " ORDER BY head_sportello.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 DATA_SOURCE = "suesuapDataSource";
public static final String SESSION_FACTORY = "sue-suapSessionFactory"; public static final String SESSION_FACTORY = "suesuapSessionFactory";
public static final String TX_MANAGER = "sue-suapTransactionManager"; public static final String TX_MANAGER = "suesuapTransactionManager";
public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.entity.cache.enabled.portos.nextmind.model.HeadSportello"), "value.object.entity.cache.enabled.portos.nextmind.model.HeadSportello"),
true); true);

8
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<ScheduledActions>,
Externalizable { Externalizable {
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(11); StringBundler sb = new StringBundler(13);
sb.append("{shop_id="); sb.append("{shop_id=");
sb.append(shop_id); sb.append(shop_id);
@ -48,6 +48,8 @@ public class ScheduledActionsCacheModel implements CacheModel<ScheduledActions>,
sb.append(errorLog); sb.append(errorLog);
sb.append(", errorFlag="); sb.append(", errorFlag=");
sb.append(errorFlag); sb.append(errorFlag);
sb.append(", intPraticaId=");
sb.append(intPraticaId);
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -75,6 +77,7 @@ public class ScheduledActionsCacheModel implements CacheModel<ScheduledActions>,
} }
scheduledActionsImpl.setErrorFlag(errorFlag); scheduledActionsImpl.setErrorFlag(errorFlag);
scheduledActionsImpl.setIntPraticaId(intPraticaId);
scheduledActionsImpl.resetOriginalValues(); scheduledActionsImpl.resetOriginalValues();
@ -88,6 +91,7 @@ public class ScheduledActionsCacheModel implements CacheModel<ScheduledActions>,
headers = objectInput.readUTF(); headers = objectInput.readUTF();
errorLog = objectInput.readUTF(); errorLog = objectInput.readUTF();
errorFlag = objectInput.readBoolean(); errorFlag = objectInput.readBoolean();
intPraticaId = objectInput.readLong();
} }
@Override @Override
@ -111,6 +115,7 @@ public class ScheduledActionsCacheModel implements CacheModel<ScheduledActions>,
} }
objectOutput.writeBoolean(errorFlag); objectOutput.writeBoolean(errorFlag);
objectOutput.writeLong(intPraticaId);
} }
public long shop_id; public long shop_id;
@ -118,4 +123,5 @@ public class ScheduledActionsCacheModel implements CacheModel<ScheduledActions>,
public String headers; public String headers;
public String errorLog; public String errorLog;
public boolean errorFlag; public boolean errorFlag;
public long intPraticaId;
} }

74
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<ScheduledActions>
{ "request_action", Types.INTEGER }, { "request_action", Types.INTEGER },
{ "headers", Types.VARCHAR }, { "headers", Types.VARCHAR },
{ "error_log", 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 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_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 ORDER_BY_SQL = " ORDER BY scheduled_actions.shop_id ASC";
public static final String DATA_SOURCE = "sue-suap"; public static final String DATA_SOURCE = "suesuapDataSource";
public static final String SESSION_FACTORY = "sue-suapSessionFactory"; public static final String SESSION_FACTORY = "suesuapSessionFactory";
public static final String TX_MANAGER = "sue-suapTransactionManager"; public static final String TX_MANAGER = "suesuapTransactionManager";
public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.entity.cache.enabled.portos.nextmind.model.ScheduledActions"), "value.object.entity.cache.enabled.portos.nextmind.model.ScheduledActions"),
true); true);
public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.finder.cache.enabled.portos.nextmind.model.ScheduledActions"), "value.object.finder.cache.enabled.portos.nextmind.model.ScheduledActions"),
true); 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( public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get(
"lock.expiration.time.portos.nextmind.model.ScheduledActions")); "lock.expiration.time.portos.nextmind.model.ScheduledActions"));
@ -123,6 +128,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
attributes.put("headers", getHeaders()); attributes.put("headers", getHeaders());
attributes.put("errorLog", getErrorLog()); attributes.put("errorLog", getErrorLog());
attributes.put("errorFlag", getErrorFlag()); attributes.put("errorFlag", getErrorFlag());
attributes.put("intPraticaId", getIntPraticaId());
return attributes; return attributes;
} }
@ -158,6 +164,12 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
if (errorFlag != null) { if (errorFlag != null) {
setErrorFlag(errorFlag); setErrorFlag(errorFlag);
} }
Long intPraticaId = (Long)attributes.get("intPraticaId");
if (intPraticaId != null) {
setIntPraticaId(intPraticaId);
}
} }
@Override @Override
@ -225,6 +237,32 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
_errorFlag = errorFlag; _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 @Override
public ExpandoBridge getExpandoBridge() { public ExpandoBridge getExpandoBridge() {
return ExpandoBridgeFactoryUtil.getExpandoBridge(0, return ExpandoBridgeFactoryUtil.getExpandoBridge(0,
@ -257,6 +295,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
scheduledActionsImpl.setHeaders(getHeaders()); scheduledActionsImpl.setHeaders(getHeaders());
scheduledActionsImpl.setErrorLog(getErrorLog()); scheduledActionsImpl.setErrorLog(getErrorLog());
scheduledActionsImpl.setErrorFlag(getErrorFlag()); scheduledActionsImpl.setErrorFlag(getErrorFlag());
scheduledActionsImpl.setIntPraticaId(getIntPraticaId());
scheduledActionsImpl.resetOriginalValues(); scheduledActionsImpl.resetOriginalValues();
@ -307,6 +346,13 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
@Override @Override
public void resetOriginalValues() { public void resetOriginalValues() {
ScheduledActionsModelImpl scheduledActionsModelImpl = this;
scheduledActionsModelImpl._originalIntPraticaId = scheduledActionsModelImpl._intPraticaId;
scheduledActionsModelImpl._setOriginalIntPraticaId = false;
scheduledActionsModelImpl._columnBitmask = 0;
} }
@Override @Override
@ -335,12 +381,14 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
scheduledActionsCacheModel.errorFlag = getErrorFlag(); scheduledActionsCacheModel.errorFlag = getErrorFlag();
scheduledActionsCacheModel.intPraticaId = getIntPraticaId();
return scheduledActionsCacheModel; return scheduledActionsCacheModel;
} }
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(11); StringBundler sb = new StringBundler(13);
sb.append("{shop_id="); sb.append("{shop_id=");
sb.append(getShop_id()); sb.append(getShop_id());
@ -352,6 +400,8 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
sb.append(getErrorLog()); sb.append(getErrorLog());
sb.append(", errorFlag="); sb.append(", errorFlag=");
sb.append(getErrorFlag()); sb.append(getErrorFlag());
sb.append(", intPraticaId=");
sb.append(getIntPraticaId());
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
@ -359,7 +409,7 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
@Override @Override
public String toXmlString() { public String toXmlString() {
StringBundler sb = new StringBundler(19); StringBundler sb = new StringBundler(22);
sb.append("<model><model-name>"); sb.append("<model><model-name>");
sb.append("portos.nextmind.model.ScheduledActions"); sb.append("portos.nextmind.model.ScheduledActions");
@ -385,6 +435,10 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
"<column><column-name>errorFlag</column-name><column-value><![CDATA["); "<column><column-name>errorFlag</column-name><column-value><![CDATA[");
sb.append(getErrorFlag()); sb.append(getErrorFlag());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>intPraticaId</column-name><column-value><![CDATA[");
sb.append(getIntPraticaId());
sb.append("]]></column-value></column>");
sb.append("</model>"); sb.append("</model>");
@ -400,5 +454,9 @@ public class ScheduledActionsModelImpl extends BaseModelImpl<ScheduledActions>
private String _headers; private String _headers;
private String _errorLog; private String _errorLog;
private boolean _errorFlag; private boolean _errorFlag;
private long _intPraticaId;
private long _originalIntPraticaId;
private boolean _setOriginalIntPraticaId;
private long _columnBitmask;
private ScheduledActions _escapedModel; private ScheduledActions _escapedModel;
} }

6
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<Sportello>
public static final String TABLE_SQL_DROP = "drop table sportello"; 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_JPQL = " ORDER BY sportello.id ASC";
public static final String ORDER_BY_SQL = " 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 DATA_SOURCE = "suesuapDataSource";
public static final String SESSION_FACTORY = "sue-suapSessionFactory"; public static final String SESSION_FACTORY = "suesuapSessionFactory";
public static final String TX_MANAGER = "sue-suapTransactionManager"; public static final String TX_MANAGER = "suesuapTransactionManager";
public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get( public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
"value.object.entity.cache.enabled.portos.nextmind.model.Sportello"), "value.object.entity.cache.enabled.portos.nextmind.model.Sportello"),
true); true);

48
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"; _methodName41 = "setBeanIdentifier";
_methodParameterTypes41 = new String[] { "java.lang.String" }; _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, public Object invokeMethod(String name, String[] parameterTypes,
@ -216,6 +232,30 @@ public class ScheduledActionsLocalServiceClpInvoker {
return null; 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(); throw new UnsupportedOperationException();
} }
@ -255,4 +295,12 @@ public class ScheduledActionsLocalServiceClpInvoker {
private String[] _methodParameterTypes40; private String[] _methodParameterTypes40;
private String _methodName41; private String _methodName41;
private String[] _methodParameterTypes41; 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;
} }

28
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; 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; 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. * Never reference this interface directly. Always use {@link portos.nextmind.service.ScheduledActionsLocalServiceUtil} to access the scheduled actions local service.
*/ */
public List<ScheduledActions> findAll(int start, int end) throws SystemException{
return scheduledActionsPersistence.findAll(start, end);
}
public List<ScheduledActions> findByIntPraticaId(long intPraticaId) throws SystemException{
return scheduledActionsPersistence.findByIntPraticaId(intPraticaId);
}
public List<ScheduledActions> findByIntPraticaId(long intPraticaId, int start, int end) throws SystemException{
return scheduledActionsPersistence.findByIntPraticaId(intPraticaId,start,end);
}
@SuppressWarnings("unchecked")
public List<ScheduledActions> findAzioniDaSvolgere(int start, int end) throws SystemException{
DynamicQuery dq = scheduledActionsLocalService.dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("intPraticaId", 0));
return (List<ScheduledActions>)scheduledActionsLocalService.dynamicQuery(dq,start,end);
}
} }

533
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.FinderCacheUtil;
import com.liferay.portal.kernel.dao.orm.FinderPath; import com.liferay.portal.kernel.dao.orm.FinderPath;
import com.liferay.portal.kernel.dao.orm.Query; 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.QueryUtil;
import com.liferay.portal.kernel.dao.orm.Session; import com.liferay.portal.kernel.dao.orm.Session;
import com.liferay.portal.kernel.exception.SystemException; 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.PropsUtil;
import com.liferay.portal.kernel.util.SetUtil; import com.liferay.portal.kernel.util.SetUtil;
import com.liferay.portal.kernel.util.StringBundler; 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.StringUtil;
import com.liferay.portal.kernel.util.UnmodifiableList; import com.liferay.portal.kernel.util.UnmodifiableList;
import com.liferay.portal.model.CacheModel; import com.liferay.portal.model.CacheModel;
@ -85,6 +87,506 @@ public class ScheduledActionsPersistenceImpl extends BasePersistenceImpl<Schedul
public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(ScheduledActionsModelImpl.ENTITY_CACHE_ENABLED, public static final FinderPath FINDER_PATH_COUNT_ALL = new FinderPath(ScheduledActionsModelImpl.ENTITY_CACHE_ENABLED,
ScheduledActionsModelImpl.FINDER_CACHE_ENABLED, Long.class, ScheduledActionsModelImpl.FINDER_CACHE_ENABLED, Long.class,
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countAll", new String[0]); FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countAll", new String[0]);
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICAID =
new FinderPath(ScheduledActionsModelImpl.ENTITY_CACHE_ENABLED,
ScheduledActionsModelImpl.FINDER_CACHE_ENABLED,
ScheduledActionsImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION,
"findByIntPraticaId",
new String[] {
Long.class.getName(),
Integer.class.getName(), Integer.class.getName(),
OrderByComparator.class.getName()
});
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICAID =
new FinderPath(ScheduledActionsModelImpl.ENTITY_CACHE_ENABLED,
ScheduledActionsModelImpl.FINDER_CACHE_ENABLED,
ScheduledActionsImpl.class,
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByIntPraticaId",
new String[] { Long.class.getName() },
ScheduledActionsModelImpl.INTPRATICAID_COLUMN_BITMASK);
public static final FinderPath FINDER_PATH_COUNT_BY_INTPRATICAID = new FinderPath(ScheduledActionsModelImpl.ENTITY_CACHE_ENABLED,
ScheduledActionsModelImpl.FINDER_CACHE_ENABLED, Long.class,
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByIntPraticaId",
new String[] { Long.class.getName() });
/**
* Returns all the scheduled actionses where intPraticaId = &#63;.
*
* @param intPraticaId the int pratica ID
* @return the matching scheduled actionses
* @throws SystemException if a system exception occurred
*/
@Override
public List<ScheduledActions> 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 = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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<ScheduledActions> 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 = &#63;.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> 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 <code>orderByComparator</code> 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.
* </p>
*
* @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 <code>null</code>)
* @return the ordered range of matching scheduled actionses
* @throws SystemException if a system exception occurred
*/
@Override
public List<ScheduledActions> 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<ScheduledActions> list = (List<ScheduledActions>)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<ScheduledActions>)QueryUtil.list(q,
getDialect(), start, end, false);
Collections.sort(list);
list = new UnmodifiableList<ScheduledActions>(list);
}
else {
list = (List<ScheduledActions>)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 = &#63;.
*
* @param intPraticaId the int pratica ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @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 = &#63;.
*
* @param intPraticaId the int pratica ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching scheduled actions, or <code>null</code> 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<ScheduledActions> 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 = &#63;.
*
* @param intPraticaId the int pratica ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @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 = &#63;.
*
* @param intPraticaId the int pratica ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching scheduled actions, or <code>null</code> 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<ScheduledActions> 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 = &#63;.
*
* @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 <code>null</code>)
* @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<ScheduledActions> list = q.list();
if (list.size() == 2) {
return list.get(1);
}
else {
return null;
}
}
/**
* Removes all the scheduled actionses where intPraticaId = &#63; 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 = &#63;.
*
* @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() { public ScheduledActionsPersistenceImpl() {
setModelClass(ScheduledActions.class); setModelClass(ScheduledActions.class);
@ -283,6 +785,8 @@ public class ScheduledActionsPersistenceImpl extends BasePersistenceImpl<Schedul
boolean isNew = scheduledActions.isNew(); boolean isNew = scheduledActions.isNew();
ScheduledActionsModelImpl scheduledActionsModelImpl = (ScheduledActionsModelImpl)scheduledActions;
Session session = null; Session session = null;
try { try {
@ -306,10 +810,31 @@ public class ScheduledActionsPersistenceImpl extends BasePersistenceImpl<Schedul
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
if (isNew) { if (isNew || !ScheduledActionsModelImpl.COLUMN_BITMASK_ENABLED) {
FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
} }
else {
if ((scheduledActionsModelImpl.getColumnBitmask() &
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICAID.getColumnBitmask()) != 0) {
Object[] args = new Object[] {
scheduledActionsModelImpl.getOriginalIntPraticaId()
};
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_INTPRATICAID,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICAID,
args);
args = new Object[] { scheduledActionsModelImpl.getIntPraticaId() };
FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_INTPRATICAID,
args);
FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICAID,
args);
}
}
EntityCacheUtil.putResult(ScheduledActionsModelImpl.ENTITY_CACHE_ENABLED, EntityCacheUtil.putResult(ScheduledActionsModelImpl.ENTITY_CACHE_ENABLED,
ScheduledActionsImpl.class, scheduledActions.getPrimaryKey(), ScheduledActionsImpl.class, scheduledActions.getPrimaryKey(),
scheduledActions); scheduledActions);
@ -333,6 +858,7 @@ public class ScheduledActionsPersistenceImpl extends BasePersistenceImpl<Schedul
scheduledActionsImpl.setHeaders(scheduledActions.getHeaders()); scheduledActionsImpl.setHeaders(scheduledActions.getHeaders());
scheduledActionsImpl.setErrorLog(scheduledActions.getErrorLog()); scheduledActionsImpl.setErrorLog(scheduledActions.getErrorLog());
scheduledActionsImpl.setErrorFlag(scheduledActions.isErrorFlag()); scheduledActionsImpl.setErrorFlag(scheduledActions.isErrorFlag());
scheduledActionsImpl.setIntPraticaId(scheduledActions.getIntPraticaId());
return scheduledActionsImpl; return scheduledActionsImpl;
} }
@ -649,14 +1175,17 @@ public class ScheduledActionsPersistenceImpl extends BasePersistenceImpl<Schedul
} }
private static final String _SQL_SELECT_SCHEDULEDACTIONS = "SELECT scheduledActions FROM ScheduledActions scheduledActions"; private static final String _SQL_SELECT_SCHEDULEDACTIONS = "SELECT scheduledActions FROM ScheduledActions scheduledActions";
private static final String _SQL_SELECT_SCHEDULEDACTIONS_WHERE = "SELECT scheduledActions FROM ScheduledActions scheduledActions WHERE ";
private static final String _SQL_COUNT_SCHEDULEDACTIONS = "SELECT COUNT(scheduledActions) FROM ScheduledActions scheduledActions"; private static final String _SQL_COUNT_SCHEDULEDACTIONS = "SELECT COUNT(scheduledActions) FROM ScheduledActions scheduledActions";
private static final String _SQL_COUNT_SCHEDULEDACTIONS_WHERE = "SELECT COUNT(scheduledActions) FROM ScheduledActions scheduledActions WHERE ";
private static final String _ORDER_BY_ENTITY_ALIAS = "scheduledActions."; private static final String _ORDER_BY_ENTITY_ALIAS = "scheduledActions.";
private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No ScheduledActions exists with the primary key "; private static final String _NO_SUCH_ENTITY_WITH_PRIMARY_KEY = "No ScheduledActions exists with the primary key ";
private static final String _NO_SUCH_ENTITY_WITH_KEY = "No ScheduledActions exists with the key {";
private static final boolean _HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE = GetterUtil.getBoolean(PropsUtil.get( private static final boolean _HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE = GetterUtil.getBoolean(PropsUtil.get(
PropsKeys.HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE)); PropsKeys.HIBERNATE_CACHE_USE_SECOND_LEVEL_CACHE));
private static Log _log = LogFactoryUtil.getLog(ScheduledActionsPersistenceImpl.class); private static Log _log = LogFactoryUtil.getLog(ScheduledActionsPersistenceImpl.class);
private static Set<String> _badColumnNames = SetUtil.fromArray(new String[] { private static Set<String> _badColumnNames = SetUtil.fromArray(new String[] {
"requestAction", "errorLog", "errorFlag" "requestAction", "errorLog", "errorFlag", "intPraticaId"
}); });
private static ScheduledActions _nullScheduledActions = new ScheduledActionsImpl() { private static ScheduledActions _nullScheduledActions = new ScheduledActionsImpl() {
@Override @Override

6
liferay-plugins-sdk-6.2/portlets/schedulatore-portos-pratiche-portlet/docroot/WEB-INF/src/service.properties

@ -12,9 +12,9 @@
## Build ## Build
## ##
build.namespace=portos build.namespace=portos_ss
build.number=9 build.number=23
build.date=1683100407625 build.date=1683108076366
build.auto.upgrade=true build.auto.upgrade=true
## ##

Caricamento…
Annulla
Salva