diff --git a/liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar index b4d485e3..7007ab50 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar index 783b08bd..f63cfb8e 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar index 8f0ebd80..6e60096d 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar b/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar index 5302f897..e79e6878 100644 Binary files a/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar and b/liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index 188cb9e4..d4a39f80 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-report-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-report-shared.jar index 5302f897..e79e6878 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-report-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-report-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar index b4d485e3..7007ab50 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-audit-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar index 8f0d9147..8dd1676c 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar index 783b08bd..f63cfb8e 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar index 8f0ebd80..6e60096d 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-mail-manager-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar index 5302f897..e79e6878 100644 Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-report-shared.jar differ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml index 3583f7a0..04c7a077 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml @@ -1675,7 +1675,7 @@ + remote-service="true" uuid="true"> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataClp.java index 1ab9d02e..bab7e841 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataClp.java @@ -16,6 +16,7 @@ package it.tref.liferay.portos.bo.model; import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.lar.StagedModelType; import com.liferay.portal.kernel.util.ProxyUtil; import com.liferay.portal.kernel.util.StringBundler; import com.liferay.portal.model.BaseModel; @@ -75,6 +76,7 @@ public class PraticaAttenzionataClp extends BaseModelImpl public Map getModelAttributes() { Map attributes = new HashMap(); + attributes.put("uuid", getUuid()); attributes.put("praticaAttenzionataId", getPraticaAttenzionataId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); @@ -96,6 +98,12 @@ public class PraticaAttenzionataClp extends BaseModelImpl @Override public void setModelAttributes(Map attributes) { + String uuid = (String)attributes.get("uuid"); + + if (uuid != null) { + setUuid(uuid); + } + Long praticaAttenzionataId = (Long)attributes.get( "praticaAttenzionataId"); @@ -183,6 +191,29 @@ public class PraticaAttenzionataClp extends BaseModelImpl } } + @Override + public String getUuid() { + return _uuid; + } + + @Override + public void setUuid(String uuid) { + _uuid = uuid; + + if (_praticaAttenzionataRemoteModel != null) { + try { + Class clazz = _praticaAttenzionataRemoteModel.getClass(); + + Method method = clazz.getMethod("setUuid", String.class); + + method.invoke(_praticaAttenzionataRemoteModel, uuid); + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + } + @Override public long getPraticaAttenzionataId() { return _praticaAttenzionataId; @@ -528,6 +559,12 @@ public class PraticaAttenzionataClp extends BaseModelImpl } } + @Override + public StagedModelType getStagedModelType() { + return new StagedModelType(PortalUtil.getClassNameId( + PraticaAttenzionata.class.getName())); + } + public BaseModel getPraticaAttenzionataRemoteModel() { return _praticaAttenzionataRemoteModel; } @@ -599,6 +636,7 @@ public class PraticaAttenzionataClp extends BaseModelImpl public Object clone() { PraticaAttenzionataClp clone = new PraticaAttenzionataClp(); + clone.setUuid(getUuid()); clone.setPraticaAttenzionataId(getPraticaAttenzionataId()); clone.setCompanyId(getCompanyId()); clone.setUserId(getUserId()); @@ -665,9 +703,11 @@ public class PraticaAttenzionataClp extends BaseModelImpl @Override public String toString() { - StringBundler sb = new StringBundler(29); + StringBundler sb = new StringBundler(31); - sb.append("{praticaAttenzionataId="); + sb.append("{uuid="); + sb.append(getUuid()); + sb.append(", praticaAttenzionataId="); sb.append(getPraticaAttenzionataId()); sb.append(", companyId="); sb.append(getCompanyId()); @@ -702,12 +742,16 @@ public class PraticaAttenzionataClp extends BaseModelImpl @Override public String toXmlString() { - StringBundler sb = new StringBundler(46); + StringBundler sb = new StringBundler(49); sb.append(""); sb.append("it.tref.liferay.portos.bo.model.PraticaAttenzionata"); sb.append(""); + sb.append( + "uuid"); sb.append( "praticaAttenzionataId return sb.toString(); } + private String _uuid; private long _praticaAttenzionataId; private long _companyId; private long _userId; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataModel.java index 823967b4..d2483732 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataModel.java @@ -18,7 +18,7 @@ import com.liferay.portal.kernel.bean.AutoEscape; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.model.BaseModel; import com.liferay.portal.model.CacheModel; -import com.liferay.portal.model.GroupedModel; +import com.liferay.portal.model.StagedGroupedModel; import com.liferay.portal.service.ServiceContext; import com.liferay.portlet.expando.model.ExpandoBridge; @@ -41,7 +41,7 @@ import java.util.Date; * @generated */ public interface PraticaAttenzionataModel extends BaseModel, - GroupedModel { + StagedGroupedModel { /* * NOTE FOR DEVELOPERS: * @@ -62,6 +62,23 @@ public interface PraticaAttenzionataModel extends BaseModel */ public void setPrimaryKey(long primaryKey); + /** + * Returns the uuid of this pratica attenzionata. + * + * @return the uuid of this pratica attenzionata + */ + @AutoEscape + @Override + public String getUuid(); + + /** + * Sets the uuid of this pratica attenzionata. + * + * @param uuid the uuid of this pratica attenzionata + */ + @Override + public void setUuid(String uuid); + /** * Returns the pratica attenzionata ID of this pratica attenzionata. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataSoap.java index 5e0fa5a5..90a79385 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataSoap.java @@ -31,6 +31,7 @@ public class PraticaAttenzionataSoap implements Serializable { public static PraticaAttenzionataSoap toSoapModel(PraticaAttenzionata model) { PraticaAttenzionataSoap soapModel = new PraticaAttenzionataSoap(); + soapModel.setUuid(model.getUuid()); soapModel.setPraticaAttenzionataId(model.getPraticaAttenzionataId()); soapModel.setCompanyId(model.getCompanyId()); soapModel.setUserId(model.getUserId()); @@ -100,6 +101,14 @@ public class PraticaAttenzionataSoap implements Serializable { setPraticaAttenzionataId(pk); } + public String getUuid() { + return _uuid; + } + + public void setUuid(String uuid) { + _uuid = uuid; + } + public long getPraticaAttenzionataId() { return _praticaAttenzionataId; } @@ -217,6 +226,7 @@ public class PraticaAttenzionataSoap implements Serializable { _dataVerifica = dataVerifica; } + private String _uuid; private long _praticaAttenzionataId; private long _companyId; private long _userId; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataWrapper.java index 56908ae9..62ac75de 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PraticaAttenzionataWrapper.java @@ -14,6 +14,7 @@ package it.tref.liferay.portos.bo.model; +import com.liferay.portal.kernel.lar.StagedModelType; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.model.ModelWrapper; @@ -50,6 +51,7 @@ public class PraticaAttenzionataWrapper implements PraticaAttenzionata, public Map getModelAttributes() { Map attributes = new HashMap(); + attributes.put("uuid", getUuid()); attributes.put("praticaAttenzionataId", getPraticaAttenzionataId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); @@ -71,6 +73,12 @@ public class PraticaAttenzionataWrapper implements PraticaAttenzionata, @Override public void setModelAttributes(Map attributes) { + String uuid = (String)attributes.get("uuid"); + + if (uuid != null) { + setUuid(uuid); + } + Long praticaAttenzionataId = (Long)attributes.get( "praticaAttenzionataId"); @@ -178,6 +186,26 @@ public class PraticaAttenzionataWrapper implements PraticaAttenzionata, _praticaAttenzionata.setPrimaryKey(primaryKey); } + /** + * Returns the uuid of this pratica attenzionata. + * + * @return the uuid of this pratica attenzionata + */ + @Override + public java.lang.String getUuid() { + return _praticaAttenzionata.getUuid(); + } + + /** + * Sets the uuid of this pratica attenzionata. + * + * @param uuid the uuid of this pratica attenzionata + */ + @Override + public void setUuid(java.lang.String uuid) { + _praticaAttenzionata.setUuid(uuid); + } + /** * Returns the pratica attenzionata ID of this pratica attenzionata. * @@ -616,6 +644,11 @@ public class PraticaAttenzionataWrapper implements PraticaAttenzionata, return false; } + @Override + public StagedModelType getStagedModelType() { + return _praticaAttenzionata.getStagedModelType(); + } + /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} */ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalService.java index f51e96f5..70b52110 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalService.java @@ -175,6 +175,32 @@ public interface PraticaAttenzionataLocalService extends BaseLocalService, long praticaAttenzionataId) throws com.liferay.portal.kernel.exception.SystemException; + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException; + /** * Returns the pratica attenzionata with the primary key. * @@ -196,6 +222,36 @@ public interface PraticaAttenzionataLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + /** * Returns a range of all the pratica attenzionatas. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceClp.java index fd60b9a7..24379a37 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceClp.java @@ -86,64 +86,80 @@ public class PraticaAttenzionataLocalServiceClp _methodParameterTypes10 = new String[] { "long" }; - _methodName11 = "getPraticaAttenzionata"; + _methodName11 = "fetchPraticaAttenzionataByUuidAndCompanyId"; - _methodParameterTypes11 = new String[] { "long" }; + _methodParameterTypes11 = new String[] { "java.lang.String", "long" }; - _methodName12 = "getPersistedModel"; + _methodName12 = "fetchPraticaAttenzionataByUuidAndGroupId"; - _methodParameterTypes12 = new String[] { "java.io.Serializable" }; + _methodParameterTypes12 = new String[] { "java.lang.String", "long" }; - _methodName13 = "getPraticaAttenzionatas"; + _methodName13 = "getPraticaAttenzionata"; - _methodParameterTypes13 = new String[] { "int", "int" }; + _methodParameterTypes13 = new String[] { "long" }; - _methodName14 = "getPraticaAttenzionatasCount"; + _methodName14 = "getPersistedModel"; - _methodParameterTypes14 = new String[] { }; + _methodParameterTypes14 = new String[] { "java.io.Serializable" }; - _methodName15 = "updatePraticaAttenzionata"; + _methodName15 = "getPraticaAttenzionataByUuidAndCompanyId"; - _methodParameterTypes15 = new String[] { + _methodParameterTypes15 = new String[] { "java.lang.String", "long" }; + + _methodName16 = "getPraticaAttenzionataByUuidAndGroupId"; + + _methodParameterTypes16 = new String[] { "java.lang.String", "long" }; + + _methodName17 = "getPraticaAttenzionatas"; + + _methodParameterTypes17 = new String[] { "int", "int" }; + + _methodName18 = "getPraticaAttenzionatasCount"; + + _methodParameterTypes18 = new String[] { }; + + _methodName19 = "updatePraticaAttenzionata"; + + _methodParameterTypes19 = new String[] { "it.tref.liferay.portos.bo.model.PraticaAttenzionata" }; - _methodName16 = "getBeanIdentifier"; + _methodName20 = "getBeanIdentifier"; - _methodParameterTypes16 = new String[] { }; + _methodParameterTypes20 = new String[] { }; - _methodName17 = "setBeanIdentifier"; + _methodName21 = "setBeanIdentifier"; - _methodParameterTypes17 = new String[] { "java.lang.String" }; + _methodParameterTypes21 = new String[] { "java.lang.String" }; - _methodName19 = "evalAndEventuallyAddPraticaAttenzionata"; + _methodName23 = "evalAndEventuallyAddPraticaAttenzionata"; - _methodParameterTypes19 = new String[] { + _methodParameterTypes23 = new String[] { "long", "long", "java.lang.String", "java.util.Date", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName20 = "getPraticheDaVerificare"; + _methodName24 = "getPraticheDaVerificare"; - _methodParameterTypes20 = new String[] { }; + _methodParameterTypes24 = new String[] { }; - _methodName21 = "countPraticheDaVerificare"; + _methodName25 = "countPraticheDaVerificare"; - _methodParameterTypes21 = new String[] { }; + _methodParameterTypes25 = new String[] { }; - _methodName22 = "getPraticheVerificate"; + _methodName26 = "getPraticheVerificate"; - _methodParameterTypes22 = new String[] { }; + _methodParameterTypes26 = new String[] { }; - _methodName23 = "verificaPraticaAttenzionata"; + _methodName27 = "verificaPraticaAttenzionata"; - _methodParameterTypes23 = new String[] { + _methodParameterTypes27 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName24 = "verificaPraticaAttenzionata"; + _methodName28 = "verificaPraticaAttenzionata"; - _methodParameterTypes24 = new String[] { + _methodParameterTypes28 = new String[] { "it.tref.liferay.portos.bo.model.PraticaAttenzionata", "com.liferay.portal.service.ServiceContext" }; @@ -500,6 +516,66 @@ public class PraticaAttenzionataLocalServiceClp return (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); } + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName11, + _methodParameterTypes11, + new Object[] { ClpSerializer.translateInput(uuid), companyId }); + } + 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 (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName12, + _methodParameterTypes12, + new Object[] { ClpSerializer.translateInput(uuid), groupId }); + } + 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 (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + @Override public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionata( long praticaAttenzionataId) @@ -508,8 +584,8 @@ public class PraticaAttenzionataLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName11, - _methodParameterTypes11, + returnObj = _invokableLocalService.invokeMethod(_methodName13, + _methodParameterTypes13, new Object[] { praticaAttenzionataId }); } catch (Throwable t) { @@ -543,8 +619,8 @@ public class PraticaAttenzionataLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName12, - _methodParameterTypes12, + returnObj = _invokableLocalService.invokeMethod(_methodName14, + _methodParameterTypes14, new Object[] { ClpSerializer.translateInput(primaryKeyObj) }); } catch (Throwable t) { @@ -570,6 +646,76 @@ public class PraticaAttenzionataLocalServiceClp return (com.liferay.portal.model.PersistedModel)ClpSerializer.translateOutput(returnObj); } + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName15, + _methodParameterTypes15, + new Object[] { ClpSerializer.translateInput(uuid), companyId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)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 (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName16, + _methodParameterTypes16, + new Object[] { ClpSerializer.translateInput(uuid), groupId }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)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 (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj); + } + @Override public java.util.List getPraticaAttenzionatas( int start, int end) @@ -577,8 +723,8 @@ public class PraticaAttenzionataLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName13, - _methodParameterTypes13, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName17, + _methodParameterTypes17, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -605,8 +751,8 @@ public class PraticaAttenzionataLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName14, - _methodParameterTypes14, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName18, + _methodParameterTypes18, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -634,8 +780,8 @@ public class PraticaAttenzionataLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName15, - _methodParameterTypes15, + returnObj = _invokableLocalService.invokeMethod(_methodName19, + _methodParameterTypes19, new Object[] { ClpSerializer.translateInput(praticaAttenzionata) }); @@ -664,8 +810,8 @@ public class PraticaAttenzionataLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName16, - _methodParameterTypes16, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName20, + _methodParameterTypes20, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -685,8 +831,8 @@ public class PraticaAttenzionataLocalServiceClp @Override public void setBeanIdentifier(java.lang.String beanIdentifier) { try { - _invokableLocalService.invokeMethod(_methodName17, - _methodParameterTypes17, + _invokableLocalService.invokeMethod(_methodName21, + _methodParameterTypes21, new Object[] { ClpSerializer.translateInput(beanIdentifier) }); } catch (Throwable t) { @@ -720,8 +866,8 @@ public class PraticaAttenzionataLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName19, - _methodParameterTypes19, + returnObj = _invokableLocalService.invokeMethod(_methodName23, + _methodParameterTypes23, new Object[] { intPraticaId, @@ -765,8 +911,8 @@ public class PraticaAttenzionataLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName20, - _methodParameterTypes20, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName24, + _methodParameterTypes24, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -793,8 +939,8 @@ public class PraticaAttenzionataLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName21, - _methodParameterTypes21, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName25, + _methodParameterTypes25, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -821,8 +967,8 @@ public class PraticaAttenzionataLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName22, - _methodParameterTypes22, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName26, + _methodParameterTypes26, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -851,8 +997,8 @@ public class PraticaAttenzionataLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName23, - _methodParameterTypes23, + returnObj = _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, new Object[] { praticaAttenzionataId, @@ -886,8 +1032,8 @@ public class PraticaAttenzionataLocalServiceClp Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName24, - _methodParameterTypes24, + returnObj = _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { ClpSerializer.translateInput(praticaAttenzionata), @@ -950,16 +1096,24 @@ public class PraticaAttenzionataLocalServiceClp private String[] _methodParameterTypes16; private String _methodName17; private String[] _methodParameterTypes17; + private String _methodName18; + private String[] _methodParameterTypes18; private String _methodName19; private String[] _methodParameterTypes19; private String _methodName20; private String[] _methodParameterTypes20; private String _methodName21; private String[] _methodParameterTypes21; - private String _methodName22; - private String[] _methodParameterTypes22; private String _methodName23; private String[] _methodParameterTypes23; private String _methodName24; private String[] _methodParameterTypes24; + private String _methodName25; + private String[] _methodParameterTypes25; + private String _methodName26; + private String[] _methodParameterTypes26; + private String _methodName27; + private String[] _methodParameterTypes27; + private String _methodName28; + private String[] _methodParameterTypes28; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceUtil.java index 3e55e5c7..d58b110d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceUtil.java @@ -187,6 +187,36 @@ public class PraticaAttenzionataLocalServiceUtil { return getService().fetchPraticaAttenzionata(praticaAttenzionataId); } + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .fetchPraticaAttenzionataByUuidAndCompanyId(uuid, companyId); + } + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException { + return getService() + .fetchPraticaAttenzionataByUuidAndGroupId(uuid, groupId); + } + /** * Returns the pratica attenzionata with the primary key. * @@ -209,6 +239,39 @@ public class PraticaAttenzionataLocalServiceUtil { return getService().getPersistedModel(primaryKeyObj); } + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService() + .getPraticaAttenzionataByUuidAndCompanyId(uuid, companyId); + } + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService().getPraticaAttenzionataByUuidAndGroupId(uuid, groupId); + } + /** * Returns a range of all the pratica attenzionatas. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceWrapper.java index e6ba205b..6408a3f3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceWrapper.java @@ -192,6 +192,38 @@ public class PraticaAttenzionataLocalServiceWrapper return _praticaAttenzionataLocalService.fetchPraticaAttenzionata(praticaAttenzionataId); } + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.fetchPraticaAttenzionataByUuidAndCompanyId(uuid, + companyId); + } + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.fetchPraticaAttenzionataByUuidAndGroupId(uuid, + groupId); + } + /** * Returns the pratica attenzionata with the primary key. * @@ -216,6 +248,42 @@ public class PraticaAttenzionataLocalServiceWrapper return _praticaAttenzionataLocalService.getPersistedModel(primaryKeyObj); } + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndCompanyId( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.getPraticaAttenzionataByUuidAndCompanyId(uuid, + companyId); + } + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public it.tref.liferay.portos.bo.model.PraticaAttenzionata getPraticaAttenzionataByUuidAndGroupId( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _praticaAttenzionataLocalService.getPraticaAttenzionataByUuidAndGroupId(uuid, + groupId); + } + /** * Returns a range of all the pratica attenzionatas. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistence.java index af7929da..0019474b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistence.java @@ -37,6 +37,355 @@ public interface PraticaAttenzionataPersistence extends BasePersistenceservice.xml and rerun ServiceBuilder to regenerate this interface. */ + /** + * Returns all the pratica attenzionatas where uuid = ?. + * + * @param uuid the uuid + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByUuid( + java.lang.String uuid) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the pratica attenzionatas where uuid = ?. + * + *

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

+ * + * @param uuid the uuid + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByUuid( + java.lang.String uuid, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the pratica attenzionatas where uuid = ?. + * + *

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

+ * + * @param uuid the uuid + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByUuid( + java.lang.String uuid, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_First( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_First( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_Last( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_Last( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where uuid = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata[] findByUuid_PrevAndNext( + long praticaAttenzionataId, java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Removes all the pratica attenzionatas where uuid = ? from the database. + * + * @param uuid the uuid + * @throws SystemException if a system exception occurred + */ + public void removeByUuid(java.lang.String uuid) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of pratica attenzionatas where uuid = ?. + * + * @param uuid the uuid + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public int countByUuid(java.lang.String uuid) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException} if it could not be found. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUUID_G( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUUID_G( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. + * + * @param uuid the uuid + * @param groupId the group ID + * @param retrieveFromCache whether to use the finder cache + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUUID_G( + java.lang.String uuid, long groupId, boolean retrieveFromCache) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Removes the pratica attenzionata where uuid = ? and groupId = ? from the database. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the pratica attenzionata that was removed + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata removeByUUID_G( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the number of pratica attenzionatas where uuid = ? and groupId = ?. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public int countByUUID_G(java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns all the pratica attenzionatas where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByUuid_C( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns a range of all the pratica attenzionatas where uuid = ? and companyId = ?. + * + *

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

+ * + * @param uuid the uuid + * @param companyId the company ID + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByUuid_C( + java.lang.String uuid, long companyId, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns an ordered range of all the pratica attenzionatas where uuid = ? and companyId = ?. + * + *

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

+ * + * @param uuid the uuid + * @param companyId the company ID + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public java.util.List findByUuid_C( + java.lang.String uuid, long companyId, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_C_First( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_C_First( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_C_Last( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_C_Last( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public it.tref.liferay.portos.bo.model.PraticaAttenzionata[] findByUuid_C_PrevAndNext( + long praticaAttenzionataId, java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException; + + /** + * Removes all the pratica attenzionatas where uuid = ? and companyId = ? from the database. + * + * @param uuid the uuid + * @param companyId the company ID + * @throws SystemException if a system exception occurred + */ + public void removeByUuid_C(java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException; + + /** + * Returns the number of pratica attenzionatas where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public int countByUuid_C(java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException; + /** * Returns all the pratica attenzionatas where verificata = ?. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataUtil.java index 5f1747d3..d4817c6e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataUtil.java @@ -111,6 +111,414 @@ public class PraticaAttenzionataUtil { return getPersistence().update(praticaAttenzionata, serviceContext); } + /** + * Returns all the pratica attenzionatas where uuid = ?. + * + * @param uuid the uuid + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByUuid( + java.lang.String uuid) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByUuid(uuid); + } + + /** + * Returns a range of all the pratica attenzionatas where uuid = ?. + * + *

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

+ * + * @param uuid the uuid + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByUuid( + java.lang.String uuid, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByUuid(uuid, start, end); + } + + /** + * Returns an ordered range of all the pratica attenzionatas where uuid = ?. + * + *

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

+ * + * @param uuid the uuid + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByUuid( + java.lang.String uuid, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByUuid(uuid, start, end, orderByComparator); + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_First( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence().findByUuid_First(uuid, orderByComparator); + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_First( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().fetchByUuid_First(uuid, orderByComparator); + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_Last( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence().findByUuid_Last(uuid, orderByComparator); + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_Last( + java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().fetchByUuid_Last(uuid, orderByComparator); + } + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where uuid = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata[] findByUuid_PrevAndNext( + long praticaAttenzionataId, java.lang.String uuid, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence() + .findByUuid_PrevAndNext(praticaAttenzionataId, uuid, + orderByComparator); + } + + /** + * Removes all the pratica attenzionatas where uuid = ? from the database. + * + * @param uuid the uuid + * @throws SystemException if a system exception occurred + */ + public static void removeByUuid(java.lang.String uuid) + throws com.liferay.portal.kernel.exception.SystemException { + getPersistence().removeByUuid(uuid); + } + + /** + * Returns the number of pratica attenzionatas where uuid = ?. + * + * @param uuid the uuid + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static int countByUuid(java.lang.String uuid) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().countByUuid(uuid); + } + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException} if it could not be found. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUUID_G( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence().findByUUID_G(uuid, groupId); + } + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUUID_G( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().fetchByUUID_G(uuid, groupId); + } + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. + * + * @param uuid the uuid + * @param groupId the group ID + * @param retrieveFromCache whether to use the finder cache + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUUID_G( + java.lang.String uuid, long groupId, boolean retrieveFromCache) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); + } + + /** + * Removes the pratica attenzionata where uuid = ? and groupId = ? from the database. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the pratica attenzionata that was removed + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata removeByUUID_G( + java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence().removeByUUID_G(uuid, groupId); + } + + /** + * Returns the number of pratica attenzionatas where uuid = ? and groupId = ?. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static int countByUUID_G(java.lang.String uuid, long groupId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().countByUUID_G(uuid, groupId); + } + + /** + * Returns all the pratica attenzionatas where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByUuid_C( + java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByUuid_C(uuid, companyId); + } + + /** + * Returns a range of all the pratica attenzionatas where uuid = ? and companyId = ?. + * + *

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

+ * + * @param uuid the uuid + * @param companyId the company ID + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByUuid_C( + java.lang.String uuid, long companyId, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().findByUuid_C(uuid, companyId, start, end); + } + + /** + * Returns an ordered range of all the pratica attenzionatas where uuid = ? and companyId = ?. + * + *

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

+ * + * @param uuid the uuid + * @param companyId the company ID + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static java.util.List findByUuid_C( + java.lang.String uuid, long companyId, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .findByUuid_C(uuid, companyId, start, end, orderByComparator); + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_C_First( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence() + .findByUuid_C_First(uuid, companyId, orderByComparator); + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_C_First( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByUuid_C_First(uuid, companyId, orderByComparator); + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata findByUuid_C_Last( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence() + .findByUuid_C_Last(uuid, companyId, orderByComparator); + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata fetchByUuid_C_Last( + java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence() + .fetchByUuid_C_Last(uuid, companyId, orderByComparator); + } + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + public static it.tref.liferay.portos.bo.model.PraticaAttenzionata[] findByUuid_C_PrevAndNext( + long praticaAttenzionataId, java.lang.String uuid, long companyId, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + throws com.liferay.portal.kernel.exception.SystemException, + it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException { + return getPersistence() + .findByUuid_C_PrevAndNext(praticaAttenzionataId, uuid, + companyId, orderByComparator); + } + + /** + * Removes all the pratica attenzionatas where uuid = ? and companyId = ? from the database. + * + * @param uuid the uuid + * @param companyId the company ID + * @throws SystemException if a system exception occurred + */ + public static void removeByUuid_C(java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException { + getPersistence().removeByUuid_C(uuid, companyId); + } + + /** + * Returns the number of pratica attenzionatas where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + public static int countByUuid_C(java.lang.String uuid, long companyId) + throws com.liferay.portal.kernel.exception.SystemException { + return getPersistence().countByUuid_C(uuid, companyId); + } + /** * Returns all the pratica attenzionatas where verificata = ?. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-db2.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-db2.sql index 4c306aca..47e9d05a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-db2.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-db2.sql @@ -130,7 +130,8 @@ create table portos_bo_Comune ( stato smallint, disabilitato smallint, mailSuap varchar(75), - mailSue varchar(75) + mailSue varchar(75), + praticaOspedali smallint ); create table portos_bo_Comunicazione ( @@ -661,6 +662,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75), praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, @@ -1039,6 +1041,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-derby.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-derby.sql index 6f31d00f..06d193cc 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-derby.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-derby.sql @@ -130,7 +130,8 @@ create table portos_bo_Comune ( stato smallint, disabilitato smallint, mailSuap varchar(75), - mailSue varchar(75) + mailSue varchar(75), + praticaOspedali smallint ); create table portos_bo_Comunicazione ( @@ -661,6 +662,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75), praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, @@ -1039,6 +1041,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-firebird.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-firebird.sql index 19b7d664..9017aba0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-firebird.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-firebird.sql @@ -4,7 +4,7 @@ create table portos_bo_AllegatoManuale (uuid_ varchar(75),allegatoManualeId int6 create table portos_bo_Asseverazione (uuid_ varchar(75),asseverazioneId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,intPraticaId int64,dettPraticaId int64,fileEntryId int64,soggettoId int64,tipologia varchar(75),esito varchar(75),dtEsito timestamp,mezzo varchar(75),codiceFiscale varchar(75),dichiarazioni blob); create table portos_bo_Avviso (uuid_ varchar(75),avvisoId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,descLong varchar(4000),dtAvviso timestamp,tipoAvviso varchar(10),tipoDocumento varchar(75),fileEntryIdTemplate int64,fileEntryIdBase int64,fileEntryIdInvio int64,fileEntryIdProtocollo int64,oldFileEntryIdBase int64,oldFileEntryIdInvio int64,dtCreateFileEntryInvio timestamp,userCodiceFiscalePrimaFirma varchar(75),firmaInCorso smallint,transactionIdPrimaFirma varchar(75),inviato varchar(75),dtInvio timestamp,annullato smallint,errore smallint,signal smallint,dtInvioSignal timestamp,tempistica smallint,dtTempistica timestamp,jsonParameters blob,protocollo varchar(75),dtProtocollo timestamp,oggettoProtocollo blob,inviatoTecnico smallint,rifiutato smallint,dtRifiuto timestamp,commentoRifiuto varchar(4000),oldAvvisoId int64,intPraticaId int64,controlloPraticaId int64,classPk int64,className varchar(75)); create table portos_bo_Collaudo (uuid_ varchar(75),collaudoId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,intPraticaId int64,protocollo varchar(75),dtProtocollo timestamp,parziale smallint,completata smallint,gestita smallint,numero int64,codiceFiscaleDelegato varchar(75),dataEffettuazione timestamp,dataCollaudo timestamp,noteCollaudo varchar(4000),pagamentoId int64,codicePagamento varchar(75),causalePagamento varchar(75),mezzoPagamento varchar(75),normEsenteBollo smallint,importoBolli varchar(75)); -create table portos_bo_Comune (uuid_ varchar(75),comuneId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,codiceProvincia varchar(75),codiceComune varchar(75),codiceIstat varchar(6),codiceBelfiore varchar(75),denominazione varchar(250),provincia smallint,stato smallint,disabilitato smallint,mailSuap varchar(75),mailSue varchar(75)); +create table portos_bo_Comune (uuid_ varchar(75),comuneId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,codiceProvincia varchar(75),codiceComune varchar(75),codiceIstat varchar(6),codiceBelfiore varchar(75),denominazione varchar(250),provincia smallint,stato smallint,disabilitato smallint,mailSuap varchar(75),mailSue varchar(75),praticaOspedali smallint); create table portos_bo_Comunicazione (uuid_ varchar(75),comunicazioneId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,intPraticaId int64,domanda varchar(4000),risposta varchar(4000),dtRisposta timestamp); create table portos_bo_Configurazione (uuid_ varchar(75),configurazioneId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,chiave varchar(250),valore varchar(1000)); create table portos_bo_ControlloPratica (uuid_ varchar(75),controlloPraticaId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,dettPraticaId int64,intPraticaId int64,parereGeologo varchar(75),status integer,statusByUserId int64,statusByUserName varchar(75),statusDate timestamp); @@ -20,7 +20,7 @@ create table portos_bo_InizioLavori (inizioLavoriId int64 not null primary key,c create table portos_bo_IntPratica (uuid_ varchar(75),intPraticaId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,tipoPratica varchar(75),territorioId int64,tipoProcedura varchar(75),dtAnnullamento timestamp,docPraticaAnnullamentoId int64,dtSorteggio timestamp,statoPratica varchar(10),numeroProgetto varchar(75),validata smallint,status integer,statusByUserId int64,statusDate timestamp,esitoControllo integer,dtPratica timestamp,sospesa smallint,dtSospensione timestamp,codiceFiscaleDelegatoFineLavori varchar(75),codiceFiscaleDelegatoCollaudo varchar(75),fineLavoriParziale smallint,fineLavoriTotale smallint,collaudoParziale smallint,collaudoTotale smallint,controlloObbligatorio smallint,praticaOspedaliera smallint,inLavorazioneSue smallint); create table portos_bo_Pagamento (uuid_ varchar(75),pagamentoId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,intPraticaId int64,classPk int64,className varchar(75),fileEntryId int64,oldFileEntryId int64,tipoPagamento varchar(75),url varchar(4000),codice varchar(75),causale varchar(75),mezzo varchar(75),codiceFiscaleCommittente varchar(75),importo varchar(75),utilizzata varchar(75),utilizzataSostituita varchar(75),otf smallint,otfCreateDate timestamp,emailPending smallint,oldPagamentoId int64); create table portos_bo_ParereGeo (uuid_ varchar(75),parereGeologoId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,geologoUserId int64,parere varchar(4000),intPraticaId int64,dettPraticaId int64,fileEntryId int64,dtRichista timestamp,dtCompilazione timestamp,status integer); -create table portos_bo_PraticaAttenzionata (praticaAttenzionataId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,intPraticaId int64,fineLavoriId int64,numeroProgetto varchar(75),dataFineLavoriTotale timestamp,dataRelazioneFineLavoriTotale timestamp,verificata smallint,dataVerifica timestamp); +create table portos_bo_PraticaAttenzionata (uuid_ varchar(75),praticaAttenzionataId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,intPraticaId int64,fineLavoriId int64,numeroProgetto varchar(75),dataFineLavoriTotale timestamp,dataRelazioneFineLavoriTotale timestamp,verificata smallint,dataVerifica timestamp); create table portos_bo_Provincia (provinciaId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,codiceProvincia varchar(3),provincia varchar(250),regione varchar(75),sigla varchar(75)); create table portos_bo_Soggetto (uuid_ varchar(75),soggettoId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,dettPraticaId int64,intPraticaId int64,nome varchar(500),cognome varchar(500),codiceFiscale varchar(16),codiceFiscaleDelegato varchar(75),dataNascita timestamp,provinciaNascita varchar(75),comuneNascita varchar(75),comuneDomicilio varchar(75),comuneDomicilioEstero varchar(75),provinciaDomicilio varchar(75),viaDomicilio varchar(250),numeroCivicoDomicilio varchar(75),capDomicilio varchar(75),domicilioExtra varchar(250),comune varchar(75),comuneEstero varchar(75),provincia varchar(75),via varchar(250),numeroCivico varchar(75),cap varchar(75),denominazione varchar(600),sedeLegale varchar(75),legaleRap varchar(75),dataNascitaRap timestamp,provinciaNascitaRap varchar(75),comuneNascitaRap varchar(75),viaRap varchar(75),numeroCivicoRap varchar(75),capRap varchar(75),provinciaRap varchar(75),comuneRap varchar(75),comuneRapEstero varchar(75),albo varchar(75),alboDescr varchar(150),regAlbo varchar(75),provinciaAlbo varchar(75),numIscrAlbo varchar(75),telefono varchar(75),fax varchar(75),email varchar(75),tipologiaSoggetto varchar(75),aggiuntivo smallint,rimosso smallint,tmp smallint,ambitoAttivita varchar(4000),ambitoProfessione varchar(75),intPraticaIdRimozione int64,dettPraticaIdRimozione int64,dtDataRimozione timestamp,sostituitoDa int64,soggettoSostituitoId int64,oldSoggettoId int64,fileVariazioneId int64); create table portos_bo_Sorteggio (uuid_ varchar(75),sorteggioId int64 not null primary key,companyId int64,userId int64,userName varchar(75),createDate timestamp,modifiedDate timestamp,groupId int64,status integer,statusByUserId int64,statusByUserName varchar(75),statusDate timestamp,intPraticaId int64,dettPraticaId int64,note varchar(4000),anno varchar(4),mese varchar(2),settimana integer,dtSorteggio timestamp,stato varchar(10),dettagli varchar(4000),numeroEstrazione int64,pratica varchar(4000),committente varchar(4000),comune varchar(75),provincia varchar(75),tecnico varchar(75),mesePrecedente varchar(75),esterna smallint,praticaEsternaId int64,oldSorteggioId int64); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-informix.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-informix.sql index a6692866..4ed6174d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-informix.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-informix.sql @@ -149,7 +149,8 @@ create table portos_bo_Comune ( stato boolean, disabilitato boolean, mailSuap varchar(75), - mailSue varchar(75) + mailSue varchar(75), + praticaOspedali boolean ) extent size 16 next size 16 lock mode row; @@ -712,6 +713,7 @@ extent size 16 next size 16 lock mode row; create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75), praticaAttenzionataId int8 not null primary key, companyId int8, userId int8, @@ -1106,6 +1108,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-mysql.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-mysql.sql index 6208192a..e5d0f6a5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-mysql.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-mysql.sql @@ -131,7 +131,8 @@ create table portos_bo_Comune ( stato tinyint, disabilitato tinyint, mailSuap varchar(75) null, - mailSue varchar(75) null + mailSue varchar(75) null, + praticaOspedali tinyint ) engine InnoDB; create table portos_bo_Comunicazione ( @@ -662,6 +663,7 @@ create table portos_bo_ParereGeo ( ) engine InnoDB; create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75) null, praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, @@ -1040,6 +1042,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-oracle.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-oracle.sql index 8a7d1b2a..5c00b6ad 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-oracle.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-oracle.sql @@ -133,7 +133,8 @@ create table portos_bo_Comune ( stato number(1, 0), disabilitato number(1, 0), mailSuap VARCHAR2(75 CHAR) null, - mailSue VARCHAR2(75 CHAR) null + mailSue VARCHAR2(75 CHAR) null, + praticaOspedali number(1, 0) ); create table portos_bo_Comunicazione ( @@ -664,6 +665,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ VARCHAR2(75 CHAR) null, praticaAttenzionataId number(30,0) not null primary key, companyId number(30,0), userId number(30,0), @@ -1042,6 +1044,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-postgresql.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-postgresql.sql index ab0c04c4..f165e694 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-postgresql.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-postgresql.sql @@ -131,7 +131,8 @@ create table portos_bo_Comune ( stato bool, disabilitato bool, mailSuap varchar(75) null, - mailSue varchar(75) null + mailSue varchar(75) null, + praticaOspedali bool ); create table portos_bo_Comunicazione ( @@ -662,6 +663,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75) null, praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, @@ -1040,6 +1042,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-sql-server.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-sql-server.sql index cd2fbf81..b0afcda0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-sql-server.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-sql-server.sql @@ -134,7 +134,8 @@ create table portos_bo_Comune ( stato bit, disabilitato bit, mailSuap nvarchar(75) null, - mailSue nvarchar(75) null + mailSue nvarchar(75) null, + praticaOspedali bit ); create table portos_bo_Comunicazione ( @@ -665,6 +666,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ nvarchar(75) null, praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, @@ -1043,6 +1045,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-sybase.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-sybase.sql index 8afe59f1..e0e21c5b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-sybase.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/create/create-sybase.sql @@ -140,7 +140,8 @@ create table portos_bo_Comune ( stato int, disabilitato int, mailSuap varchar(75) null, - mailSue varchar(75) null + mailSue varchar(75) null, + praticaOspedali int ) go @@ -687,6 +688,7 @@ create table portos_bo_ParereGeo ( go create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75) null, praticaAttenzionataId decimal(20,0) not null primary key, companyId decimal(20,0), userId decimal(20,0), diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties index 90448aba..0e605aff 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties @@ -185,6 +185,9 @@ IX_635441BE=portos_bo_ParereGeo.UUID_G IX_24A66C6C=portos_bo_ParereGeo.Uuid IX_A5C9DC3C=portos_bo_ParereGeo.Uuid_C +IX_7EBBE38C=portos_bo_PraticaAttenzionata.UUID_G +IX_18E0EADE=portos_bo_PraticaAttenzionata.Uuid +IX_85D0428A=portos_bo_PraticaAttenzionata.Uuid_C IX_CBCCC5BE=portos_bo_PraticaAttenzionata.Verificata IX_360E605D=portos_bo_Provincia.C_C diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql index 93e5efcb..a71e456c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-db2.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-db2.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-db2.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-db2.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-derby.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-derby.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-derby.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-derby.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-firebird.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-firebird.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-firebird.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-firebird.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-hypersonic.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-hypersonic.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-hypersonic.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-hypersonic.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-informix.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-informix.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-informix.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-informix.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-ingres.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-ingres.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-ingres.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-ingres.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-interbase.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-interbase.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-interbase.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-interbase.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-jdatastore.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-jdatastore.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-jdatastore.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-jdatastore.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-mysql.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-mysql.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-mysql.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-mysql.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-oracle.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-oracle.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-oracle.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-oracle.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-postgresql.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-postgresql.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-postgresql.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-postgresql.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-sap.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-sap.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-sap.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-sap.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-sql-server.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-sql-server.sql index ddf83c30..570faaf9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-sql-server.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes/indexes-sql-server.sql @@ -181,6 +181,9 @@ create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); +create index IX_18E0EADE on portos_bo_PraticaAttenzionata (uuid_); +create index IX_85D0428A on portos_bo_PraticaAttenzionata (uuid_, companyId); +create unique index IX_7EBBE38C on portos_bo_PraticaAttenzionata (uuid_, groupId); create index IX_CBCCC5BE on portos_bo_PraticaAttenzionata (verificata); create index IX_A81834CD on portos_bo_Provincia (companyId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql index 21ffc04a..af546f73 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql @@ -659,6 +659,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ VARCHAR(75) null, praticaAttenzionataId LONG not null primary key, companyId LONG, userId LONG, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-db2.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-db2.sql index 64dde1d8..ac3c0e34 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-db2.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-db2.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato smallint, disabilitato smallint, mailSuap varchar(75), - mailSue varchar(75) + mailSue varchar(75), + praticaOspedali smallint ); create table portos_bo_Comunicazione ( @@ -658,6 +659,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75), praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-derby.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-derby.sql index 16fa48f2..fe062a8c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-derby.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-derby.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato smallint, disabilitato smallint, mailSuap varchar(75), - mailSue varchar(75) + mailSue varchar(75), + praticaOspedali smallint ); create table portos_bo_Comunicazione ( @@ -658,6 +659,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75), praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-firebird.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-firebird.sql index 85313e53..8d3994be 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-firebird.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-firebird.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato smallint, disabilitato smallint, mailSuap varchar(75), - mailSue varchar(75) + mailSue varchar(75), + praticaOspedali smallint ); create table portos_bo_Comunicazione ( @@ -658,6 +659,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75), praticaAttenzionataId int64 not null primary key, companyId int64, userId int64, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-hypersonic.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-hypersonic.sql index c2be874a..5f0a1ac8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-hypersonic.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-hypersonic.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato bit, disabilitato bit, mailSuap varchar(75) null, - mailSue varchar(75) null + mailSue varchar(75) null, + praticaOspedali bit ); create table portos_bo_Comunicazione ( @@ -658,6 +659,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75) null, praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-informix.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-informix.sql index 2d7c719e..45364361 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-informix.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-informix.sql @@ -135,7 +135,8 @@ create table portos_bo_Comune ( stato boolean, disabilitato boolean, mailSuap varchar(75), - mailSue varchar(75) + mailSue varchar(75), + praticaOspedali boolean ) extent size 16 next size 16 lock mode row; @@ -698,6 +699,7 @@ extent size 16 next size 16 lock mode row; create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75), praticaAttenzionataId int8 not null primary key, companyId int8, userId int8, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-ingres.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-ingres.sql index 7a240fc4..6542b637 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-ingres.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-ingres.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato tinyint, disabilitato tinyint, mailSuap varchar(75) null, - mailSue varchar(75) null + mailSue varchar(75) null, + praticaOspedali tinyint ); create table portos_bo_Comunicazione ( @@ -658,6 +659,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75) null, praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-interbase.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-interbase.sql index 85313e53..8d3994be 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-interbase.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-interbase.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato smallint, disabilitato smallint, mailSuap varchar(75), - mailSue varchar(75) + mailSue varchar(75), + praticaOspedali smallint ); create table portos_bo_Comunicazione ( @@ -658,6 +659,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75), praticaAttenzionataId int64 not null primary key, companyId int64, userId int64, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-jdatastore.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-jdatastore.sql index 69336393..4cda3f5a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-jdatastore.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-jdatastore.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato boolean, disabilitato boolean, mailSuap varchar(75) null, - mailSue varchar(75) null + mailSue varchar(75) null, + praticaOspedali boolean ); create table portos_bo_Comunicazione ( @@ -658,6 +659,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75) null, praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-mysql.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-mysql.sql index 80d26804..598d06af 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-mysql.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-mysql.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato tinyint, disabilitato tinyint, mailSuap varchar(75) null, - mailSue varchar(75) null + mailSue varchar(75) null, + praticaOspedali tinyint ) engine InnoDB; create table portos_bo_Comunicazione ( @@ -658,6 +659,7 @@ create table portos_bo_ParereGeo ( ) engine InnoDB; create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75) null, praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-oracle.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-oracle.sql index d051b527..948e098b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-oracle.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-oracle.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato number(1, 0), disabilitato number(1, 0), mailSuap VARCHAR2(75 CHAR) null, - mailSue VARCHAR2(75 CHAR) null + mailSue VARCHAR2(75 CHAR) null, + praticaOspedali number(1, 0) ); create table portos_bo_Comunicazione ( @@ -658,6 +659,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ VARCHAR2(75 CHAR) null, praticaAttenzionataId number(30,0) not null primary key, companyId number(30,0), userId number(30,0), diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-postgresql.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-postgresql.sql index b553f156..f90f902e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-postgresql.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-postgresql.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato bool, disabilitato bool, mailSuap varchar(75) null, - mailSue varchar(75) null + mailSue varchar(75) null, + praticaOspedali bool ); create table portos_bo_Comunicazione ( @@ -658,6 +659,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75) null, praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-sap.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-sap.sql index 9fc808c9..a7b5b20b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-sap.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-sap.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato boolean, disabilitato boolean, mailSuap varchar(75) null, - mailSue varchar(75) null + mailSue varchar(75) null, + praticaOspedali boolean ); create table portos_bo_Comunicazione ( @@ -658,6 +659,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75) null, praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-sql-server.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-sql-server.sql index d60a6c3c..76dcb482 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-sql-server.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-sql-server.sql @@ -127,7 +127,8 @@ create table portos_bo_Comune ( stato bit, disabilitato bit, mailSuap nvarchar(75) null, - mailSue nvarchar(75) null + mailSue nvarchar(75) null, + praticaOspedali bit ); create table portos_bo_Comunicazione ( @@ -658,6 +659,7 @@ create table portos_bo_ParereGeo ( ); create table portos_bo_PraticaAttenzionata ( + uuid_ nvarchar(75) null, praticaAttenzionataId bigint not null primary key, companyId bigint, userId bigint, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-sybase.sql b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-sybase.sql index 22046a1f..929aaa4a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-sybase.sql +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables/tables-sybase.sql @@ -131,7 +131,8 @@ create table portos_bo_Comune ( stato int, disabilitato int, mailSuap varchar(75) null, - mailSue varchar(75) null + mailSue varchar(75) null, + praticaOspedali int ) go @@ -678,6 +679,7 @@ create table portos_bo_ParereGeo ( go create table portos_bo_PraticaAttenzionata ( + uuid_ varchar(75) null, praticaAttenzionataId decimal(20,0) not null primary key, companyId decimal(20,0), userId decimal(20,0), diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml index 9a0524ee..21aabb64 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml @@ -684,6 +684,7 @@ + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml index 4e1f37e5..f3ac9d4d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml @@ -729,6 +729,7 @@
+ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml index a2c90932..de1fbe0b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml @@ -889,6 +889,9 @@ + + + diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataCacheModel.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataCacheModel.java index 707567d2..ab288dd1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataCacheModel.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PraticaAttenzionataCacheModel.java @@ -38,9 +38,11 @@ public class PraticaAttenzionataCacheModel implements CacheModel getModelAttributes() { Map attributes = new HashMap(); + attributes.put("uuid", getUuid()); attributes.put("praticaAttenzionataId", getPraticaAttenzionataId()); attributes.put("companyId", getCompanyId()); attributes.put("userId", getUserId()); @@ -213,6 +220,12 @@ public class PraticaAttenzionataModelImpl extends BaseModelImpl attributes) { + String uuid = (String)attributes.get("uuid"); + + if (uuid != null) { + setUuid(uuid); + } + Long praticaAttenzionataId = (Long)attributes.get( "praticaAttenzionataId"); @@ -300,6 +313,30 @@ public class PraticaAttenzionataModelImpl extends BaseModelImpl toCacheModel() { PraticaAttenzionataCacheModel praticaAttenzionataCacheModel = new PraticaAttenzionataCacheModel(); + praticaAttenzionataCacheModel.uuid = getUuid(); + + String uuid = praticaAttenzionataCacheModel.uuid; + + if ((uuid != null) && (uuid.length() == 0)) { + praticaAttenzionataCacheModel.uuid = null; + } + praticaAttenzionataCacheModel.praticaAttenzionataId = getPraticaAttenzionataId(); praticaAttenzionataCacheModel.companyId = getCompanyId(); @@ -680,9 +766,11 @@ public class PraticaAttenzionataModelImpl extends BaseModelImpl"); sb.append("it.tref.liferay.portos.bo.model.PraticaAttenzionata"); sb.append(""); + sb.append( + "uuid"); sb.append( "praticaAttenzionataId[] _escapedModelInterfaces = new Class[] { PraticaAttenzionata.class }; + private String _uuid; + private String _originalUuid; private long _praticaAttenzionataId; private long _companyId; + private long _originalCompanyId; + private boolean _setOriginalCompanyId; private long _userId; private String _userUuid; private String _userName; private Date _createDate; private Date _modifiedDate; private long _groupId; + private long _originalGroupId; + private boolean _setOriginalGroupId; private long _intPraticaId; private long _fineLavoriId; private String _numeroProgetto; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceBaseImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceBaseImpl.java index 68749235..48604dda 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceBaseImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceBaseImpl.java @@ -244,6 +244,35 @@ public abstract class PraticaAttenzionataLocalServiceBaseImpl return praticaAttenzionataPersistence.fetchByPrimaryKey(praticaAttenzionataId); } + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchPraticaAttenzionataByUuidAndCompanyId( + String uuid, long companyId) throws SystemException { + return praticaAttenzionataPersistence.fetchByUuid_C_First(uuid, + companyId, null); + } + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchPraticaAttenzionataByUuidAndGroupId( + String uuid, long groupId) throws SystemException { + return praticaAttenzionataPersistence.fetchByUUID_G(uuid, groupId); + } + /** * Returns the pratica attenzionata with the primary key. * @@ -264,6 +293,37 @@ public abstract class PraticaAttenzionataLocalServiceBaseImpl return praticaAttenzionataPersistence.findByPrimaryKey(primaryKeyObj); } + /** + * Returns the pratica attenzionata with the matching UUID and company. + * + * @param uuid the pratica attenzionata's UUID + * @param companyId the primary key of the company + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata getPraticaAttenzionataByUuidAndCompanyId( + String uuid, long companyId) throws PortalException, SystemException { + return praticaAttenzionataPersistence.findByUuid_C_First(uuid, + companyId, null); + } + + /** + * Returns the pratica attenzionata matching the UUID and group. + * + * @param uuid the pratica attenzionata's UUID + * @param groupId the primary key of the group + * @return the matching pratica attenzionata + * @throws PortalException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata getPraticaAttenzionataByUuidAndGroupId( + String uuid, long groupId) throws PortalException, SystemException { + return praticaAttenzionataPersistence.findByUUID_G(uuid, groupId); + } + /** * Returns a range of all the pratica attenzionatas. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceClpInvoker.java index 1f623df3..f78c6519 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceClpInvoker.java @@ -84,64 +84,80 @@ public class PraticaAttenzionataLocalServiceClpInvoker { _methodParameterTypes10 = new String[] { "long" }; - _methodName11 = "getPraticaAttenzionata"; + _methodName11 = "fetchPraticaAttenzionataByUuidAndCompanyId"; - _methodParameterTypes11 = new String[] { "long" }; + _methodParameterTypes11 = new String[] { "java.lang.String", "long" }; - _methodName12 = "getPersistedModel"; + _methodName12 = "fetchPraticaAttenzionataByUuidAndGroupId"; - _methodParameterTypes12 = new String[] { "java.io.Serializable" }; + _methodParameterTypes12 = new String[] { "java.lang.String", "long" }; - _methodName13 = "getPraticaAttenzionatas"; + _methodName13 = "getPraticaAttenzionata"; - _methodParameterTypes13 = new String[] { "int", "int" }; + _methodParameterTypes13 = new String[] { "long" }; - _methodName14 = "getPraticaAttenzionatasCount"; + _methodName14 = "getPersistedModel"; - _methodParameterTypes14 = new String[] { }; + _methodParameterTypes14 = new String[] { "java.io.Serializable" }; - _methodName15 = "updatePraticaAttenzionata"; + _methodName15 = "getPraticaAttenzionataByUuidAndCompanyId"; - _methodParameterTypes15 = new String[] { + _methodParameterTypes15 = new String[] { "java.lang.String", "long" }; + + _methodName16 = "getPraticaAttenzionataByUuidAndGroupId"; + + _methodParameterTypes16 = new String[] { "java.lang.String", "long" }; + + _methodName17 = "getPraticaAttenzionatas"; + + _methodParameterTypes17 = new String[] { "int", "int" }; + + _methodName18 = "getPraticaAttenzionatasCount"; + + _methodParameterTypes18 = new String[] { }; + + _methodName19 = "updatePraticaAttenzionata"; + + _methodParameterTypes19 = new String[] { "it.tref.liferay.portos.bo.model.PraticaAttenzionata" }; - _methodName178 = "getBeanIdentifier"; + _methodName182 = "getBeanIdentifier"; - _methodParameterTypes178 = new String[] { }; + _methodParameterTypes182 = new String[] { }; - _methodName179 = "setBeanIdentifier"; + _methodName183 = "setBeanIdentifier"; - _methodParameterTypes179 = new String[] { "java.lang.String" }; + _methodParameterTypes183 = new String[] { "java.lang.String" }; - _methodName184 = "evalAndEventuallyAddPraticaAttenzionata"; + _methodName188 = "evalAndEventuallyAddPraticaAttenzionata"; - _methodParameterTypes184 = new String[] { + _methodParameterTypes188 = new String[] { "long", "long", "java.lang.String", "java.util.Date", "java.util.Date", "com.liferay.portal.service.ServiceContext" }; - _methodName185 = "getPraticheDaVerificare"; + _methodName189 = "getPraticheDaVerificare"; - _methodParameterTypes185 = new String[] { }; + _methodParameterTypes189 = new String[] { }; - _methodName186 = "countPraticheDaVerificare"; + _methodName190 = "countPraticheDaVerificare"; - _methodParameterTypes186 = new String[] { }; + _methodParameterTypes190 = new String[] { }; - _methodName187 = "getPraticheVerificate"; + _methodName191 = "getPraticheVerificate"; - _methodParameterTypes187 = new String[] { }; + _methodParameterTypes191 = new String[] { }; - _methodName188 = "verificaPraticaAttenzionata"; + _methodName192 = "verificaPraticaAttenzionata"; - _methodParameterTypes188 = new String[] { + _methodParameterTypes192 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName189 = "verificaPraticaAttenzionata"; + _methodName193 = "verificaPraticaAttenzionata"; - _methodParameterTypes189 = new String[] { + _methodParameterTypes193 = new String[] { "it.tref.liferay.portos.bo.model.PraticaAttenzionata", "com.liferay.portal.service.ServiceContext" }; @@ -212,44 +228,68 @@ public class PraticaAttenzionataLocalServiceClpInvoker { if (_methodName11.equals(name) && Arrays.deepEquals(_methodParameterTypes11, parameterTypes)) { - return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionata(((Long)arguments[0]).longValue()); + return PraticaAttenzionataLocalServiceUtil.fetchPraticaAttenzionataByUuidAndCompanyId((java.lang.String)arguments[0], + ((Long)arguments[1]).longValue()); } if (_methodName12.equals(name) && Arrays.deepEquals(_methodParameterTypes12, parameterTypes)) { - return PraticaAttenzionataLocalServiceUtil.getPersistedModel((java.io.Serializable)arguments[0]); + return PraticaAttenzionataLocalServiceUtil.fetchPraticaAttenzionataByUuidAndGroupId((java.lang.String)arguments[0], + ((Long)arguments[1]).longValue()); } if (_methodName13.equals(name) && Arrays.deepEquals(_methodParameterTypes13, parameterTypes)) { - return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionatas(((Integer)arguments[0]).intValue(), - ((Integer)arguments[1]).intValue()); + return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionata(((Long)arguments[0]).longValue()); } if (_methodName14.equals(name) && Arrays.deepEquals(_methodParameterTypes14, parameterTypes)) { - return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionatasCount(); + return PraticaAttenzionataLocalServiceUtil.getPersistedModel((java.io.Serializable)arguments[0]); } if (_methodName15.equals(name) && Arrays.deepEquals(_methodParameterTypes15, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionataByUuidAndCompanyId((java.lang.String)arguments[0], + ((Long)arguments[1]).longValue()); + } + + if (_methodName16.equals(name) && + Arrays.deepEquals(_methodParameterTypes16, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionataByUuidAndGroupId((java.lang.String)arguments[0], + ((Long)arguments[1]).longValue()); + } + + if (_methodName17.equals(name) && + Arrays.deepEquals(_methodParameterTypes17, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionatas(((Integer)arguments[0]).intValue(), + ((Integer)arguments[1]).intValue()); + } + + if (_methodName18.equals(name) && + Arrays.deepEquals(_methodParameterTypes18, parameterTypes)) { + return PraticaAttenzionataLocalServiceUtil.getPraticaAttenzionatasCount(); + } + + if (_methodName19.equals(name) && + Arrays.deepEquals(_methodParameterTypes19, parameterTypes)) { return PraticaAttenzionataLocalServiceUtil.updatePraticaAttenzionata((it.tref.liferay.portos.bo.model.PraticaAttenzionata)arguments[0]); } - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { + if (_methodName182.equals(name) && + Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { return PraticaAttenzionataLocalServiceUtil.getBeanIdentifier(); } - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { + if (_methodName183.equals(name) && + Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { PraticaAttenzionataLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]); return null; } - if (_methodName184.equals(name) && - Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { + if (_methodName188.equals(name) && + Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { return PraticaAttenzionataLocalServiceUtil.evalAndEventuallyAddPraticaAttenzionata(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2], (java.util.Date)arguments[3], @@ -257,29 +297,29 @@ public class PraticaAttenzionataLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[5]); } - if (_methodName185.equals(name) && - Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) { + if (_methodName189.equals(name) && + Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { return PraticaAttenzionataLocalServiceUtil.getPraticheDaVerificare(); } - if (_methodName186.equals(name) && - Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { + if (_methodName190.equals(name) && + Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { return PraticaAttenzionataLocalServiceUtil.countPraticheDaVerificare(); } - if (_methodName187.equals(name) && - Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { + if (_methodName191.equals(name) && + Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { return PraticaAttenzionataLocalServiceUtil.getPraticheVerificate(); } - if (_methodName188.equals(name) && - Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { + if (_methodName192.equals(name) && + Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { return PraticaAttenzionataLocalServiceUtil.verificaPraticaAttenzionata(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName189.equals(name) && - Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { + if (_methodName193.equals(name) && + Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { return PraticaAttenzionataLocalServiceUtil.verificaPraticaAttenzionata((it.tref.liferay.portos.bo.model.PraticaAttenzionata)arguments[0], (com.liferay.portal.service.ServiceContext)arguments[1]); } @@ -319,20 +359,28 @@ public class PraticaAttenzionataLocalServiceClpInvoker { private String[] _methodParameterTypes14; private String _methodName15; private String[] _methodParameterTypes15; - private String _methodName178; - private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; - private String _methodName184; - private String[] _methodParameterTypes184; - private String _methodName185; - private String[] _methodParameterTypes185; - private String _methodName186; - private String[] _methodParameterTypes186; - private String _methodName187; - private String[] _methodParameterTypes187; + private String _methodName16; + private String[] _methodParameterTypes16; + private String _methodName17; + private String[] _methodParameterTypes17; + private String _methodName18; + private String[] _methodParameterTypes18; + private String _methodName19; + private String[] _methodParameterTypes19; + private String _methodName182; + private String[] _methodParameterTypes182; + private String _methodName183; + private String[] _methodParameterTypes183; private String _methodName188; private String[] _methodParameterTypes188; private String _methodName189; private String[] _methodParameterTypes189; + private String _methodName190; + private String[] _methodParameterTypes190; + private String _methodName191; + private String[] _methodParameterTypes191; + private String _methodName192; + private String[] _methodParameterTypes192; + private String _methodName193; + private String[] _methodParameterTypes193; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistenceImpl.java index bc0d4d3d..33eb32c2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PraticaAttenzionataPersistenceImpl.java @@ -30,10 +30,13 @@ import com.liferay.portal.kernel.util.InstanceFactory; import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.kernel.util.PropsKeys; import com.liferay.portal.kernel.util.PropsUtil; +import com.liferay.portal.kernel.util.SetUtil; import com.liferay.portal.kernel.util.StringBundler; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringUtil; import com.liferay.portal.kernel.util.UnmodifiableList; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.uuid.PortalUUIDUtil; import com.liferay.portal.model.CacheModel; import com.liferay.portal.model.ModelListener; import com.liferay.portal.service.persistence.impl.BasePersistenceImpl; @@ -48,6 +51,7 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.Set; /** * The persistence implementation for the pratica attenzionata service. @@ -84,6 +88,1382 @@ public class PraticaAttenzionataPersistenceImpl extends BasePersistenceImpl findByUuid(String uuid) + throws SystemException { + return findByUuid(uuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the pratica attenzionatas where uuid = ?. + * + *

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

+ * + * @param uuid the uuid + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByUuid(String uuid, int start, int end) + throws SystemException { + return findByUuid(uuid, start, end, null); + } + + /** + * Returns an ordered range of all the pratica attenzionatas where uuid = ?. + * + *

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

+ * + * @param uuid the uuid + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByUuid(String uuid, 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_UUID; + finderArgs = new Object[] { uuid }; + } + else { + finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID; + finderArgs = new Object[] { uuid, start, end, orderByComparator }; + } + + List list = (List)FinderCacheUtil.getResult(finderPath, + finderArgs, this); + + if ((list != null) && !list.isEmpty()) { + for (PraticaAttenzionata praticaAttenzionata : list) { + if (!Validator.equals(uuid, praticaAttenzionata.getUuid())) { + 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_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_UUID_2); + } + + if (orderByComparator != null) { + appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, + orderByComparator); + } + else + if (pagination) { + query.append(PraticaAttenzionataModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + if (!pagination) { + list = (List)QueryUtil.list(q, + getDialect(), start, end, false); + + Collections.sort(list); + + list = new UnmodifiableList(list); + } + else { + list = (List)QueryUtil.list(q, + getDialect(), start, end); + } + + cacheResult(list); + + FinderCacheUtil.putResult(finderPath, finderArgs, list); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return list; + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByUuid_First(String uuid, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByUuid_First(uuid, + orderByComparator); + + if (praticaAttenzionata != null) { + return praticaAttenzionata; + } + + StringBundler msg = new StringBundler(4); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("uuid="); + msg.append(uuid); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchPraticaAttenzionataException(msg.toString()); + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByUuid_First(String uuid, + OrderByComparator orderByComparator) throws SystemException { + List list = findByUuid(uuid, 0, 1, + orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByUuid_Last(String uuid, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByUuid_Last(uuid, + orderByComparator); + + if (praticaAttenzionata != null) { + return praticaAttenzionata; + } + + StringBundler msg = new StringBundler(4); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("uuid="); + msg.append(uuid); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchPraticaAttenzionataException(msg.toString()); + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ?. + * + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByUuid_Last(String uuid, + OrderByComparator orderByComparator) throws SystemException { + int count = countByUuid(uuid); + + if (count == 0) { + return null; + } + + List list = findByUuid(uuid, count - 1, count, + orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where uuid = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param uuid the uuid + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata[] findByUuid_PrevAndNext( + long praticaAttenzionataId, String uuid, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = findByPrimaryKey(praticaAttenzionataId); + + Session session = null; + + try { + session = openSession(); + + PraticaAttenzionata[] array = new PraticaAttenzionataImpl[3]; + + array[0] = getByUuid_PrevAndNext(session, praticaAttenzionata, + uuid, orderByComparator, true); + + array[1] = praticaAttenzionata; + + array[2] = getByUuid_PrevAndNext(session, praticaAttenzionata, + uuid, orderByComparator, false); + + return array; + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + } + + protected PraticaAttenzionata getByUuid_PrevAndNext(Session session, + PraticaAttenzionata praticaAttenzionata, String uuid, + 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_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_UUID_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(PraticaAttenzionataModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Query q = session.createQuery(sql); + + q.setFirstResult(0); + q.setMaxResults(2); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + if (orderByComparator != null) { + Object[] values = orderByComparator.getOrderByConditionValues(praticaAttenzionata); + + for (Object value : values) { + qPos.add(value); + } + } + + List list = q.list(); + + if (list.size() == 2) { + return list.get(1); + } + else { + return null; + } + } + + /** + * Removes all the pratica attenzionatas where uuid = ? from the database. + * + * @param uuid the uuid + * @throws SystemException if a system exception occurred + */ + @Override + public void removeByUuid(String uuid) throws SystemException { + for (PraticaAttenzionata praticaAttenzionata : findByUuid(uuid, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { + remove(praticaAttenzionata); + } + } + + /** + * Returns the number of pratica attenzionatas where uuid = ?. + * + * @param uuid the uuid + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public int countByUuid(String uuid) throws SystemException { + FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID; + + Object[] finderArgs = new Object[] { uuid }; + + Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, + this); + + if (count == null) { + StringBundler query = new StringBundler(2); + + query.append(_SQL_COUNT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_UUID_2); + } + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + 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_UUID_UUID_1 = "praticaAttenzionata.uuid IS NULL"; + private static final String _FINDER_COLUMN_UUID_UUID_2 = "praticaAttenzionata.uuid = ?"; + private static final String _FINDER_COLUMN_UUID_UUID_3 = "(praticaAttenzionata.uuid IS NULL OR praticaAttenzionata.uuid = '')"; + public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, + PraticaAttenzionataImpl.class, FINDER_CLASS_NAME_ENTITY, + "fetchByUUID_G", + new String[] { String.class.getName(), Long.class.getName() }, + PraticaAttenzionataModelImpl.UUID_COLUMN_BITMASK | + PraticaAttenzionataModelImpl.GROUPID_COLUMN_BITMASK); + public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, Long.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUUID_G", + new String[] { String.class.getName(), Long.class.getName() }); + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or throws a {@link it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException} if it could not be found. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByUUID_G(String uuid, long groupId) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByUUID_G(uuid, groupId); + + if (praticaAttenzionata == null) { + StringBundler msg = new StringBundler(6); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("uuid="); + msg.append(uuid); + + msg.append(", groupId="); + msg.append(groupId); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + if (_log.isWarnEnabled()) { + _log.warn(msg.toString()); + } + + throw new NoSuchPraticaAttenzionataException(msg.toString()); + } + + return praticaAttenzionata; + } + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByUUID_G(String uuid, long groupId) + throws SystemException { + return fetchByUUID_G(uuid, groupId, true); + } + + /** + * Returns the pratica attenzionata where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. + * + * @param uuid the uuid + * @param groupId the group ID + * @param retrieveFromCache whether to use the finder cache + * @return the matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByUUID_G(String uuid, long groupId, + boolean retrieveFromCache) throws SystemException { + Object[] finderArgs = new Object[] { uuid, groupId }; + + Object result = null; + + if (retrieveFromCache) { + result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_UUID_G, + finderArgs, this); + } + + if (result instanceof PraticaAttenzionata) { + PraticaAttenzionata praticaAttenzionata = (PraticaAttenzionata)result; + + if (!Validator.equals(uuid, praticaAttenzionata.getUuid()) || + (groupId != praticaAttenzionata.getGroupId())) { + result = null; + } + } + + if (result == null) { + StringBundler query = new StringBundler(4); + + query.append(_SQL_SELECT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_G_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_G_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_G_UUID_2); + } + + query.append(_FINDER_COLUMN_UUID_G_GROUPID_2); + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + qPos.add(groupId); + + List list = q.list(); + + if (list.isEmpty()) { + FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, + finderArgs, list); + } + else { + PraticaAttenzionata praticaAttenzionata = list.get(0); + + result = praticaAttenzionata; + + cacheResult(praticaAttenzionata); + + if ((praticaAttenzionata.getUuid() == null) || + !praticaAttenzionata.getUuid().equals(uuid) || + (praticaAttenzionata.getGroupId() != groupId)) { + FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G, + finderArgs, praticaAttenzionata); + } + } + } + catch (Exception e) { + FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_UUID_G, + finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + if (result instanceof List) { + return null; + } + else { + return (PraticaAttenzionata)result; + } + } + + /** + * Removes the pratica attenzionata where uuid = ? and groupId = ? from the database. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the pratica attenzionata that was removed + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata removeByUUID_G(String uuid, long groupId) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = findByUUID_G(uuid, groupId); + + return remove(praticaAttenzionata); + } + + /** + * Returns the number of pratica attenzionatas where uuid = ? and groupId = ?. + * + * @param uuid the uuid + * @param groupId the group ID + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public int countByUUID_G(String uuid, long groupId) + throws SystemException { + FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_G; + + Object[] finderArgs = new Object[] { uuid, groupId }; + + Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, + this); + + if (count == null) { + StringBundler query = new StringBundler(3); + + query.append(_SQL_COUNT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_G_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_G_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_G_UUID_2); + } + + query.append(_FINDER_COLUMN_UUID_G_GROUPID_2); + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + qPos.add(groupId); + + 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_UUID_G_UUID_1 = "praticaAttenzionata.uuid IS NULL AND "; + private static final String _FINDER_COLUMN_UUID_G_UUID_2 = "praticaAttenzionata.uuid = ? AND "; + private static final String _FINDER_COLUMN_UUID_G_UUID_3 = "(praticaAttenzionata.uuid IS NULL OR praticaAttenzionata.uuid = '') AND "; + private static final String _FINDER_COLUMN_UUID_G_GROUPID_2 = "praticaAttenzionata.groupId = ?"; + public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, + PraticaAttenzionataImpl.class, + FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findByUuid_C", + new String[] { + String.class.getName(), Long.class.getName(), + + Integer.class.getName(), Integer.class.getName(), + OrderByComparator.class.getName() + }); + public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C = + new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, + PraticaAttenzionataImpl.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "findByUuid_C", + new String[] { String.class.getName(), Long.class.getName() }, + PraticaAttenzionataModelImpl.UUID_COLUMN_BITMASK | + PraticaAttenzionataModelImpl.COMPANYID_COLUMN_BITMASK); + public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, + PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, Long.class, + FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, "countByUuid_C", + new String[] { String.class.getName(), Long.class.getName() }); + + /** + * Returns all the pratica attenzionatas where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @return the matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByUuid_C(String uuid, long companyId) + throws SystemException { + return findByUuid_C(uuid, companyId, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + } + + /** + * Returns a range of all the pratica attenzionatas where uuid = ? and companyId = ?. + * + *

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

+ * + * @param uuid the uuid + * @param companyId the company ID + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @return the range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByUuid_C(String uuid, long companyId, + int start, int end) throws SystemException { + return findByUuid_C(uuid, companyId, start, end, null); + } + + /** + * Returns an ordered range of all the pratica attenzionatas where uuid = ? and companyId = ?. + * + *

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

+ * + * @param uuid the uuid + * @param companyId the company ID + * @param start the lower bound of the range of pratica attenzionatas + * @param end the upper bound of the range of pratica attenzionatas (not inclusive) + * @param orderByComparator the comparator to order the results by (optionally null) + * @return the ordered range of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public List findByUuid_C(String uuid, long companyId, + 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_UUID_C; + finderArgs = new Object[] { uuid, companyId }; + } + else { + finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C; + finderArgs = new Object[] { + uuid, companyId, + + start, end, orderByComparator + }; + } + + List list = (List)FinderCacheUtil.getResult(finderPath, + finderArgs, this); + + if ((list != null) && !list.isEmpty()) { + for (PraticaAttenzionata praticaAttenzionata : list) { + if (!Validator.equals(uuid, praticaAttenzionata.getUuid()) || + (companyId != praticaAttenzionata.getCompanyId())) { + list = null; + + break; + } + } + } + + if (list == null) { + StringBundler query = null; + + if (orderByComparator != null) { + query = new StringBundler(4 + + (orderByComparator.getOrderByFields().length * 3)); + } + else { + query = new StringBundler(4); + } + + query.append(_SQL_SELECT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_C_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_C_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_C_UUID_2); + } + + query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); + + if (orderByComparator != null) { + appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, + orderByComparator); + } + else + if (pagination) { + query.append(PraticaAttenzionataModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + qPos.add(companyId); + + if (!pagination) { + list = (List)QueryUtil.list(q, + getDialect(), start, end, false); + + Collections.sort(list); + + list = new UnmodifiableList(list); + } + else { + list = (List)QueryUtil.list(q, + getDialect(), start, end); + } + + cacheResult(list); + + FinderCacheUtil.putResult(finderPath, finderArgs, list); + } + catch (Exception e) { + FinderCacheUtil.removeResult(finderPath, finderArgs); + + throw processException(e); + } + finally { + closeSession(session); + } + } + + return list; + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByUuid_C_First(String uuid, long companyId, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByUuid_C_First(uuid, + companyId, orderByComparator); + + if (praticaAttenzionata != null) { + return praticaAttenzionata; + } + + StringBundler msg = new StringBundler(6); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("uuid="); + msg.append(uuid); + + msg.append(", companyId="); + msg.append(companyId); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchPraticaAttenzionataException(msg.toString()); + } + + /** + * Returns the first pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the first matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByUuid_C_First(String uuid, long companyId, + OrderByComparator orderByComparator) throws SystemException { + List list = findByUuid_C(uuid, companyId, 0, 1, + orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata findByUuid_C_Last(String uuid, long companyId, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = fetchByUuid_C_Last(uuid, + companyId, orderByComparator); + + if (praticaAttenzionata != null) { + return praticaAttenzionata; + } + + StringBundler msg = new StringBundler(6); + + msg.append(_NO_SUCH_ENTITY_WITH_KEY); + + msg.append("uuid="); + msg.append(uuid); + + msg.append(", companyId="); + msg.append(companyId); + + msg.append(StringPool.CLOSE_CURLY_BRACE); + + throw new NoSuchPraticaAttenzionataException(msg.toString()); + } + + /** + * Returns the last pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the last matching pratica attenzionata, or null if a matching pratica attenzionata could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata fetchByUuid_C_Last(String uuid, long companyId, + OrderByComparator orderByComparator) throws SystemException { + int count = countByUuid_C(uuid, companyId); + + if (count == 0) { + return null; + } + + List list = findByUuid_C(uuid, companyId, + count - 1, count, orderByComparator); + + if (!list.isEmpty()) { + return list.get(0); + } + + return null; + } + + /** + * Returns the pratica attenzionatas before and after the current pratica attenzionata in the ordered set where uuid = ? and companyId = ?. + * + * @param praticaAttenzionataId the primary key of the current pratica attenzionata + * @param uuid the uuid + * @param companyId the company ID + * @param orderByComparator the comparator to order the set by (optionally null) + * @return the previous, current, and next pratica attenzionata + * @throws it.tref.liferay.portos.bo.NoSuchPraticaAttenzionataException if a pratica attenzionata with the primary key could not be found + * @throws SystemException if a system exception occurred + */ + @Override + public PraticaAttenzionata[] findByUuid_C_PrevAndNext( + long praticaAttenzionataId, String uuid, long companyId, + OrderByComparator orderByComparator) + throws NoSuchPraticaAttenzionataException, SystemException { + PraticaAttenzionata praticaAttenzionata = findByPrimaryKey(praticaAttenzionataId); + + Session session = null; + + try { + session = openSession(); + + PraticaAttenzionata[] array = new PraticaAttenzionataImpl[3]; + + array[0] = getByUuid_C_PrevAndNext(session, praticaAttenzionata, + uuid, companyId, orderByComparator, true); + + array[1] = praticaAttenzionata; + + array[2] = getByUuid_C_PrevAndNext(session, praticaAttenzionata, + uuid, companyId, orderByComparator, false); + + return array; + } + catch (Exception e) { + throw processException(e); + } + finally { + closeSession(session); + } + } + + protected PraticaAttenzionata getByUuid_C_PrevAndNext(Session session, + PraticaAttenzionata praticaAttenzionata, String uuid, long companyId, + 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_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_C_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_C_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_C_UUID_2); + } + + query.append(_FINDER_COLUMN_UUID_C_COMPANYID_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(PraticaAttenzionataModelImpl.ORDER_BY_JPQL); + } + + String sql = query.toString(); + + Query q = session.createQuery(sql); + + q.setFirstResult(0); + q.setMaxResults(2); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + qPos.add(companyId); + + if (orderByComparator != null) { + Object[] values = orderByComparator.getOrderByConditionValues(praticaAttenzionata); + + for (Object value : values) { + qPos.add(value); + } + } + + List list = q.list(); + + if (list.size() == 2) { + return list.get(1); + } + else { + return null; + } + } + + /** + * Removes all the pratica attenzionatas where uuid = ? and companyId = ? from the database. + * + * @param uuid the uuid + * @param companyId the company ID + * @throws SystemException if a system exception occurred + */ + @Override + public void removeByUuid_C(String uuid, long companyId) + throws SystemException { + for (PraticaAttenzionata praticaAttenzionata : findByUuid_C(uuid, + companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { + remove(praticaAttenzionata); + } + } + + /** + * Returns the number of pratica attenzionatas where uuid = ? and companyId = ?. + * + * @param uuid the uuid + * @param companyId the company ID + * @return the number of matching pratica attenzionatas + * @throws SystemException if a system exception occurred + */ + @Override + public int countByUuid_C(String uuid, long companyId) + throws SystemException { + FinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_C; + + Object[] finderArgs = new Object[] { uuid, companyId }; + + Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, + this); + + if (count == null) { + StringBundler query = new StringBundler(3); + + query.append(_SQL_COUNT_PRATICAATTENZIONATA_WHERE); + + boolean bindUuid = false; + + if (uuid == null) { + query.append(_FINDER_COLUMN_UUID_C_UUID_1); + } + else if (uuid.equals(StringPool.BLANK)) { + query.append(_FINDER_COLUMN_UUID_C_UUID_3); + } + else { + bindUuid = true; + + query.append(_FINDER_COLUMN_UUID_C_UUID_2); + } + + query.append(_FINDER_COLUMN_UUID_C_COMPANYID_2); + + String sql = query.toString(); + + Session session = null; + + try { + session = openSession(); + + Query q = session.createQuery(sql); + + QueryPos qPos = QueryPos.getInstance(q); + + if (bindUuid) { + qPos.add(uuid); + } + + qPos.add(companyId); + + 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_UUID_C_UUID_1 = "praticaAttenzionata.uuid IS NULL AND "; + private static final String _FINDER_COLUMN_UUID_C_UUID_2 = "praticaAttenzionata.uuid = ? AND "; + private static final String _FINDER_COLUMN_UUID_C_UUID_3 = "(praticaAttenzionata.uuid IS NULL OR praticaAttenzionata.uuid = '') AND "; + private static final String _FINDER_COLUMN_UUID_C_COMPANYID_2 = "praticaAttenzionata.companyId = ?"; public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_VERIFICATA = new FinderPath(PraticaAttenzionataModelImpl.ENTITY_CACHE_ENABLED, PraticaAttenzionataModelImpl.FINDER_CACHE_ENABLED, @@ -597,6 +1977,11 @@ public class PraticaAttenzionataPersistenceImpl extends BasePersistenceImpl getBadColumnNames() { + return _badColumnNames; + } + /** * Initializes the pratica attenzionata persistence. */ @@ -1182,6 +2682,9 @@ public class PraticaAttenzionataPersistenceImpl extends BasePersistenceImpl _badColumnNames = SetUtil.fromArray(new String[] { + "uuid" + }); private static PraticaAttenzionata _nullPraticaAttenzionata = new PraticaAttenzionataImpl() { @Override public Object clone() { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties index d4d01de9..75b6a584 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_bo - build.number=2909 - build.date=1685017430153 + build.number=2919 + build.date=1694609122933 build.auto.upgrade=true ##