Salvatore La Manna
4 anni fa
208 ha cambiato i file con 16878 aggiunte e 1093 eliminazioni
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
File binario non mostrato.
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="docroot/WEB-INF/src"/> |
||||
<classpathentry kind="src" path="docroot/WEB-INF/service"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"> |
||||
<attributes> |
||||
<attribute name="owner.project.facets" value="java"/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="con" path="org.eclipse.jst.server.core.container/com.liferay.ide.eclipse.server.tomcat.runtimeClasspathProvider/Liferay v6.2 CE (Tomcat 7)"> |
||||
<attributes> |
||||
<attribute name="owner.project.facets" value="jst.web"/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> |
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> |
||||
<classpathentry kind="con" path="com.liferay.ide.eclipse.server.plugin.container/portlet"> |
||||
<attributes> |
||||
<attribute name="org.eclipse.jst.component.nondependency" value=""/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=sicilia-sue-connector-portlet&ivyXmlPath=ivy.xml&confs=*&ivySettingsPath=%24%7Bliferay_sdk_dir%3Asicilia-sue-connector-portlet%7D%2Fivy-settings.xml&loadSettingsOnDemand=false&ivyUserDir=%24%7Bliferay_sdk_dir%3Asicilia-sue-connector-portlet%7D%2F.ivy&propertyFiles="> |
||||
<attributes> |
||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="output" path="docroot/WEB-INF/classes"/> |
||||
</classpath> |
@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>sicilia-sue-connector-portlet</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.common.project.facet.core.builder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.validation.validationbuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> |
||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
<nature>org.apache.ivyde.eclipse.ivynature</nature> |
||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> |
||||
</natures> |
||||
</projectDescription> |
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" path="docroot"/> |
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/> |
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject"> |
||||
<attributes> |
||||
<attribute name="hide" value="true"/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/> |
||||
<classpathentry kind="output" path=""/> |
||||
</classpath> |
@ -0,0 +1,7 @@
|
||||
eclipse.preferences.version=1 |
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 |
||||
org.eclipse.jdt.core.compiler.compliance=1.7 |
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
||||
org.eclipse.jdt.core.compiler.source=1.7 |
@ -0,0 +1,3 @@
|
||||
eclipse.preferences.version=1 |
||||
validateFragments=false |
||||
validation.use-project-settings=true |
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0"> |
||||
<wb-module deploy-name="sicilia-sue-connector-portlet"> |
||||
<wb-resource deploy-path="/" source-path="/docroot" tag="defaultRootSource"/> |
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/src"/> |
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/service"/> |
||||
<dependent-module archiveName="portos-bo-portlet-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar"> |
||||
<dependency-type>uses</dependency-type> |
||||
</dependent-module> |
||||
<property name="context-root" value="sicilia-sue-connector-portlet"/> |
||||
<property name="java-output-path" value="/sicilia-sue-connector-portlet/docroot/WEB-INF/classes"/> |
||||
</wb-module> |
||||
</project-modules> |
@ -0,0 +1,7 @@
|
||||
<root> |
||||
<facet id="liferay.portlet"> |
||||
<node name="libprov"> |
||||
<attribute name="provider-id" value="com.liferay.ide.eclipse.plugin.portlet.libraryProvider"/> |
||||
</node> |
||||
</facet> |
||||
</root> |
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<faceted-project> |
||||
<runtime name="Liferay v6.2 CE (Tomcat 7)"/> |
||||
<fixed facet="jst.web"/> |
||||
<fixed facet="wst.jsdt.web"/> |
||||
<fixed facet="java"/> |
||||
<installed facet="java" version="1.7"/> |
||||
<installed facet="jst.web" version="3.0"/> |
||||
<installed facet="liferay.portlet" version="6.0"/> |
||||
<installed facet="wst.jsdt.web" version="1.0"/> |
||||
</faceted-project> |
@ -0,0 +1 @@
|
||||
org.eclipse.wst.jsdt.launching.baseBrowserLibrary |
@ -0,0 +1 @@
|
||||
Window |
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE project> |
||||
|
||||
<project name="sicilia-sue-connector-portlet" basedir="." default="deploy"> |
||||
<import file="../build-common-portlet.xml" /> |
||||
</project> |
@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0 |
||||
Class-Path: |
||||
|
@ -0,0 +1 @@
|
||||
/classes/ |
File binario non mostrato.
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE display PUBLIC "-//Liferay//DTD Display 6.2.0//EN" "http://www.liferay.com/dtd/liferay-display_6_2_0.dtd"> |
||||
|
||||
<display> |
||||
<category name="category.sample"> |
||||
<portlet id="sicilia-sue-connector" /> |
||||
</category> |
||||
</display> |
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.2.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_2_0.dtd"> |
||||
<hook> |
||||
<portal-properties>portal.properties</portal-properties> |
||||
</hook> |
@ -0,0 +1,14 @@
|
||||
name=Sicilia SUE Connector |
||||
module-group-id=liferay |
||||
module-incremental-version=1 |
||||
tags= |
||||
short-description= |
||||
long-description= |
||||
change-log= |
||||
page-url=http://www.liferay.com |
||||
author=Liferay, Inc. |
||||
licenses=LGPL |
||||
liferay-versions=6.2.0+ |
||||
#portal-dependency-jars= |
||||
#portal-dependency-tlds=c.tld |
||||
required-deployment-contexts=portos-bo-portlet |
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0"?> |
||||
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_2_0.dtd"> |
||||
|
||||
<liferay-portlet-app> |
||||
<portlet> |
||||
<portlet-name>sicilia-sue-connector</portlet-name> |
||||
<icon>/icon.png</icon> |
||||
<header-portlet-css>/css/main.css</header-portlet-css> |
||||
<footer-portlet-javascript>/js/main.js</footer-portlet-javascript> |
||||
<css-class-wrapper>sicilia-sue-connector-portlet</css-class-wrapper> |
||||
</portlet> |
||||
<role-mapper> |
||||
<role-name>administrator</role-name> |
||||
<role-link>Administrator</role-link> |
||||
</role-mapper> |
||||
<role-mapper> |
||||
<role-name>guest</role-name> |
||||
<role-link>Guest</role-link> |
||||
</role-mapper> |
||||
<role-mapper> |
||||
<role-name>power-user</role-name> |
||||
<role-link>Power User</role-link> |
||||
</role-mapper> |
||||
<role-mapper> |
||||
<role-name>user</role-name> |
||||
<role-link>User</role-link> |
||||
</role-mapper> |
||||
</liferay-portlet-app> |
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0"?> |
||||
|
||||
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0"> |
||||
<portlet> |
||||
<portlet-name>sicilia-sue-connector</portlet-name> |
||||
<display-name>Sicilia SUE Connector</display-name> |
||||
<portlet-class>com.liferay.util.bridges.mvc.MVCPortlet</portlet-class> |
||||
<init-param> |
||||
<name>view-template</name> |
||||
<value>/view.jsp</value> |
||||
</init-param> |
||||
<expiration-cache>0</expiration-cache> |
||||
<supports> |
||||
<mime-type>text/html</mime-type> |
||||
</supports> |
||||
<portlet-info> |
||||
<title>Sicilia SUE Connector</title> |
||||
<short-title>Sicilia SUE Connector</short-title> |
||||
<keywords>Sicilia SUE Connector</keywords> |
||||
</portlet-info> |
||||
<security-role-ref> |
||||
<role-name>administrator</role-name> |
||||
</security-role-ref> |
||||
<security-role-ref> |
||||
<role-name>guest</role-name> |
||||
</security-role-ref> |
||||
<security-role-ref> |
||||
<role-name>power-user</role-name> |
||||
</security-role-ref> |
||||
<security-role-ref> |
||||
<role-name>user</role-name> |
||||
</security-role-ref> |
||||
</portlet> |
||||
</portlet-app> |
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.2.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_2_0.dtd"> |
||||
<service-builder package-path="it.mwg.sicilia.sue"> |
||||
<author>Manifattura Web Group Srl</author> |
||||
<namespace>sicilia_sue</namespace> |
||||
|
||||
<entity name="Sportello" local-service="true" remote-service="true"> |
||||
<!-- PK fields --> |
||||
<column name="sportelloId" type="long" primary="true" /> |
||||
<!-- Group instance --> |
||||
<column name="groupId" type="long" /> |
||||
<!-- Audit fields --> |
||||
<column name="companyId" type="long" /> |
||||
<column name="userId" type="long" /> |
||||
<column name="userName" type="String" /> |
||||
<column name="createDate" type="Date" /> |
||||
<column name="modifiedDate" type="Date" /> |
||||
<!-- Other fields --> |
||||
<!-- Order --> |
||||
<!-- Finder methods --> |
||||
</entity> |
||||
</service-builder> |
@ -0,0 +1,40 @@
|
||||
/** |
||||
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue; |
||||
|
||||
import com.liferay.portal.NoSuchModelException; |
||||
|
||||
/** |
||||
* @author Manifattura Web Group Srl |
||||
*/ |
||||
public class NoSuchSportelloException extends NoSuchModelException { |
||||
|
||||
public NoSuchSportelloException() { |
||||
super(); |
||||
} |
||||
|
||||
public NoSuchSportelloException(String msg) { |
||||
super(msg); |
||||
} |
||||
|
||||
public NoSuchSportelloException(String msg, Throwable cause) { |
||||
super(msg, cause); |
||||
} |
||||
|
||||
public NoSuchSportelloException(Throwable cause) { |
||||
super(cause); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,34 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.model; |
||||
|
||||
import com.liferay.portal.model.PersistedModel; |
||||
|
||||
/** |
||||
* The extended model interface for the Sportello service. Represents a row in the "sicilia_sue_Sportello" database table, with each column mapped to a property of this class. |
||||
* |
||||
* @author Manifattura Web Group Srl |
||||
* @see SportelloModel |
||||
* @see it.mwg.sicilia.sue.model.impl.SportelloImpl |
||||
* @see it.mwg.sicilia.sue.model.impl.SportelloModelImpl |
||||
* @generated |
||||
*/ |
||||
public interface Sportello extends SportelloModel, PersistedModel { |
||||
/* |
||||
* NOTE FOR DEVELOPERS: |
||||
* |
||||
* Never modify this interface directly. Add methods to {@link it.mwg.sicilia.sue.model.impl.SportelloImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. |
||||
*/ |
||||
} |
@ -0,0 +1,505 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.model; |
||||
|
||||
import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler; |
||||
import com.liferay.portal.kernel.exception.SystemException; |
||||
import com.liferay.portal.kernel.util.ProxyUtil; |
||||
import com.liferay.portal.kernel.util.StringBundler; |
||||
import com.liferay.portal.model.BaseModel; |
||||
import com.liferay.portal.model.impl.BaseModelImpl; |
||||
import com.liferay.portal.util.PortalUtil; |
||||
|
||||
import it.mwg.sicilia.sue.service.ClpSerializer; |
||||
import it.mwg.sicilia.sue.service.SportelloLocalServiceUtil; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
import java.lang.reflect.Method; |
||||
|
||||
import java.util.Date; |
||||
import java.util.HashMap; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* @author Manifattura Web Group Srl |
||||
*/ |
||||
public class SportelloClp extends BaseModelImpl<Sportello> implements Sportello { |
||||
public SportelloClp() { |
||||
} |
||||
|
||||
@Override |
||||
public Class<?> getModelClass() { |
||||
return Sportello.class; |
||||
} |
||||
|
||||
@Override |
||||
public String getModelClassName() { |
||||
return Sportello.class.getName(); |
||||
} |
||||
|
||||
@Override |
||||
public long getPrimaryKey() { |
||||
return _sportelloId; |
||||
} |
||||
|
||||
@Override |
||||
public void setPrimaryKey(long primaryKey) { |
||||
setSportelloId(primaryKey); |
||||
} |
||||
|
||||
@Override |
||||
public Serializable getPrimaryKeyObj() { |
||||
return _sportelloId; |
||||
} |
||||
|
||||
@Override |
||||
public void setPrimaryKeyObj(Serializable primaryKeyObj) { |
||||
setPrimaryKey(((Long)primaryKeyObj).longValue()); |
||||
} |
||||
|
||||
@Override |
||||
public Map<String, Object> getModelAttributes() { |
||||
Map<String, Object> attributes = new HashMap<String, Object>(); |
||||
|
||||
attributes.put("sportelloId", getSportelloId()); |
||||
attributes.put("groupId", getGroupId()); |
||||
attributes.put("companyId", getCompanyId()); |
||||
attributes.put("userId", getUserId()); |
||||
attributes.put("userName", getUserName()); |
||||
attributes.put("createDate", getCreateDate()); |
||||
attributes.put("modifiedDate", getModifiedDate()); |
||||
|
||||
return attributes; |
||||
} |
||||
|
||||
@Override |
||||
public void setModelAttributes(Map<String, Object> attributes) { |
||||
Long sportelloId = (Long)attributes.get("sportelloId"); |
||||
|
||||
if (sportelloId != null) { |
||||
setSportelloId(sportelloId); |
||||
} |
||||
|
||||
Long groupId = (Long)attributes.get("groupId"); |
||||
|
||||
if (groupId != null) { |
||||
setGroupId(groupId); |
||||
} |
||||
|
||||
Long companyId = (Long)attributes.get("companyId"); |
||||
|
||||
if (companyId != null) { |
||||
setCompanyId(companyId); |
||||
} |
||||
|
||||
Long userId = (Long)attributes.get("userId"); |
||||
|
||||
if (userId != null) { |
||||
setUserId(userId); |
||||
} |
||||
|
||||
String userName = (String)attributes.get("userName"); |
||||
|
||||
if (userName != null) { |
||||
setUserName(userName); |
||||
} |
||||
|
||||
Date createDate = (Date)attributes.get("createDate"); |
||||
|
||||
if (createDate != null) { |
||||
setCreateDate(createDate); |
||||
} |
||||
|
||||
Date modifiedDate = (Date)attributes.get("modifiedDate"); |
||||
|
||||
if (modifiedDate != null) { |
||||
setModifiedDate(modifiedDate); |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public long getSportelloId() { |
||||
return _sportelloId; |
||||
} |
||||
|
||||
@Override |
||||
public void setSportelloId(long sportelloId) { |
||||
_sportelloId = sportelloId; |
||||
|
||||
if (_sportelloRemoteModel != null) { |
||||
try { |
||||
Class<?> clazz = _sportelloRemoteModel.getClass(); |
||||
|
||||
Method method = clazz.getMethod("setSportelloId", long.class); |
||||
|
||||
method.invoke(_sportelloRemoteModel, sportelloId); |
||||
} |
||||
catch (Exception e) { |
||||
throw new UnsupportedOperationException(e); |
||||
} |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public long getGroupId() { |
||||
return _groupId; |
||||
} |
||||
|
||||
@Override |
||||
public void setGroupId(long groupId) { |
||||
_groupId = groupId; |
||||
|
||||
if (_sportelloRemoteModel != null) { |
||||
try { |
||||
Class<?> clazz = _sportelloRemoteModel.getClass(); |
||||
|
||||
Method method = clazz.getMethod("setGroupId", long.class); |
||||
|
||||
method.invoke(_sportelloRemoteModel, groupId); |
||||
} |
||||
catch (Exception e) { |
||||
throw new UnsupportedOperationException(e); |
||||
} |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public long getCompanyId() { |
||||
return _companyId; |
||||
} |
||||
|
||||
@Override |
||||
public void setCompanyId(long companyId) { |
||||
_companyId = companyId; |
||||
|
||||
if (_sportelloRemoteModel != null) { |
||||
try { |
||||
Class<?> clazz = _sportelloRemoteModel.getClass(); |
||||
|
||||
Method method = clazz.getMethod("setCompanyId", long.class); |
||||
|
||||
method.invoke(_sportelloRemoteModel, companyId); |
||||
} |
||||
catch (Exception e) { |
||||
throw new UnsupportedOperationException(e); |
||||
} |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public long getUserId() { |
||||
return _userId; |
||||
} |
||||
|
||||
@Override |
||||
public void setUserId(long userId) { |
||||
_userId = userId; |
||||
|
||||
if (_sportelloRemoteModel != null) { |
||||
try { |
||||
Class<?> clazz = _sportelloRemoteModel.getClass(); |
||||
|
||||
Method method = clazz.getMethod("setUserId", long.class); |
||||
|
||||
method.invoke(_sportelloRemoteModel, userId); |
||||
} |
||||
catch (Exception e) { |
||||
throw new UnsupportedOperationException(e); |
||||
} |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public String getUserUuid() throws SystemException { |
||||
return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid); |
||||
} |
||||
|
||||
@Override |
||||
public void setUserUuid(String userUuid) { |
||||
_userUuid = userUuid; |
||||
} |
||||
|
||||
@Override |
||||
public String getUserName() { |
||||
return _userName; |
||||
} |
||||
|
||||
@Override |
||||
public void setUserName(String userName) { |
||||
_userName = userName; |
||||
|
||||
if (_sportelloRemoteModel != null) { |
||||
try { |
||||
Class<?> clazz = _sportelloRemoteModel.getClass(); |
||||
|
||||
Method method = clazz.getMethod("setUserName", String.class); |
||||
|
||||
method.invoke(_sportelloRemoteModel, userName); |
||||
} |
||||
catch (Exception e) { |
||||
throw new UnsupportedOperationException(e); |
||||
} |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public Date getCreateDate() { |
||||
return _createDate; |
||||
} |
||||
|
||||
@Override |
||||
public void setCreateDate(Date createDate) { |
||||
_createDate = createDate; |
||||
|
||||
if (_sportelloRemoteModel != null) { |
||||
try { |
||||
Class<?> clazz = _sportelloRemoteModel.getClass(); |
||||
|
||||
Method method = clazz.getMethod("setCreateDate", Date.class); |
||||
|
||||
method.invoke(_sportelloRemoteModel, createDate); |
||||
} |
||||
catch (Exception e) { |
||||
throw new UnsupportedOperationException(e); |
||||
} |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public Date getModifiedDate() { |
||||
return _modifiedDate; |
||||
} |
||||
|
||||
@Override |
||||
public void setModifiedDate(Date modifiedDate) { |
||||
_modifiedDate = modifiedDate; |
||||
|
||||
if (_sportelloRemoteModel != null) { |
||||
try { |
||||
Class<?> clazz = _sportelloRemoteModel.getClass(); |
||||
|
||||
Method method = clazz.getMethod("setModifiedDate", Date.class); |
||||
|
||||
method.invoke(_sportelloRemoteModel, modifiedDate); |
||||
} |
||||
catch (Exception e) { |
||||
throw new UnsupportedOperationException(e); |
||||
} |
||||
} |
||||
} |
||||
|
||||
public BaseModel<?> getSportelloRemoteModel() { |
||||
return _sportelloRemoteModel; |
||||
} |
||||
|
||||
public void setSportelloRemoteModel(BaseModel<?> sportelloRemoteModel) { |
||||
_sportelloRemoteModel = sportelloRemoteModel; |
||||
} |
||||
|
||||
public Object invokeOnRemoteModel(String methodName, |
||||
Class<?>[] parameterTypes, Object[] parameterValues) |
||||
throws Exception { |
||||
Object[] remoteParameterValues = new Object[parameterValues.length]; |
||||
|
||||
for (int i = 0; i < parameterValues.length; i++) { |
||||
if (parameterValues[i] != null) { |
||||
remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]); |
||||
} |
||||
} |
||||
|
||||
Class<?> remoteModelClass = _sportelloRemoteModel.getClass(); |
||||
|
||||
ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader(); |
||||
|
||||
Class<?>[] remoteParameterTypes = new Class[parameterTypes.length]; |
||||
|
||||
for (int i = 0; i < parameterTypes.length; i++) { |
||||
if (parameterTypes[i].isPrimitive()) { |
||||
remoteParameterTypes[i] = parameterTypes[i]; |
||||
} |
||||
else { |
||||
String parameterTypeName = parameterTypes[i].getName(); |
||||
|
||||
remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName); |
||||
} |
||||
} |
||||
|
||||
Method method = remoteModelClass.getMethod(methodName, |
||||
remoteParameterTypes); |
||||
|
||||
Object returnValue = method.invoke(_sportelloRemoteModel, |
||||
remoteParameterValues); |
||||
|
||||
if (returnValue != null) { |
||||
returnValue = ClpSerializer.translateOutput(returnValue); |
||||
} |
||||
|
||||
return returnValue; |
||||
} |
||||
|
||||
@Override |
||||
public void persist() throws SystemException { |
||||
if (this.isNew()) { |
||||
SportelloLocalServiceUtil.addSportello(this); |
||||
} |
||||
else { |
||||
SportelloLocalServiceUtil.updateSportello(this); |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public Sportello toEscapedModel() { |
||||
return (Sportello)ProxyUtil.newProxyInstance(Sportello.class.getClassLoader(), |
||||
new Class[] { Sportello.class }, new AutoEscapeBeanHandler(this)); |
||||
} |
||||
|
||||
@Override |
||||
public Object clone() { |
||||
SportelloClp clone = new SportelloClp(); |
||||
|
||||
clone.setSportelloId(getSportelloId()); |
||||
clone.setGroupId(getGroupId()); |
||||
clone.setCompanyId(getCompanyId()); |
||||
clone.setUserId(getUserId()); |
||||
clone.setUserName(getUserName()); |
||||
clone.setCreateDate(getCreateDate()); |
||||
clone.setModifiedDate(getModifiedDate()); |
||||
|
||||
return clone; |
||||
} |
||||
|
||||
@Override |
||||
public int compareTo(Sportello sportello) { |
||||
long primaryKey = sportello.getPrimaryKey(); |
||||
|
||||
if (getPrimaryKey() < primaryKey) { |
||||
return -1; |
||||
} |
||||
else if (getPrimaryKey() > primaryKey) { |
||||
return 1; |
||||
} |
||||
else { |
||||
return 0; |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public boolean equals(Object obj) { |
||||
if (this == obj) { |
||||
return true; |
||||
} |
||||
|
||||
if (!(obj instanceof SportelloClp)) { |
||||
return false; |
||||
} |
||||
|
||||
SportelloClp sportello = (SportelloClp)obj; |
||||
|
||||
long primaryKey = sportello.getPrimaryKey(); |
||||
|
||||
if (getPrimaryKey() == primaryKey) { |
||||
return true; |
||||
} |
||||
else { |
||||
return false; |
||||
} |
||||
} |
||||
|
||||
public Class<?> getClpSerializerClass() { |
||||
return _clpSerializerClass; |
||||
} |
||||
|
||||
@Override |
||||
public int hashCode() { |
||||
return (int)getPrimaryKey(); |
||||
} |
||||
|
||||
@Override |
||||
public String toString() { |
||||
StringBundler sb = new StringBundler(15); |
||||
|
||||
sb.append("{sportelloId="); |
||||
sb.append(getSportelloId()); |
||||
sb.append(", groupId="); |
||||
sb.append(getGroupId()); |
||||
sb.append(", companyId="); |
||||
sb.append(getCompanyId()); |
||||
sb.append(", userId="); |
||||
sb.append(getUserId()); |
||||
sb.append(", userName="); |
||||
sb.append(getUserName()); |
||||
sb.append(", createDate="); |
||||
sb.append(getCreateDate()); |
||||
sb.append(", modifiedDate="); |
||||
sb.append(getModifiedDate()); |
||||
sb.append("}"); |
||||
|
||||
return sb.toString(); |
||||
} |
||||
|
||||
@Override |
||||
public String toXmlString() { |
||||
StringBundler sb = new StringBundler(25); |
||||
|
||||
sb.append("<model><model-name>"); |
||||
sb.append("it.mwg.sicilia.sue.model.Sportello"); |
||||
sb.append("</model-name>"); |
||||
|
||||
sb.append( |
||||
"<column><column-name>sportelloId</column-name><column-value><![CDATA["); |
||||
sb.append(getSportelloId()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>groupId</column-name><column-value><![CDATA["); |
||||
sb.append(getGroupId()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>companyId</column-name><column-value><![CDATA["); |
||||
sb.append(getCompanyId()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>userId</column-name><column-value><![CDATA["); |
||||
sb.append(getUserId()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>userName</column-name><column-value><![CDATA["); |
||||
sb.append(getUserName()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>createDate</column-name><column-value><![CDATA["); |
||||
sb.append(getCreateDate()); |
||||
sb.append("]]></column-value></column>"); |
||||
sb.append( |
||||
"<column><column-name>modifiedDate</column-name><column-value><![CDATA["); |
||||
sb.append(getModifiedDate()); |
||||
sb.append("]]></column-value></column>"); |
||||
|
||||
sb.append("</model>"); |
||||
|
||||
return sb.toString(); |
||||
} |
||||
|
||||
private long _sportelloId; |
||||
private long _groupId; |
||||
private long _companyId; |
||||
private long _userId; |
||||
private String _userUuid; |
||||
private String _userName; |
||||
private Date _createDate; |
||||
private Date _modifiedDate; |
||||
private BaseModel<?> _sportelloRemoteModel; |
||||
private Class<?> _clpSerializerClass = it.mwg.sicilia.sue.service.ClpSerializer.class; |
||||
} |
@ -0,0 +1,248 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.model; |
||||
|
||||
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.service.ServiceContext; |
||||
|
||||
import com.liferay.portlet.expando.model.ExpandoBridge; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* The base model interface for the Sportello service. Represents a row in the "sicilia_sue_Sportello" database table, with each column mapped to a property of this class. |
||||
* |
||||
* <p> |
||||
* This interface and its corresponding implementation {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link it.mwg.sicilia.sue.model.impl.SportelloImpl}. |
||||
* </p> |
||||
* |
||||
* @author Manifattura Web Group Srl |
||||
* @see Sportello |
||||
* @see it.mwg.sicilia.sue.model.impl.SportelloImpl |
||||
* @see it.mwg.sicilia.sue.model.impl.SportelloModelImpl |
||||
* @generated |
||||
*/ |
||||
public interface SportelloModel extends BaseModel<Sportello>, GroupedModel { |
||||
/* |
||||
* NOTE FOR DEVELOPERS: |
||||
* |
||||
* Never modify or reference this interface directly. All methods that expect a sportello model instance should use the {@link Sportello} interface instead. |
||||
*/ |
||||
|
||||
/** |
||||
* Returns the primary key of this sportello. |
||||
* |
||||
* @return the primary key of this sportello |
||||
*/ |
||||
public long getPrimaryKey(); |
||||
|
||||
/** |
||||
* Sets the primary key of this sportello. |
||||
* |
||||
* @param primaryKey the primary key of this sportello |
||||
*/ |
||||
public void setPrimaryKey(long primaryKey); |
||||
|
||||
/** |
||||
* Returns the sportello ID of this sportello. |
||||
* |
||||
* @return the sportello ID of this sportello |
||||
*/ |
||||
public long getSportelloId(); |
||||
|
||||
/** |
||||
* Sets the sportello ID of this sportello. |
||||
* |
||||
* @param sportelloId the sportello ID of this sportello |
||||
*/ |
||||
public void setSportelloId(long sportelloId); |
||||
|
||||
/** |
||||
* Returns the group ID of this sportello. |
||||
* |
||||
* @return the group ID of this sportello |
||||
*/ |
||||
@Override |
||||
public long getGroupId(); |
||||
|
||||
/** |
||||
* Sets the group ID of this sportello. |
||||
* |
||||
* @param groupId the group ID of this sportello |
||||
*/ |
||||
@Override |
||||
public void setGroupId(long groupId); |
||||
|
||||
/** |
||||
* Returns the company ID of this sportello. |
||||
* |
||||
* @return the company ID of this sportello |
||||
*/ |
||||
@Override |
||||
public long getCompanyId(); |
||||
|
||||
/** |
||||
* Sets the company ID of this sportello. |
||||
* |
||||
* @param companyId the company ID of this sportello |
||||
*/ |
||||
@Override |
||||
public void setCompanyId(long companyId); |
||||
|
||||
/** |
||||
* Returns the user ID of this sportello. |
||||
* |
||||
* @return the user ID of this sportello |
||||
*/ |
||||
@Override |
||||
public long getUserId(); |
||||
|
||||
/** |
||||
* Sets the user ID of this sportello. |
||||
* |
||||
* @param userId the user ID of this sportello |
||||
*/ |
||||
@Override |
||||
public void setUserId(long userId); |
||||
|
||||
/** |
||||
* Returns the user uuid of this sportello. |
||||
* |
||||
* @return the user uuid of this sportello |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
public String getUserUuid() throws SystemException; |
||||
|
||||
/** |
||||
* Sets the user uuid of this sportello. |
||||
* |
||||
* @param userUuid the user uuid of this sportello |
||||
*/ |
||||
@Override |
||||
public void setUserUuid(String userUuid); |
||||
|
||||
/** |
||||
* Returns the user name of this sportello. |
||||
* |
||||
* @return the user name of this sportello |
||||
*/ |
||||
@AutoEscape |
||||
@Override |
||||
public String getUserName(); |
||||
|
||||
/** |
||||
* Sets the user name of this sportello. |
||||
* |
||||
* @param userName the user name of this sportello |
||||
*/ |
||||
@Override |
||||
public void setUserName(String userName); |
||||
|
||||
/** |
||||
* Returns the create date of this sportello. |
||||
* |
||||
* @return the create date of this sportello |
||||
*/ |
||||
@Override |
||||
public Date getCreateDate(); |
||||
|
||||
/** |
||||
* Sets the create date of this sportello. |
||||
* |
||||
* @param createDate the create date of this sportello |
||||
*/ |
||||
@Override |
||||
public void setCreateDate(Date createDate); |
||||
|
||||
/** |
||||
* Returns the modified date of this sportello. |
||||
* |
||||
* @return the modified date of this sportello |
||||
*/ |
||||
@Override |
||||
public Date getModifiedDate(); |
||||
|
||||
/** |
||||
* Sets the modified date of this sportello. |
||||
* |
||||
* @param modifiedDate the modified date of this sportello |
||||
*/ |
||||
@Override |
||||
public void setModifiedDate(Date modifiedDate); |
||||
|
||||
@Override |
||||
public boolean isNew(); |
||||
|
||||
@Override |
||||
public void setNew(boolean n); |
||||
|
||||
@Override |
||||
public boolean isCachedModel(); |
||||
|
||||
@Override |
||||
public void setCachedModel(boolean cachedModel); |
||||
|
||||
@Override |
||||
public boolean isEscapedModel(); |
||||
|
||||
@Override |
||||
public Serializable getPrimaryKeyObj(); |
||||
|
||||
@Override |
||||
public void setPrimaryKeyObj(Serializable primaryKeyObj); |
||||
|
||||
@Override |
||||
public ExpandoBridge getExpandoBridge(); |
||||
|
||||
@Override |
||||
public void setExpandoBridgeAttributes(BaseModel<?> baseModel); |
||||
|
||||
@Override |
||||
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); |
||||
|
||||
@Override |
||||
public void setExpandoBridgeAttributes(ServiceContext serviceContext); |
||||
|
||||
@Override |
||||
public Object clone(); |
||||
|
||||
@Override |
||||
public int compareTo(it.mwg.sicilia.sue.model.Sportello sportello); |
||||
|
||||
@Override |
||||
public int hashCode(); |
||||
|
||||
@Override |
||||
public CacheModel<it.mwg.sicilia.sue.model.Sportello> toCacheModel(); |
||||
|
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello toEscapedModel(); |
||||
|
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello toUnescapedModel(); |
||||
|
||||
@Override |
||||
public String toString(); |
||||
|
||||
@Override |
||||
public String toXmlString(); |
||||
} |
@ -0,0 +1,156 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.model; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.Date; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* This class is used by SOAP remote services, specifically {@link it.mwg.sicilia.sue.service.http.SportelloServiceSoap}. |
||||
* |
||||
* @author Manifattura Web Group Srl |
||||
* @see it.mwg.sicilia.sue.service.http.SportelloServiceSoap |
||||
* @generated |
||||
*/ |
||||
public class SportelloSoap implements Serializable { |
||||
public static SportelloSoap toSoapModel(Sportello model) { |
||||
SportelloSoap soapModel = new SportelloSoap(); |
||||
|
||||
soapModel.setSportelloId(model.getSportelloId()); |
||||
soapModel.setGroupId(model.getGroupId()); |
||||
soapModel.setCompanyId(model.getCompanyId()); |
||||
soapModel.setUserId(model.getUserId()); |
||||
soapModel.setUserName(model.getUserName()); |
||||
soapModel.setCreateDate(model.getCreateDate()); |
||||
soapModel.setModifiedDate(model.getModifiedDate()); |
||||
|
||||
return soapModel; |
||||
} |
||||
|
||||
public static SportelloSoap[] toSoapModels(Sportello[] models) { |
||||
SportelloSoap[] soapModels = new SportelloSoap[models.length]; |
||||
|
||||
for (int i = 0; i < models.length; i++) { |
||||
soapModels[i] = toSoapModel(models[i]); |
||||
} |
||||
|
||||
return soapModels; |
||||
} |
||||
|
||||
public static SportelloSoap[][] toSoapModels(Sportello[][] models) { |
||||
SportelloSoap[][] soapModels = null; |
||||
|
||||
if (models.length > 0) { |
||||
soapModels = new SportelloSoap[models.length][models[0].length]; |
||||
} |
||||
else { |
||||
soapModels = new SportelloSoap[0][0]; |
||||
} |
||||
|
||||
for (int i = 0; i < models.length; i++) { |
||||
soapModels[i] = toSoapModels(models[i]); |
||||
} |
||||
|
||||
return soapModels; |
||||
} |
||||
|
||||
public static SportelloSoap[] toSoapModels(List<Sportello> models) { |
||||
List<SportelloSoap> soapModels = new ArrayList<SportelloSoap>(models.size()); |
||||
|
||||
for (Sportello model : models) { |
||||
soapModels.add(toSoapModel(model)); |
||||
} |
||||
|
||||
return soapModels.toArray(new SportelloSoap[soapModels.size()]); |
||||
} |
||||
|
||||
public SportelloSoap() { |
||||
} |
||||
|
||||
public long getPrimaryKey() { |
||||
return _sportelloId; |
||||
} |
||||
|
||||
public void setPrimaryKey(long pk) { |
||||
setSportelloId(pk); |
||||
} |
||||
|
||||
public long getSportelloId() { |
||||
return _sportelloId; |
||||
} |
||||
|
||||
public void setSportelloId(long sportelloId) { |
||||
_sportelloId = sportelloId; |
||||
} |
||||
|
||||
public long getGroupId() { |
||||
return _groupId; |
||||
} |
||||
|
||||
public void setGroupId(long groupId) { |
||||
_groupId = groupId; |
||||
} |
||||
|
||||
public long getCompanyId() { |
||||
return _companyId; |
||||
} |
||||
|
||||
public void setCompanyId(long companyId) { |
||||
_companyId = companyId; |
||||
} |
||||
|
||||
public long getUserId() { |
||||
return _userId; |
||||
} |
||||
|
||||
public void setUserId(long userId) { |
||||
_userId = userId; |
||||
} |
||||
|
||||
public String getUserName() { |
||||
return _userName; |
||||
} |
||||
|
||||
public void setUserName(String userName) { |
||||
_userName = userName; |
||||
} |
||||
|
||||
public Date getCreateDate() { |
||||
return _createDate; |
||||
} |
||||
|
||||
public void setCreateDate(Date createDate) { |
||||
_createDate = createDate; |
||||
} |
||||
|
||||
public Date getModifiedDate() { |
||||
return _modifiedDate; |
||||
} |
||||
|
||||
public void setModifiedDate(Date modifiedDate) { |
||||
_modifiedDate = modifiedDate; |
||||
} |
||||
|
||||
private long _sportelloId; |
||||
private long _groupId; |
||||
private long _companyId; |
||||
private long _userId; |
||||
private String _userName; |
||||
private Date _createDate; |
||||
private Date _modifiedDate; |
||||
} |
@ -0,0 +1,431 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.model; |
||||
|
||||
import com.liferay.portal.kernel.util.Validator; |
||||
import com.liferay.portal.model.ModelWrapper; |
||||
|
||||
import java.util.Date; |
||||
import java.util.HashMap; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* <p> |
||||
* This class is a wrapper for {@link Sportello}. |
||||
* </p> |
||||
* |
||||
* @author Manifattura Web Group Srl |
||||
* @see Sportello |
||||
* @generated |
||||
*/ |
||||
public class SportelloWrapper implements Sportello, ModelWrapper<Sportello> { |
||||
public SportelloWrapper(Sportello sportello) { |
||||
_sportello = sportello; |
||||
} |
||||
|
||||
@Override |
||||
public Class<?> getModelClass() { |
||||
return Sportello.class; |
||||
} |
||||
|
||||
@Override |
||||
public String getModelClassName() { |
||||
return Sportello.class.getName(); |
||||
} |
||||
|
||||
@Override |
||||
public Map<String, Object> getModelAttributes() { |
||||
Map<String, Object> attributes = new HashMap<String, Object>(); |
||||
|
||||
attributes.put("sportelloId", getSportelloId()); |
||||
attributes.put("groupId", getGroupId()); |
||||
attributes.put("companyId", getCompanyId()); |
||||
attributes.put("userId", getUserId()); |
||||
attributes.put("userName", getUserName()); |
||||
attributes.put("createDate", getCreateDate()); |
||||
attributes.put("modifiedDate", getModifiedDate()); |
||||
|
||||
return attributes; |
||||
} |
||||
|
||||
@Override |
||||
public void setModelAttributes(Map<String, Object> attributes) { |
||||
Long sportelloId = (Long)attributes.get("sportelloId"); |
||||
|
||||
if (sportelloId != null) { |
||||
setSportelloId(sportelloId); |
||||
} |
||||
|
||||
Long groupId = (Long)attributes.get("groupId"); |
||||
|
||||
if (groupId != null) { |
||||
setGroupId(groupId); |
||||
} |
||||
|
||||
Long companyId = (Long)attributes.get("companyId"); |
||||
|
||||
if (companyId != null) { |
||||
setCompanyId(companyId); |
||||
} |
||||
|
||||
Long userId = (Long)attributes.get("userId"); |
||||
|
||||
if (userId != null) { |
||||
setUserId(userId); |
||||
} |
||||
|
||||
String userName = (String)attributes.get("userName"); |
||||
|
||||
if (userName != null) { |
||||
setUserName(userName); |
||||
} |
||||
|
||||
Date createDate = (Date)attributes.get("createDate"); |
||||
|
||||
if (createDate != null) { |
||||
setCreateDate(createDate); |
||||
} |
||||
|
||||
Date modifiedDate = (Date)attributes.get("modifiedDate"); |
||||
|
||||
if (modifiedDate != null) { |
||||
setModifiedDate(modifiedDate); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* Returns the primary key of this sportello. |
||||
* |
||||
* @return the primary key of this sportello |
||||
*/ |
||||
@Override |
||||
public long getPrimaryKey() { |
||||
return _sportello.getPrimaryKey(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the primary key of this sportello. |
||||
* |
||||
* @param primaryKey the primary key of this sportello |
||||
*/ |
||||
@Override |
||||
public void setPrimaryKey(long primaryKey) { |
||||
_sportello.setPrimaryKey(primaryKey); |
||||
} |
||||
|
||||
/** |
||||
* Returns the sportello ID of this sportello. |
||||
* |
||||
* @return the sportello ID of this sportello |
||||
*/ |
||||
@Override |
||||
public long getSportelloId() { |
||||
return _sportello.getSportelloId(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the sportello ID of this sportello. |
||||
* |
||||
* @param sportelloId the sportello ID of this sportello |
||||
*/ |
||||
@Override |
||||
public void setSportelloId(long sportelloId) { |
||||
_sportello.setSportelloId(sportelloId); |
||||
} |
||||
|
||||
/** |
||||
* Returns the group ID of this sportello. |
||||
* |
||||
* @return the group ID of this sportello |
||||
*/ |
||||
@Override |
||||
public long getGroupId() { |
||||
return _sportello.getGroupId(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the group ID of this sportello. |
||||
* |
||||
* @param groupId the group ID of this sportello |
||||
*/ |
||||
@Override |
||||
public void setGroupId(long groupId) { |
||||
_sportello.setGroupId(groupId); |
||||
} |
||||
|
||||
/** |
||||
* Returns the company ID of this sportello. |
||||
* |
||||
* @return the company ID of this sportello |
||||
*/ |
||||
@Override |
||||
public long getCompanyId() { |
||||
return _sportello.getCompanyId(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the company ID of this sportello. |
||||
* |
||||
* @param companyId the company ID of this sportello |
||||
*/ |
||||
@Override |
||||
public void setCompanyId(long companyId) { |
||||
_sportello.setCompanyId(companyId); |
||||
} |
||||
|
||||
/** |
||||
* Returns the user ID of this sportello. |
||||
* |
||||
* @return the user ID of this sportello |
||||
*/ |
||||
@Override |
||||
public long getUserId() { |
||||
return _sportello.getUserId(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the user ID of this sportello. |
||||
* |
||||
* @param userId the user ID of this sportello |
||||
*/ |
||||
@Override |
||||
public void setUserId(long userId) { |
||||
_sportello.setUserId(userId); |
||||
} |
||||
|
||||
/** |
||||
* Returns the user uuid of this sportello. |
||||
* |
||||
* @return the user uuid of this sportello |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
public java.lang.String getUserUuid() |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportello.getUserUuid(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the user uuid of this sportello. |
||||
* |
||||
* @param userUuid the user uuid of this sportello |
||||
*/ |
||||
@Override |
||||
public void setUserUuid(java.lang.String userUuid) { |
||||
_sportello.setUserUuid(userUuid); |
||||
} |
||||
|
||||
/** |
||||
* Returns the user name of this sportello. |
||||
* |
||||
* @return the user name of this sportello |
||||
*/ |
||||
@Override |
||||
public java.lang.String getUserName() { |
||||
return _sportello.getUserName(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the user name of this sportello. |
||||
* |
||||
* @param userName the user name of this sportello |
||||
*/ |
||||
@Override |
||||
public void setUserName(java.lang.String userName) { |
||||
_sportello.setUserName(userName); |
||||
} |
||||
|
||||
/** |
||||
* Returns the create date of this sportello. |
||||
* |
||||
* @return the create date of this sportello |
||||
*/ |
||||
@Override |
||||
public java.util.Date getCreateDate() { |
||||
return _sportello.getCreateDate(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the create date of this sportello. |
||||
* |
||||
* @param createDate the create date of this sportello |
||||
*/ |
||||
@Override |
||||
public void setCreateDate(java.util.Date createDate) { |
||||
_sportello.setCreateDate(createDate); |
||||
} |
||||
|
||||
/** |
||||
* Returns the modified date of this sportello. |
||||
* |
||||
* @return the modified date of this sportello |
||||
*/ |
||||
@Override |
||||
public java.util.Date getModifiedDate() { |
||||
return _sportello.getModifiedDate(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the modified date of this sportello. |
||||
* |
||||
* @param modifiedDate the modified date of this sportello |
||||
*/ |
||||
@Override |
||||
public void setModifiedDate(java.util.Date modifiedDate) { |
||||
_sportello.setModifiedDate(modifiedDate); |
||||
} |
||||
|
||||
@Override |
||||
public boolean isNew() { |
||||
return _sportello.isNew(); |
||||
} |
||||
|
||||
@Override |
||||
public void setNew(boolean n) { |
||||
_sportello.setNew(n); |
||||
} |
||||
|
||||
@Override |
||||
public boolean isCachedModel() { |
||||
return _sportello.isCachedModel(); |
||||
} |
||||
|
||||
@Override |
||||
public void setCachedModel(boolean cachedModel) { |
||||
_sportello.setCachedModel(cachedModel); |
||||
} |
||||
|
||||
@Override |
||||
public boolean isEscapedModel() { |
||||
return _sportello.isEscapedModel(); |
||||
} |
||||
|
||||
@Override |
||||
public java.io.Serializable getPrimaryKeyObj() { |
||||
return _sportello.getPrimaryKeyObj(); |
||||
} |
||||
|
||||
@Override |
||||
public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { |
||||
_sportello.setPrimaryKeyObj(primaryKeyObj); |
||||
} |
||||
|
||||
@Override |
||||
public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { |
||||
return _sportello.getExpandoBridge(); |
||||
} |
||||
|
||||
@Override |
||||
public void setExpandoBridgeAttributes( |
||||
com.liferay.portal.model.BaseModel<?> baseModel) { |
||||
_sportello.setExpandoBridgeAttributes(baseModel); |
||||
} |
||||
|
||||
@Override |
||||
public void setExpandoBridgeAttributes( |
||||
com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) { |
||||
_sportello.setExpandoBridgeAttributes(expandoBridge); |
||||
} |
||||
|
||||
@Override |
||||
public void setExpandoBridgeAttributes( |
||||
com.liferay.portal.service.ServiceContext serviceContext) { |
||||
_sportello.setExpandoBridgeAttributes(serviceContext); |
||||
} |
||||
|
||||
@Override |
||||
public java.lang.Object clone() { |
||||
return new SportelloWrapper((Sportello)_sportello.clone()); |
||||
} |
||||
|
||||
@Override |
||||
public int compareTo(it.mwg.sicilia.sue.model.Sportello sportello) { |
||||
return _sportello.compareTo(sportello); |
||||
} |
||||
|
||||
@Override |
||||
public int hashCode() { |
||||
return _sportello.hashCode(); |
||||
} |
||||
|
||||
@Override |
||||
public com.liferay.portal.model.CacheModel<it.mwg.sicilia.sue.model.Sportello> toCacheModel() { |
||||
return _sportello.toCacheModel(); |
||||
} |
||||
|
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello toEscapedModel() { |
||||
return new SportelloWrapper(_sportello.toEscapedModel()); |
||||
} |
||||
|
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello toUnescapedModel() { |
||||
return new SportelloWrapper(_sportello.toUnescapedModel()); |
||||
} |
||||
|
||||
@Override |
||||
public java.lang.String toString() { |
||||
return _sportello.toString(); |
||||
} |
||||
|
||||
@Override |
||||
public java.lang.String toXmlString() { |
||||
return _sportello.toXmlString(); |
||||
} |
||||
|
||||
@Override |
||||
public void persist() |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
_sportello.persist(); |
||||
} |
||||
|
||||
@Override |
||||
public boolean equals(Object obj) { |
||||
if (this == obj) { |
||||
return true; |
||||
} |
||||
|
||||
if (!(obj instanceof SportelloWrapper)) { |
||||
return false; |
||||
} |
||||
|
||||
SportelloWrapper sportelloWrapper = (SportelloWrapper)obj; |
||||
|
||||
if (Validator.equals(_sportello, sportelloWrapper._sportello)) { |
||||
return true; |
||||
} |
||||
|
||||
return false; |
||||
} |
||||
|
||||
/** |
||||
* @deprecated As of 6.1.0, replaced by {@link #getWrappedModel} |
||||
*/ |
||||
public Sportello getWrappedSportello() { |
||||
return _sportello; |
||||
} |
||||
|
||||
@Override |
||||
public Sportello getWrappedModel() { |
||||
return _sportello; |
||||
} |
||||
|
||||
@Override |
||||
public void resetOriginalValues() { |
||||
_sportello.resetOriginalValues(); |
||||
} |
||||
|
||||
private Sportello _sportello; |
||||
} |
@ -0,0 +1,288 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service; |
||||
|
||||
import com.liferay.portal.kernel.exception.PortalException; |
||||
import com.liferay.portal.kernel.exception.SystemException; |
||||
import com.liferay.portal.kernel.io.unsync.UnsyncByteArrayInputStream; |
||||
import com.liferay.portal.kernel.io.unsync.UnsyncByteArrayOutputStream; |
||||
import com.liferay.portal.kernel.log.Log; |
||||
import com.liferay.portal.kernel.log.LogFactoryUtil; |
||||
import com.liferay.portal.kernel.util.ClassLoaderObjectInputStream; |
||||
import com.liferay.portal.kernel.util.PropsUtil; |
||||
import com.liferay.portal.kernel.util.Validator; |
||||
import com.liferay.portal.model.BaseModel; |
||||
|
||||
import it.mwg.sicilia.sue.model.SportelloClp; |
||||
|
||||
import java.io.ObjectInputStream; |
||||
import java.io.ObjectOutputStream; |
||||
|
||||
import java.lang.reflect.Method; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author Manifattura Web Group Srl |
||||
*/ |
||||
public class ClpSerializer { |
||||
public static String getServletContextName() { |
||||
if (Validator.isNotNull(_servletContextName)) { |
||||
return _servletContextName; |
||||
} |
||||
|
||||
synchronized (ClpSerializer.class) { |
||||
if (Validator.isNotNull(_servletContextName)) { |
||||
return _servletContextName; |
||||
} |
||||
|
||||
try { |
||||
ClassLoader classLoader = ClpSerializer.class.getClassLoader(); |
||||
|
||||
Class<?> portletPropsClass = classLoader.loadClass( |
||||
"com.liferay.util.portlet.PortletProps"); |
||||
|
||||
Method getMethod = portletPropsClass.getMethod("get", |
||||
new Class<?>[] { String.class }); |
||||
|
||||
String portletPropsServletContextName = (String)getMethod.invoke(null, |
||||
"sicilia-sue-connector-portlet-deployment-context"); |
||||
|
||||
if (Validator.isNotNull(portletPropsServletContextName)) { |
||||
_servletContextName = portletPropsServletContextName; |
||||
} |
||||
} |
||||
catch (Throwable t) { |
||||
if (_log.isInfoEnabled()) { |
||||
_log.info( |
||||
"Unable to locate deployment context from portlet properties"); |
||||
} |
||||
} |
||||
|
||||
if (Validator.isNull(_servletContextName)) { |
||||
try { |
||||
String propsUtilServletContextName = PropsUtil.get( |
||||
"sicilia-sue-connector-portlet-deployment-context"); |
||||
|
||||
if (Validator.isNotNull(propsUtilServletContextName)) { |
||||
_servletContextName = propsUtilServletContextName; |
||||
} |
||||
} |
||||
catch (Throwable t) { |
||||
if (_log.isInfoEnabled()) { |
||||
_log.info( |
||||
"Unable to locate deployment context from portal properties"); |
||||
} |
||||
} |
||||
} |
||||
|
||||
if (Validator.isNull(_servletContextName)) { |
||||
_servletContextName = "sicilia-sue-connector-portlet"; |
||||
} |
||||
|
||||
return _servletContextName; |
||||
} |
||||
} |
||||
|
||||
public static Object translateInput(BaseModel<?> oldModel) { |
||||
Class<?> oldModelClass = oldModel.getClass(); |
||||
|
||||
String oldModelClassName = oldModelClass.getName(); |
||||
|
||||
if (oldModelClassName.equals(SportelloClp.class.getName())) { |
||||
return translateInputSportello(oldModel); |
||||
} |
||||
|
||||
return oldModel; |
||||
} |
||||
|
||||
public static Object translateInput(List<Object> oldList) { |
||||
List<Object> newList = new ArrayList<Object>(oldList.size()); |
||||
|
||||
for (int i = 0; i < oldList.size(); i++) { |
||||
Object curObj = oldList.get(i); |
||||
|
||||
newList.add(translateInput(curObj)); |
||||
} |
||||
|
||||
return newList; |
||||
} |
||||
|
||||
public static Object translateInputSportello(BaseModel<?> oldModel) { |
||||
SportelloClp oldClpModel = (SportelloClp)oldModel; |
||||
|
||||
BaseModel<?> newModel = oldClpModel.getSportelloRemoteModel(); |
||||
|
||||
newModel.setModelAttributes(oldClpModel.getModelAttributes()); |
||||
|
||||
return newModel; |
||||
} |
||||
|
||||
public static Object translateInput(Object obj) { |
||||
if (obj instanceof BaseModel<?>) { |
||||
return translateInput((BaseModel<?>)obj); |
||||
} |
||||
else if (obj instanceof List<?>) { |
||||
return translateInput((List<Object>)obj); |
||||
} |
||||
else { |
||||
return obj; |
||||
} |
||||
} |
||||
|
||||
public static Object translateOutput(BaseModel<?> oldModel) { |
||||
Class<?> oldModelClass = oldModel.getClass(); |
||||
|
||||
String oldModelClassName = oldModelClass.getName(); |
||||
|
||||
if (oldModelClassName.equals( |
||||
"it.mwg.sicilia.sue.model.impl.SportelloImpl")) { |
||||
return translateOutputSportello(oldModel); |
||||
} |
||||
else if (oldModelClassName.endsWith("Clp")) { |
||||
try { |
||||
ClassLoader classLoader = ClpSerializer.class.getClassLoader(); |
||||
|
||||
Method getClpSerializerClassMethod = oldModelClass.getMethod( |
||||
"getClpSerializerClass"); |
||||
|
||||
Class<?> oldClpSerializerClass = (Class<?>)getClpSerializerClassMethod.invoke(oldModel); |
||||
|
||||
Class<?> newClpSerializerClass = classLoader.loadClass(oldClpSerializerClass.getName()); |
||||
|
||||
Method translateOutputMethod = newClpSerializerClass.getMethod("translateOutput", |
||||
BaseModel.class); |
||||
|
||||
Class<?> oldModelModelClass = oldModel.getModelClass(); |
||||
|
||||
Method getRemoteModelMethod = oldModelClass.getMethod("get" + |
||||
oldModelModelClass.getSimpleName() + "RemoteModel"); |
||||
|
||||
Object oldRemoteModel = getRemoteModelMethod.invoke(oldModel); |
||||
|
||||
BaseModel<?> newModel = (BaseModel<?>)translateOutputMethod.invoke(null, |
||||
oldRemoteModel); |
||||
|
||||
return newModel; |
||||
} |
||||
catch (Throwable t) { |
||||
if (_log.isInfoEnabled()) { |
||||
_log.info("Unable to translate " + oldModelClassName, t); |
||||
} |
||||
} |
||||
} |
||||
|
||||
return oldModel; |
||||
} |
||||
|
||||
public static Object translateOutput(List<Object> oldList) { |
||||
List<Object> newList = new ArrayList<Object>(oldList.size()); |
||||
|
||||
for (int i = 0; i < oldList.size(); i++) { |
||||
Object curObj = oldList.get(i); |
||||
|
||||
newList.add(translateOutput(curObj)); |
||||
} |
||||
|
||||
return newList; |
||||
} |
||||
|
||||
public static Object translateOutput(Object obj) { |
||||
if (obj instanceof BaseModel<?>) { |
||||
return translateOutput((BaseModel<?>)obj); |
||||
} |
||||
else if (obj instanceof List<?>) { |
||||
return translateOutput((List<Object>)obj); |
||||
} |
||||
else { |
||||
return obj; |
||||
} |
||||
} |
||||
|
||||
public static Throwable translateThrowable(Throwable throwable) { |
||||
if (_useReflectionToTranslateThrowable) { |
||||
try { |
||||
UnsyncByteArrayOutputStream unsyncByteArrayOutputStream = new UnsyncByteArrayOutputStream(); |
||||
ObjectOutputStream objectOutputStream = new ObjectOutputStream(unsyncByteArrayOutputStream); |
||||
|
||||
objectOutputStream.writeObject(throwable); |
||||
|
||||
objectOutputStream.flush(); |
||||
objectOutputStream.close(); |
||||
|
||||
UnsyncByteArrayInputStream unsyncByteArrayInputStream = new UnsyncByteArrayInputStream(unsyncByteArrayOutputStream.unsafeGetByteArray(), |
||||
0, unsyncByteArrayOutputStream.size()); |
||||
|
||||
Thread currentThread = Thread.currentThread(); |
||||
|
||||
ClassLoader contextClassLoader = currentThread.getContextClassLoader(); |
||||
|
||||
ObjectInputStream objectInputStream = new ClassLoaderObjectInputStream(unsyncByteArrayInputStream, |
||||
contextClassLoader); |
||||
|
||||
throwable = (Throwable)objectInputStream.readObject(); |
||||
|
||||
objectInputStream.close(); |
||||
|
||||
return throwable; |
||||
} |
||||
catch (SecurityException se) { |
||||
if (_log.isInfoEnabled()) { |
||||
_log.info("Do not use reflection to translate throwable"); |
||||
} |
||||
|
||||
_useReflectionToTranslateThrowable = false; |
||||
} |
||||
catch (Throwable throwable2) { |
||||
_log.error(throwable2, throwable2); |
||||
|
||||
return throwable2; |
||||
} |
||||
} |
||||
|
||||
Class<?> clazz = throwable.getClass(); |
||||
|
||||
String className = clazz.getName(); |
||||
|
||||
if (className.equals(PortalException.class.getName())) { |
||||
return new PortalException(); |
||||
} |
||||
|
||||
if (className.equals(SystemException.class.getName())) { |
||||
return new SystemException(); |
||||
} |
||||
|
||||
if (className.equals("it.mwg.sicilia.sue.NoSuchSportelloException")) { |
||||
return new it.mwg.sicilia.sue.NoSuchSportelloException(); |
||||
} |
||||
|
||||
return throwable; |
||||
} |
||||
|
||||
public static Object translateOutputSportello(BaseModel<?> oldModel) { |
||||
SportelloClp newModel = new SportelloClp(); |
||||
|
||||
newModel.setModelAttributes(oldModel.getModelAttributes()); |
||||
|
||||
newModel.setSportelloRemoteModel(oldModel); |
||||
|
||||
return newModel; |
||||
} |
||||
|
||||
private static Log _log = LogFactoryUtil.getLog(ClpSerializer.class); |
||||
private static String _servletContextName; |
||||
private static boolean _useReflectionToTranslateThrowable = true; |
||||
} |
@ -0,0 +1,252 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service; |
||||
|
||||
import com.liferay.portal.kernel.exception.PortalException; |
||||
import com.liferay.portal.kernel.exception.SystemException; |
||||
import com.liferay.portal.kernel.search.IndexableType; |
||||
import com.liferay.portal.kernel.transaction.Isolation; |
||||
import com.liferay.portal.kernel.transaction.Propagation; |
||||
import com.liferay.portal.kernel.transaction.Transactional; |
||||
import com.liferay.portal.service.BaseLocalService; |
||||
import com.liferay.portal.service.InvokableLocalService; |
||||
import com.liferay.portal.service.PersistedModelLocalService; |
||||
|
||||
/** |
||||
* Provides the local service interface for Sportello. Methods of this |
||||
* service will not have security checks based on the propagated JAAS |
||||
* credentials because this service can only be accessed from within the same |
||||
* VM. |
||||
* |
||||
* @author Manifattura Web Group Srl |
||||
* @see SportelloLocalServiceUtil |
||||
* @see it.mwg.sicilia.sue.service.base.SportelloLocalServiceBaseImpl |
||||
* @see it.mwg.sicilia.sue.service.impl.SportelloLocalServiceImpl |
||||
* @generated |
||||
*/ |
||||
@Transactional(isolation = Isolation.PORTAL, rollbackFor = { |
||||
PortalException.class, SystemException.class}) |
||||
public interface SportelloLocalService extends BaseLocalService, |
||||
InvokableLocalService, PersistedModelLocalService { |
||||
/* |
||||
* NOTE FOR DEVELOPERS: |
||||
* |
||||
* Never modify or reference this interface directly. Always use {@link SportelloLocalServiceUtil} to access the sportello local service. Add custom service methods to {@link it.mwg.sicilia.sue.service.impl.SportelloLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. |
||||
*/ |
||||
|
||||
/** |
||||
* Adds the sportello to the database. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportello the sportello |
||||
* @return the sportello that was added |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) |
||||
public it.mwg.sicilia.sue.model.Sportello addSportello( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Creates a new sportello with the primary key. Does not add the sportello to the database. |
||||
* |
||||
* @param sportelloId the primary key for the new sportello |
||||
* @return the new sportello |
||||
*/ |
||||
public it.mwg.sicilia.sue.model.Sportello createSportello(long sportelloId); |
||||
|
||||
/** |
||||
* Deletes the sportello with the primary key from the database. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportelloId the primary key of the sportello |
||||
* @return the sportello that was removed |
||||
* @throws PortalException if a sportello with the primary key could not be found |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) |
||||
public it.mwg.sicilia.sue.model.Sportello deleteSportello(long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.PortalException, |
||||
com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Deletes the sportello from the database. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportello the sportello |
||||
* @return the sportello that was removed |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE) |
||||
public it.mwg.sicilia.sue.model.Sportello deleteSportello( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery(); |
||||
|
||||
/** |
||||
* Performs a dynamic query on the database and returns the matching rows. |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @return the matching rows |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@SuppressWarnings("rawtypes") |
||||
public java.util.List dynamicQuery( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Performs a dynamic query on the database and returns a range of the matching rows. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @param start the lower bound of the range of model instances |
||||
* @param end the upper bound of the range of model instances (not inclusive) |
||||
* @return the range of matching rows |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@SuppressWarnings("rawtypes") |
||||
public java.util.List dynamicQuery( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||
int end) throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Performs a dynamic query on the database and returns an ordered range of the matching rows. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @param start the lower bound of the range of model instances |
||||
* @param end the upper bound of the range of model instances (not inclusive) |
||||
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>) |
||||
* @return the ordered range of matching rows |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@SuppressWarnings("rawtypes") |
||||
public java.util.List dynamicQuery( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||
int end, |
||||
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Returns the number of rows that match the dynamic query. |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @return the number of rows that match the dynamic query |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public long dynamicQueryCount( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Returns the number of rows that match the dynamic query. |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @param projection the projection to apply to the query |
||||
* @return the number of rows that match the dynamic query |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public long dynamicQueryCount( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, |
||||
com.liferay.portal.kernel.dao.orm.Projection projection) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) |
||||
public it.mwg.sicilia.sue.model.Sportello fetchSportello(long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Returns the sportello with the primary key. |
||||
* |
||||
* @param sportelloId the primary key of the sportello |
||||
* @return the sportello |
||||
* @throws PortalException if a sportello with the primary key could not be found |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) |
||||
public it.mwg.sicilia.sue.model.Sportello getSportello(long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.PortalException, |
||||
com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
@Override |
||||
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) |
||||
public com.liferay.portal.model.PersistedModel getPersistedModel( |
||||
java.io.Serializable primaryKeyObj) |
||||
throws com.liferay.portal.kernel.exception.PortalException, |
||||
com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Returns a range of all the sportellos. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param start the lower bound of the range of sportellos |
||||
* @param end the upper bound of the range of sportellos (not inclusive) |
||||
* @return the range of sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) |
||||
public java.util.List<it.mwg.sicilia.sue.model.Sportello> getSportellos( |
||||
int start, int end) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Returns the number of sportellos. |
||||
* |
||||
* @return the number of sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) |
||||
public int getSportellosCount() |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Updates the sportello in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportello the sportello |
||||
* @return the sportello that was updated |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX) |
||||
public it.mwg.sicilia.sue.model.Sportello updateSportello( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Returns the Spring bean ID for this bean. |
||||
* |
||||
* @return the Spring bean ID for this bean |
||||
*/ |
||||
public java.lang.String getBeanIdentifier(); |
||||
|
||||
/** |
||||
* Sets the Spring bean ID for this bean. |
||||
* |
||||
* @param beanIdentifier the Spring bean ID for this bean |
||||
*/ |
||||
public void setBeanIdentifier(java.lang.String beanIdentifier); |
||||
|
||||
@Override |
||||
public java.lang.Object invokeMethod(java.lang.String name, |
||||
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||
throws java.lang.Throwable; |
||||
} |
@ -0,0 +1,701 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service; |
||||
|
||||
import com.liferay.portal.service.InvokableLocalService; |
||||
|
||||
/** |
||||
* @author Manifattura Web Group Srl |
||||
* @generated |
||||
*/ |
||||
public class SportelloLocalServiceClp implements SportelloLocalService { |
||||
public SportelloLocalServiceClp(InvokableLocalService invokableLocalService) { |
||||
_invokableLocalService = invokableLocalService; |
||||
|
||||
_methodName0 = "addSportello"; |
||||
|
||||
_methodParameterTypes0 = new String[] { |
||||
"it.mwg.sicilia.sue.model.Sportello" |
||||
}; |
||||
|
||||
_methodName1 = "createSportello"; |
||||
|
||||
_methodParameterTypes1 = new String[] { "long" }; |
||||
|
||||
_methodName2 = "deleteSportello"; |
||||
|
||||
_methodParameterTypes2 = new String[] { "long" }; |
||||
|
||||
_methodName3 = "deleteSportello"; |
||||
|
||||
_methodParameterTypes3 = new String[] { |
||||
"it.mwg.sicilia.sue.model.Sportello" |
||||
}; |
||||
|
||||
_methodName4 = "dynamicQuery"; |
||||
|
||||
_methodParameterTypes4 = new String[] { }; |
||||
|
||||
_methodName5 = "dynamicQuery"; |
||||
|
||||
_methodParameterTypes5 = new String[] { |
||||
"com.liferay.portal.kernel.dao.orm.DynamicQuery" |
||||
}; |
||||
|
||||
_methodName6 = "dynamicQuery"; |
||||
|
||||
_methodParameterTypes6 = new String[] { |
||||
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int" |
||||
}; |
||||
|
||||
_methodName7 = "dynamicQuery"; |
||||
|
||||
_methodParameterTypes7 = new String[] { |
||||
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int", |
||||
"com.liferay.portal.kernel.util.OrderByComparator" |
||||
}; |
||||
|
||||
_methodName8 = "dynamicQueryCount"; |
||||
|
||||
_methodParameterTypes8 = new String[] { |
||||
"com.liferay.portal.kernel.dao.orm.DynamicQuery" |
||||
}; |
||||
|
||||
_methodName9 = "dynamicQueryCount"; |
||||
|
||||
_methodParameterTypes9 = new String[] { |
||||
"com.liferay.portal.kernel.dao.orm.DynamicQuery", |
||||
"com.liferay.portal.kernel.dao.orm.Projection" |
||||
}; |
||||
|
||||
_methodName10 = "fetchSportello"; |
||||
|
||||
_methodParameterTypes10 = new String[] { "long" }; |
||||
|
||||
_methodName11 = "getSportello"; |
||||
|
||||
_methodParameterTypes11 = new String[] { "long" }; |
||||
|
||||
_methodName12 = "getPersistedModel"; |
||||
|
||||
_methodParameterTypes12 = new String[] { "java.io.Serializable" }; |
||||
|
||||
_methodName13 = "getSportellos"; |
||||
|
||||
_methodParameterTypes13 = new String[] { "int", "int" }; |
||||
|
||||
_methodName14 = "getSportellosCount"; |
||||
|
||||
_methodParameterTypes14 = new String[] { }; |
||||
|
||||
_methodName15 = "updateSportello"; |
||||
|
||||
_methodParameterTypes15 = new String[] { |
||||
"it.mwg.sicilia.sue.model.Sportello" |
||||
}; |
||||
|
||||
_methodName16 = "getBeanIdentifier"; |
||||
|
||||
_methodParameterTypes16 = new String[] { }; |
||||
|
||||
_methodName17 = "setBeanIdentifier"; |
||||
|
||||
_methodParameterTypes17 = new String[] { "java.lang.String" }; |
||||
} |
||||
|
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello addSportello( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName0, |
||||
_methodParameterTypes0, |
||||
new Object[] { ClpSerializer.translateInput(sportello) }); |
||||
} |
||||
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.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello createSportello(long sportelloId) { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName1, |
||||
_methodParameterTypes1, new Object[] { sportelloId }); |
||||
} |
||||
catch (Throwable t) { |
||||
t = ClpSerializer.translateThrowable(t); |
||||
|
||||
if (t instanceof RuntimeException) { |
||||
throw (RuntimeException)t; |
||||
} |
||||
else { |
||||
throw new RuntimeException(t.getClass().getName() + |
||||
" is not a valid exception"); |
||||
} |
||||
} |
||||
|
||||
return (it.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello deleteSportello(long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.PortalException, |
||||
com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName2, |
||||
_methodParameterTypes2, new Object[] { sportelloId }); |
||||
} |
||||
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.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello deleteSportello( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName3, |
||||
_methodParameterTypes3, |
||||
new Object[] { ClpSerializer.translateInput(sportello) }); |
||||
} |
||||
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.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName4, |
||||
_methodParameterTypes4, new Object[] { }); |
||||
} |
||||
catch (Throwable t) { |
||||
t = ClpSerializer.translateThrowable(t); |
||||
|
||||
if (t instanceof RuntimeException) { |
||||
throw (RuntimeException)t; |
||||
} |
||||
else { |
||||
throw new RuntimeException(t.getClass().getName() + |
||||
" is not a valid exception"); |
||||
} |
||||
} |
||||
|
||||
return (com.liferay.portal.kernel.dao.orm.DynamicQuery)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
@SuppressWarnings("rawtypes") |
||||
public java.util.List dynamicQuery( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName5, |
||||
_methodParameterTypes5, |
||||
new Object[] { ClpSerializer.translateInput(dynamicQuery) }); |
||||
} |
||||
catch (Throwable t) { |
||||
t = ClpSerializer.translateThrowable(t); |
||||
|
||||
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||
} |
||||
|
||||
if (t instanceof RuntimeException) { |
||||
throw (RuntimeException)t; |
||||
} |
||||
else { |
||||
throw new RuntimeException(t.getClass().getName() + |
||||
" is not a valid exception"); |
||||
} |
||||
} |
||||
|
||||
return (java.util.List)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
@SuppressWarnings("rawtypes") |
||||
public java.util.List dynamicQuery( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||
int end) throws com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName6, |
||||
_methodParameterTypes6, |
||||
new Object[] { |
||||
ClpSerializer.translateInput(dynamicQuery), |
||||
|
||||
start, |
||||
|
||||
end |
||||
}); |
||||
} |
||||
catch (Throwable t) { |
||||
t = ClpSerializer.translateThrowable(t); |
||||
|
||||
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||
} |
||||
|
||||
if (t instanceof RuntimeException) { |
||||
throw (RuntimeException)t; |
||||
} |
||||
else { |
||||
throw new RuntimeException(t.getClass().getName() + |
||||
" is not a valid exception"); |
||||
} |
||||
} |
||||
|
||||
return (java.util.List)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
@SuppressWarnings("rawtypes") |
||||
public java.util.List dynamicQuery( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||
int end, |
||||
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName7, |
||||
_methodParameterTypes7, |
||||
new Object[] { |
||||
ClpSerializer.translateInput(dynamicQuery), |
||||
|
||||
start, |
||||
|
||||
end, |
||||
|
||||
ClpSerializer.translateInput(orderByComparator) |
||||
}); |
||||
} |
||||
catch (Throwable t) { |
||||
t = ClpSerializer.translateThrowable(t); |
||||
|
||||
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||
} |
||||
|
||||
if (t instanceof RuntimeException) { |
||||
throw (RuntimeException)t; |
||||
} |
||||
else { |
||||
throw new RuntimeException(t.getClass().getName() + |
||||
" is not a valid exception"); |
||||
} |
||||
} |
||||
|
||||
return (java.util.List)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
public long dynamicQueryCount( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName8, |
||||
_methodParameterTypes8, |
||||
new Object[] { ClpSerializer.translateInput(dynamicQuery) }); |
||||
} |
||||
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 ((Long)returnObj).longValue(); |
||||
} |
||||
|
||||
@Override |
||||
public long dynamicQueryCount( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, |
||||
com.liferay.portal.kernel.dao.orm.Projection projection) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName9, |
||||
_methodParameterTypes9, |
||||
new Object[] { |
||||
ClpSerializer.translateInput(dynamicQuery), |
||||
|
||||
ClpSerializer.translateInput(projection) |
||||
}); |
||||
} |
||||
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 ((Long)returnObj).longValue(); |
||||
} |
||||
|
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello fetchSportello(long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName10, |
||||
_methodParameterTypes10, new Object[] { sportelloId }); |
||||
} |
||||
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.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello getSportello(long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.PortalException, |
||||
com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName11, |
||||
_methodParameterTypes11, new Object[] { sportelloId }); |
||||
} |
||||
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.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
public com.liferay.portal.model.PersistedModel getPersistedModel( |
||||
java.io.Serializable primaryKeyObj) |
||||
throws com.liferay.portal.kernel.exception.PortalException, |
||||
com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName12, |
||||
_methodParameterTypes12, |
||||
new Object[] { ClpSerializer.translateInput(primaryKeyObj) }); |
||||
} |
||||
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 (com.liferay.portal.model.PersistedModel)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
public java.util.List<it.mwg.sicilia.sue.model.Sportello> getSportellos( |
||||
int start, int end) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName13, |
||||
_methodParameterTypes13, new Object[] { start, end }); |
||||
} |
||||
catch (Throwable t) { |
||||
t = ClpSerializer.translateThrowable(t); |
||||
|
||||
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||
} |
||||
|
||||
if (t instanceof RuntimeException) { |
||||
throw (RuntimeException)t; |
||||
} |
||||
else { |
||||
throw new RuntimeException(t.getClass().getName() + |
||||
" is not a valid exception"); |
||||
} |
||||
} |
||||
|
||||
return (java.util.List<it.mwg.sicilia.sue.model.Sportello>)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
public int getSportellosCount() |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName14, |
||||
_methodParameterTypes14, new Object[] { }); |
||||
} |
||||
catch (Throwable t) { |
||||
t = ClpSerializer.translateThrowable(t); |
||||
|
||||
if (t instanceof com.liferay.portal.kernel.exception.SystemException) { |
||||
throw (com.liferay.portal.kernel.exception.SystemException)t; |
||||
} |
||||
|
||||
if (t instanceof RuntimeException) { |
||||
throw (RuntimeException)t; |
||||
} |
||||
else { |
||||
throw new RuntimeException(t.getClass().getName() + |
||||
" is not a valid exception"); |
||||
} |
||||
} |
||||
|
||||
return ((Integer)returnObj).intValue(); |
||||
} |
||||
|
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello updateSportello( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName15, |
||||
_methodParameterTypes15, |
||||
new Object[] { ClpSerializer.translateInput(sportello) }); |
||||
} |
||||
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.mwg.sicilia.sue.model.Sportello)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
public java.lang.String getBeanIdentifier() { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableLocalService.invokeMethod(_methodName16, |
||||
_methodParameterTypes16, new Object[] { }); |
||||
} |
||||
catch (Throwable t) { |
||||
t = ClpSerializer.translateThrowable(t); |
||||
|
||||
if (t instanceof RuntimeException) { |
||||
throw (RuntimeException)t; |
||||
} |
||||
else { |
||||
throw new RuntimeException(t.getClass().getName() + |
||||
" is not a valid exception"); |
||||
} |
||||
} |
||||
|
||||
return (java.lang.String)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
public void setBeanIdentifier(java.lang.String beanIdentifier) { |
||||
try { |
||||
_invokableLocalService.invokeMethod(_methodName17, |
||||
_methodParameterTypes17, |
||||
new Object[] { ClpSerializer.translateInput(beanIdentifier) }); |
||||
} |
||||
catch (Throwable t) { |
||||
t = ClpSerializer.translateThrowable(t); |
||||
|
||||
if (t instanceof RuntimeException) { |
||||
throw (RuntimeException)t; |
||||
} |
||||
else { |
||||
throw new RuntimeException(t.getClass().getName() + |
||||
" is not a valid exception"); |
||||
} |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public java.lang.Object invokeMethod(java.lang.String name, |
||||
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||
throws java.lang.Throwable { |
||||
throw new UnsupportedOperationException(); |
||||
} |
||||
|
||||
private InvokableLocalService _invokableLocalService; |
||||
private String _methodName0; |
||||
private String[] _methodParameterTypes0; |
||||
private String _methodName1; |
||||
private String[] _methodParameterTypes1; |
||||
private String _methodName2; |
||||
private String[] _methodParameterTypes2; |
||||
private String _methodName3; |
||||
private String[] _methodParameterTypes3; |
||||
private String _methodName4; |
||||
private String[] _methodParameterTypes4; |
||||
private String _methodName5; |
||||
private String[] _methodParameterTypes5; |
||||
private String _methodName6; |
||||
private String[] _methodParameterTypes6; |
||||
private String _methodName7; |
||||
private String[] _methodParameterTypes7; |
||||
private String _methodName8; |
||||
private String[] _methodParameterTypes8; |
||||
private String _methodName9; |
||||
private String[] _methodParameterTypes9; |
||||
private String _methodName10; |
||||
private String[] _methodParameterTypes10; |
||||
private String _methodName11; |
||||
private String[] _methodParameterTypes11; |
||||
private String _methodName12; |
||||
private String[] _methodParameterTypes12; |
||||
private String _methodName13; |
||||
private String[] _methodParameterTypes13; |
||||
private String _methodName14; |
||||
private String[] _methodParameterTypes14; |
||||
private String _methodName15; |
||||
private String[] _methodParameterTypes15; |
||||
private String _methodName16; |
||||
private String[] _methodParameterTypes16; |
||||
private String _methodName17; |
||||
private String[] _methodParameterTypes17; |
||||
} |
@ -0,0 +1,308 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service; |
||||
|
||||
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; |
||||
import com.liferay.portal.kernel.util.ReferenceRegistry; |
||||
import com.liferay.portal.service.InvokableLocalService; |
||||
|
||||
/** |
||||
* Provides the local service utility for Sportello. This utility wraps |
||||
* {@link it.mwg.sicilia.sue.service.impl.SportelloLocalServiceImpl} and is the |
||||
* primary access point for service operations in application layer code running |
||||
* on the local server. Methods of this service will not have security checks |
||||
* based on the propagated JAAS credentials because this service can only be |
||||
* accessed from within the same VM. |
||||
* |
||||
* @author Manifattura Web Group Srl |
||||
* @see SportelloLocalService |
||||
* @see it.mwg.sicilia.sue.service.base.SportelloLocalServiceBaseImpl |
||||
* @see it.mwg.sicilia.sue.service.impl.SportelloLocalServiceImpl |
||||
* @generated |
||||
*/ |
||||
public class SportelloLocalServiceUtil { |
||||
/* |
||||
* NOTE FOR DEVELOPERS: |
||||
* |
||||
* Never modify this class directly. Add custom service methods to {@link it.mwg.sicilia.sue.service.impl.SportelloLocalServiceImpl} and rerun ServiceBuilder to regenerate this class. |
||||
*/ |
||||
|
||||
/** |
||||
* Adds the sportello to the database. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportello the sportello |
||||
* @return the sportello that was added |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static it.mwg.sicilia.sue.model.Sportello addSportello( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().addSportello(sportello); |
||||
} |
||||
|
||||
/** |
||||
* Creates a new sportello with the primary key. Does not add the sportello to the database. |
||||
* |
||||
* @param sportelloId the primary key for the new sportello |
||||
* @return the new sportello |
||||
*/ |
||||
public static it.mwg.sicilia.sue.model.Sportello createSportello( |
||||
long sportelloId) { |
||||
return getService().createSportello(sportelloId); |
||||
} |
||||
|
||||
/** |
||||
* Deletes the sportello with the primary key from the database. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportelloId the primary key of the sportello |
||||
* @return the sportello that was removed |
||||
* @throws PortalException if a sportello with the primary key could not be found |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static it.mwg.sicilia.sue.model.Sportello deleteSportello( |
||||
long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.PortalException, |
||||
com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().deleteSportello(sportelloId); |
||||
} |
||||
|
||||
/** |
||||
* Deletes the sportello from the database. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportello the sportello |
||||
* @return the sportello that was removed |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static it.mwg.sicilia.sue.model.Sportello deleteSportello( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().deleteSportello(sportello); |
||||
} |
||||
|
||||
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { |
||||
return getService().dynamicQuery(); |
||||
} |
||||
|
||||
/** |
||||
* Performs a dynamic query on the database and returns the matching rows. |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @return the matching rows |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@SuppressWarnings("rawtypes") |
||||
public static java.util.List dynamicQuery( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().dynamicQuery(dynamicQuery); |
||||
} |
||||
|
||||
/** |
||||
* Performs a dynamic query on the database and returns a range of the matching rows. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @param start the lower bound of the range of model instances |
||||
* @param end the upper bound of the range of model instances (not inclusive) |
||||
* @return the range of matching rows |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@SuppressWarnings("rawtypes") |
||||
public static java.util.List dynamicQuery( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||
int end) throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().dynamicQuery(dynamicQuery, start, end); |
||||
} |
||||
|
||||
/** |
||||
* Performs a dynamic query on the database and returns an ordered range of the matching rows. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @param start the lower bound of the range of model instances |
||||
* @param end the upper bound of the range of model instances (not inclusive) |
||||
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>) |
||||
* @return the ordered range of matching rows |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@SuppressWarnings("rawtypes") |
||||
public static java.util.List dynamicQuery( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||
int end, |
||||
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getService() |
||||
.dynamicQuery(dynamicQuery, start, end, orderByComparator); |
||||
} |
||||
|
||||
/** |
||||
* Returns the number of rows that match the dynamic query. |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @return the number of rows that match the dynamic query |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static long dynamicQueryCount( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().dynamicQueryCount(dynamicQuery); |
||||
} |
||||
|
||||
/** |
||||
* Returns the number of rows that match the dynamic query. |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @param projection the projection to apply to the query |
||||
* @return the number of rows that match the dynamic query |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static long dynamicQueryCount( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, |
||||
com.liferay.portal.kernel.dao.orm.Projection projection) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().dynamicQueryCount(dynamicQuery, projection); |
||||
} |
||||
|
||||
public static it.mwg.sicilia.sue.model.Sportello fetchSportello( |
||||
long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().fetchSportello(sportelloId); |
||||
} |
||||
|
||||
/** |
||||
* Returns the sportello with the primary key. |
||||
* |
||||
* @param sportelloId the primary key of the sportello |
||||
* @return the sportello |
||||
* @throws PortalException if a sportello with the primary key could not be found |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static it.mwg.sicilia.sue.model.Sportello getSportello( |
||||
long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.PortalException, |
||||
com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().getSportello(sportelloId); |
||||
} |
||||
|
||||
public static com.liferay.portal.model.PersistedModel getPersistedModel( |
||||
java.io.Serializable primaryKeyObj) |
||||
throws com.liferay.portal.kernel.exception.PortalException, |
||||
com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().getPersistedModel(primaryKeyObj); |
||||
} |
||||
|
||||
/** |
||||
* Returns a range of all the sportellos. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param start the lower bound of the range of sportellos |
||||
* @param end the upper bound of the range of sportellos (not inclusive) |
||||
* @return the range of sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static java.util.List<it.mwg.sicilia.sue.model.Sportello> getSportellos( |
||||
int start, int end) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().getSportellos(start, end); |
||||
} |
||||
|
||||
/** |
||||
* Returns the number of sportellos. |
||||
* |
||||
* @return the number of sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static int getSportellosCount() |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().getSportellosCount(); |
||||
} |
||||
|
||||
/** |
||||
* Updates the sportello in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportello the sportello |
||||
* @return the sportello that was updated |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static it.mwg.sicilia.sue.model.Sportello updateSportello( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getService().updateSportello(sportello); |
||||
} |
||||
|
||||
/** |
||||
* Returns the Spring bean ID for this bean. |
||||
* |
||||
* @return the Spring bean ID for this bean |
||||
*/ |
||||
public static java.lang.String getBeanIdentifier() { |
||||
return getService().getBeanIdentifier(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the Spring bean ID for this bean. |
||||
* |
||||
* @param beanIdentifier the Spring bean ID for this bean |
||||
*/ |
||||
public static void setBeanIdentifier(java.lang.String beanIdentifier) { |
||||
getService().setBeanIdentifier(beanIdentifier); |
||||
} |
||||
|
||||
public static java.lang.Object invokeMethod(java.lang.String name, |
||||
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||
throws java.lang.Throwable { |
||||
return getService().invokeMethod(name, parameterTypes, arguments); |
||||
} |
||||
|
||||
public static void clearService() { |
||||
_service = null; |
||||
} |
||||
|
||||
public static SportelloLocalService getService() { |
||||
if (_service == null) { |
||||
InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), |
||||
SportelloLocalService.class.getName()); |
||||
|
||||
if (invokableLocalService instanceof SportelloLocalService) { |
||||
_service = (SportelloLocalService)invokableLocalService; |
||||
} |
||||
else { |
||||
_service = new SportelloLocalServiceClp(invokableLocalService); |
||||
} |
||||
|
||||
ReferenceRegistry.registerReference(SportelloLocalServiceUtil.class, |
||||
"_service"); |
||||
} |
||||
|
||||
return _service; |
||||
} |
||||
|
||||
/** |
||||
* @deprecated As of 6.2.0 |
||||
*/ |
||||
public void setService(SportelloLocalService service) { |
||||
} |
||||
|
||||
private static SportelloLocalService _service; |
||||
} |
@ -0,0 +1,311 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service; |
||||
|
||||
import com.liferay.portal.service.ServiceWrapper; |
||||
|
||||
/** |
||||
* Provides a wrapper for {@link SportelloLocalService}. |
||||
* |
||||
* @author Manifattura Web Group Srl |
||||
* @see SportelloLocalService |
||||
* @generated |
||||
*/ |
||||
public class SportelloLocalServiceWrapper implements SportelloLocalService, |
||||
ServiceWrapper<SportelloLocalService> { |
||||
public SportelloLocalServiceWrapper( |
||||
SportelloLocalService sportelloLocalService) { |
||||
_sportelloLocalService = sportelloLocalService; |
||||
} |
||||
|
||||
/** |
||||
* Adds the sportello to the database. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportello the sportello |
||||
* @return the sportello that was added |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello addSportello( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.addSportello(sportello); |
||||
} |
||||
|
||||
/** |
||||
* Creates a new sportello with the primary key. Does not add the sportello to the database. |
||||
* |
||||
* @param sportelloId the primary key for the new sportello |
||||
* @return the new sportello |
||||
*/ |
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello createSportello(long sportelloId) { |
||||
return _sportelloLocalService.createSportello(sportelloId); |
||||
} |
||||
|
||||
/** |
||||
* Deletes the sportello with the primary key from the database. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportelloId the primary key of the sportello |
||||
* @return the sportello that was removed |
||||
* @throws PortalException if a sportello with the primary key could not be found |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello deleteSportello(long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.PortalException, |
||||
com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.deleteSportello(sportelloId); |
||||
} |
||||
|
||||
/** |
||||
* Deletes the sportello from the database. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportello the sportello |
||||
* @return the sportello that was removed |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello deleteSportello( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.deleteSportello(sportello); |
||||
} |
||||
|
||||
@Override |
||||
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { |
||||
return _sportelloLocalService.dynamicQuery(); |
||||
} |
||||
|
||||
/** |
||||
* Performs a dynamic query on the database and returns the matching rows. |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @return the matching rows |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
@SuppressWarnings("rawtypes") |
||||
public java.util.List dynamicQuery( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.dynamicQuery(dynamicQuery); |
||||
} |
||||
|
||||
/** |
||||
* Performs a dynamic query on the database and returns a range of the matching rows. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @param start the lower bound of the range of model instances |
||||
* @param end the upper bound of the range of model instances (not inclusive) |
||||
* @return the range of matching rows |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
@SuppressWarnings("rawtypes") |
||||
public java.util.List dynamicQuery( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||
int end) throws com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.dynamicQuery(dynamicQuery, start, end); |
||||
} |
||||
|
||||
/** |
||||
* Performs a dynamic query on the database and returns an ordered range of the matching rows. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @param start the lower bound of the range of model instances |
||||
* @param end the upper bound of the range of model instances (not inclusive) |
||||
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>) |
||||
* @return the ordered range of matching rows |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
@SuppressWarnings("rawtypes") |
||||
public java.util.List dynamicQuery( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, |
||||
int end, |
||||
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.dynamicQuery(dynamicQuery, start, end, |
||||
orderByComparator); |
||||
} |
||||
|
||||
/** |
||||
* Returns the number of rows that match the dynamic query. |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @return the number of rows that match the dynamic query |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
public long dynamicQueryCount( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.dynamicQueryCount(dynamicQuery); |
||||
} |
||||
|
||||
/** |
||||
* Returns the number of rows that match the dynamic query. |
||||
* |
||||
* @param dynamicQuery the dynamic query |
||||
* @param projection the projection to apply to the query |
||||
* @return the number of rows that match the dynamic query |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
public long dynamicQueryCount( |
||||
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, |
||||
com.liferay.portal.kernel.dao.orm.Projection projection) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.dynamicQueryCount(dynamicQuery, projection); |
||||
} |
||||
|
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello fetchSportello(long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.fetchSportello(sportelloId); |
||||
} |
||||
|
||||
/** |
||||
* Returns the sportello with the primary key. |
||||
* |
||||
* @param sportelloId the primary key of the sportello |
||||
* @return the sportello |
||||
* @throws PortalException if a sportello with the primary key could not be found |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello getSportello(long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.PortalException, |
||||
com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.getSportello(sportelloId); |
||||
} |
||||
|
||||
@Override |
||||
public com.liferay.portal.model.PersistedModel getPersistedModel( |
||||
java.io.Serializable primaryKeyObj) |
||||
throws com.liferay.portal.kernel.exception.PortalException, |
||||
com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.getPersistedModel(primaryKeyObj); |
||||
} |
||||
|
||||
/** |
||||
* Returns a range of all the sportellos. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param start the lower bound of the range of sportellos |
||||
* @param end the upper bound of the range of sportellos (not inclusive) |
||||
* @return the range of sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
public java.util.List<it.mwg.sicilia.sue.model.Sportello> getSportellos( |
||||
int start, int end) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.getSportellos(start, end); |
||||
} |
||||
|
||||
/** |
||||
* Returns the number of sportellos. |
||||
* |
||||
* @return the number of sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
public int getSportellosCount() |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.getSportellosCount(); |
||||
} |
||||
|
||||
/** |
||||
* Updates the sportello in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportello the sportello |
||||
* @return the sportello that was updated |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
@Override |
||||
public it.mwg.sicilia.sue.model.Sportello updateSportello( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return _sportelloLocalService.updateSportello(sportello); |
||||
} |
||||
|
||||
/** |
||||
* Returns the Spring bean ID for this bean. |
||||
* |
||||
* @return the Spring bean ID for this bean |
||||
*/ |
||||
@Override |
||||
public java.lang.String getBeanIdentifier() { |
||||
return _sportelloLocalService.getBeanIdentifier(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the Spring bean ID for this bean. |
||||
* |
||||
* @param beanIdentifier the Spring bean ID for this bean |
||||
*/ |
||||
@Override |
||||
public void setBeanIdentifier(java.lang.String beanIdentifier) { |
||||
_sportelloLocalService.setBeanIdentifier(beanIdentifier); |
||||
} |
||||
|
||||
@Override |
||||
public java.lang.Object invokeMethod(java.lang.String name, |
||||
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||
throws java.lang.Throwable { |
||||
return _sportelloLocalService.invokeMethod(name, parameterTypes, |
||||
arguments); |
||||
} |
||||
|
||||
/** |
||||
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService} |
||||
*/ |
||||
public SportelloLocalService getWrappedSportelloLocalService() { |
||||
return _sportelloLocalService; |
||||
} |
||||
|
||||
/** |
||||
* @deprecated As of 6.1.0, replaced by {@link #setWrappedService} |
||||
*/ |
||||
public void setWrappedSportelloLocalService( |
||||
SportelloLocalService sportelloLocalService) { |
||||
_sportelloLocalService = sportelloLocalService; |
||||
} |
||||
|
||||
@Override |
||||
public SportelloLocalService getWrappedService() { |
||||
return _sportelloLocalService; |
||||
} |
||||
|
||||
@Override |
||||
public void setWrappedService(SportelloLocalService sportelloLocalService) { |
||||
_sportelloLocalService = sportelloLocalService; |
||||
} |
||||
|
||||
private SportelloLocalService _sportelloLocalService; |
||||
} |
@ -0,0 +1,66 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service; |
||||
|
||||
import com.liferay.portal.kernel.exception.PortalException; |
||||
import com.liferay.portal.kernel.exception.SystemException; |
||||
import com.liferay.portal.kernel.jsonwebservice.JSONWebService; |
||||
import com.liferay.portal.kernel.transaction.Isolation; |
||||
import com.liferay.portal.kernel.transaction.Transactional; |
||||
import com.liferay.portal.security.ac.AccessControlled; |
||||
import com.liferay.portal.service.BaseService; |
||||
import com.liferay.portal.service.InvokableService; |
||||
|
||||
/** |
||||
* Provides the remote service interface for Sportello. Methods of this |
||||
* service are expected to have security checks based on the propagated JAAS |
||||
* credentials because this service can be accessed remotely. |
||||
* |
||||
* @author Manifattura Web Group Srl |
||||
* @see SportelloServiceUtil |
||||
* @see it.mwg.sicilia.sue.service.base.SportelloServiceBaseImpl |
||||
* @see it.mwg.sicilia.sue.service.impl.SportelloServiceImpl |
||||
* @generated |
||||
*/ |
||||
@AccessControlled |
||||
@JSONWebService |
||||
@Transactional(isolation = Isolation.PORTAL, rollbackFor = { |
||||
PortalException.class, SystemException.class}) |
||||
public interface SportelloService extends BaseService, InvokableService { |
||||
/* |
||||
* NOTE FOR DEVELOPERS: |
||||
* |
||||
* Never modify or reference this interface directly. Always use {@link SportelloServiceUtil} to access the sportello remote service. Add custom service methods to {@link it.mwg.sicilia.sue.service.impl.SportelloServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. |
||||
*/ |
||||
|
||||
/** |
||||
* Returns the Spring bean ID for this bean. |
||||
* |
||||
* @return the Spring bean ID for this bean |
||||
*/ |
||||
public java.lang.String getBeanIdentifier(); |
||||
|
||||
/** |
||||
* Sets the Spring bean ID for this bean. |
||||
* |
||||
* @param beanIdentifier the Spring bean ID for this bean |
||||
*/ |
||||
public void setBeanIdentifier(java.lang.String beanIdentifier); |
||||
|
||||
@Override |
||||
public java.lang.Object invokeMethod(java.lang.String name, |
||||
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||
throws java.lang.Throwable; |
||||
} |
@ -0,0 +1,91 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service; |
||||
|
||||
import com.liferay.portal.service.InvokableService; |
||||
|
||||
/** |
||||
* @author Manifattura Web Group Srl |
||||
* @generated |
||||
*/ |
||||
public class SportelloServiceClp implements SportelloService { |
||||
public SportelloServiceClp(InvokableService invokableService) { |
||||
_invokableService = invokableService; |
||||
|
||||
_methodName0 = "getBeanIdentifier"; |
||||
|
||||
_methodParameterTypes0 = new String[] { }; |
||||
|
||||
_methodName1 = "setBeanIdentifier"; |
||||
|
||||
_methodParameterTypes1 = new String[] { "java.lang.String" }; |
||||
} |
||||
|
||||
@Override |
||||
public java.lang.String getBeanIdentifier() { |
||||
Object returnObj = null; |
||||
|
||||
try { |
||||
returnObj = _invokableService.invokeMethod(_methodName0, |
||||
_methodParameterTypes0, new Object[] { }); |
||||
} |
||||
catch (Throwable t) { |
||||
t = ClpSerializer.translateThrowable(t); |
||||
|
||||
if (t instanceof RuntimeException) { |
||||
throw (RuntimeException)t; |
||||
} |
||||
else { |
||||
throw new RuntimeException(t.getClass().getName() + |
||||
" is not a valid exception"); |
||||
} |
||||
} |
||||
|
||||
return (java.lang.String)ClpSerializer.translateOutput(returnObj); |
||||
} |
||||
|
||||
@Override |
||||
public void setBeanIdentifier(java.lang.String beanIdentifier) { |
||||
try { |
||||
_invokableService.invokeMethod(_methodName1, |
||||
_methodParameterTypes1, |
||||
new Object[] { ClpSerializer.translateInput(beanIdentifier) }); |
||||
} |
||||
catch (Throwable t) { |
||||
t = ClpSerializer.translateThrowable(t); |
||||
|
||||
if (t instanceof RuntimeException) { |
||||
throw (RuntimeException)t; |
||||
} |
||||
else { |
||||
throw new RuntimeException(t.getClass().getName() + |
||||
" is not a valid exception"); |
||||
} |
||||
} |
||||
} |
||||
|
||||
@Override |
||||
public java.lang.Object invokeMethod(java.lang.String name, |
||||
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||
throws java.lang.Throwable { |
||||
throw new UnsupportedOperationException(); |
||||
} |
||||
|
||||
private InvokableService _invokableService; |
||||
private String _methodName0; |
||||
private String[] _methodParameterTypes0; |
||||
private String _methodName1; |
||||
private String[] _methodParameterTypes1; |
||||
} |
@ -0,0 +1,96 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service; |
||||
|
||||
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; |
||||
import com.liferay.portal.kernel.util.ReferenceRegistry; |
||||
import com.liferay.portal.service.InvokableService; |
||||
|
||||
/** |
||||
* Provides the remote service utility for Sportello. This utility wraps |
||||
* {@link it.mwg.sicilia.sue.service.impl.SportelloServiceImpl} and is the |
||||
* primary access point for service operations in application layer code running |
||||
* on a remote server. Methods of this service are expected to have security |
||||
* checks based on the propagated JAAS credentials because this service can be |
||||
* accessed remotely. |
||||
* |
||||
* @author Manifattura Web Group Srl |
||||
* @see SportelloService |
||||
* @see it.mwg.sicilia.sue.service.base.SportelloServiceBaseImpl |
||||
* @see it.mwg.sicilia.sue.service.impl.SportelloServiceImpl |
||||
* @generated |
||||
*/ |
||||
public class SportelloServiceUtil { |
||||
/* |
||||
* NOTE FOR DEVELOPERS: |
||||
* |
||||
* Never modify this class directly. Add custom service methods to {@link it.mwg.sicilia.sue.service.impl.SportelloServiceImpl} and rerun ServiceBuilder to regenerate this class. |
||||
*/ |
||||
|
||||
/** |
||||
* Returns the Spring bean ID for this bean. |
||||
* |
||||
* @return the Spring bean ID for this bean |
||||
*/ |
||||
public static java.lang.String getBeanIdentifier() { |
||||
return getService().getBeanIdentifier(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the Spring bean ID for this bean. |
||||
* |
||||
* @param beanIdentifier the Spring bean ID for this bean |
||||
*/ |
||||
public static void setBeanIdentifier(java.lang.String beanIdentifier) { |
||||
getService().setBeanIdentifier(beanIdentifier); |
||||
} |
||||
|
||||
public static java.lang.Object invokeMethod(java.lang.String name, |
||||
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||
throws java.lang.Throwable { |
||||
return getService().invokeMethod(name, parameterTypes, arguments); |
||||
} |
||||
|
||||
public static void clearService() { |
||||
_service = null; |
||||
} |
||||
|
||||
public static SportelloService getService() { |
||||
if (_service == null) { |
||||
InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(), |
||||
SportelloService.class.getName()); |
||||
|
||||
if (invokableService instanceof SportelloService) { |
||||
_service = (SportelloService)invokableService; |
||||
} |
||||
else { |
||||
_service = new SportelloServiceClp(invokableService); |
||||
} |
||||
|
||||
ReferenceRegistry.registerReference(SportelloServiceUtil.class, |
||||
"_service"); |
||||
} |
||||
|
||||
return _service; |
||||
} |
||||
|
||||
/** |
||||
* @deprecated As of 6.2.0 |
||||
*/ |
||||
public void setService(SportelloService service) { |
||||
} |
||||
|
||||
private static SportelloService _service; |
||||
} |
@ -0,0 +1,84 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service; |
||||
|
||||
import com.liferay.portal.service.ServiceWrapper; |
||||
|
||||
/** |
||||
* Provides a wrapper for {@link SportelloService}. |
||||
* |
||||
* @author Manifattura Web Group Srl |
||||
* @see SportelloService |
||||
* @generated |
||||
*/ |
||||
public class SportelloServiceWrapper implements SportelloService, |
||||
ServiceWrapper<SportelloService> { |
||||
public SportelloServiceWrapper(SportelloService sportelloService) { |
||||
_sportelloService = sportelloService; |
||||
} |
||||
|
||||
/** |
||||
* Returns the Spring bean ID for this bean. |
||||
* |
||||
* @return the Spring bean ID for this bean |
||||
*/ |
||||
@Override |
||||
public java.lang.String getBeanIdentifier() { |
||||
return _sportelloService.getBeanIdentifier(); |
||||
} |
||||
|
||||
/** |
||||
* Sets the Spring bean ID for this bean. |
||||
* |
||||
* @param beanIdentifier the Spring bean ID for this bean |
||||
*/ |
||||
@Override |
||||
public void setBeanIdentifier(java.lang.String beanIdentifier) { |
||||
_sportelloService.setBeanIdentifier(beanIdentifier); |
||||
} |
||||
|
||||
@Override |
||||
public java.lang.Object invokeMethod(java.lang.String name, |
||||
java.lang.String[] parameterTypes, java.lang.Object[] arguments) |
||||
throws java.lang.Throwable { |
||||
return _sportelloService.invokeMethod(name, parameterTypes, arguments); |
||||
} |
||||
|
||||
/** |
||||
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService} |
||||
*/ |
||||
public SportelloService getWrappedSportelloService() { |
||||
return _sportelloService; |
||||
} |
||||
|
||||
/** |
||||
* @deprecated As of 6.1.0, replaced by {@link #setWrappedService} |
||||
*/ |
||||
public void setWrappedSportelloService(SportelloService sportelloService) { |
||||
_sportelloService = sportelloService; |
||||
} |
||||
|
||||
@Override |
||||
public SportelloService getWrappedService() { |
||||
return _sportelloService; |
||||
} |
||||
|
||||
@Override |
||||
public void setWrappedService(SportelloService sportelloService) { |
||||
_sportelloService = sportelloService; |
||||
} |
||||
|
||||
private SportelloService _sportelloService; |
||||
} |
@ -0,0 +1,44 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service.messaging; |
||||
|
||||
import com.liferay.portal.kernel.messaging.BaseMessageListener; |
||||
import com.liferay.portal.kernel.messaging.Message; |
||||
|
||||
import it.mwg.sicilia.sue.service.ClpSerializer; |
||||
import it.mwg.sicilia.sue.service.SportelloLocalServiceUtil; |
||||
import it.mwg.sicilia.sue.service.SportelloServiceUtil; |
||||
|
||||
/** |
||||
* @author Manifattura Web Group Srl |
||||
*/ |
||||
public class ClpMessageListener extends BaseMessageListener { |
||||
public static String getServletContextName() { |
||||
return ClpSerializer.getServletContextName(); |
||||
} |
||||
|
||||
@Override |
||||
protected void doReceive(Message message) throws Exception { |
||||
String command = message.getString("command"); |
||||
String servletContextName = message.getString("servletContextName"); |
||||
|
||||
if (command.equals("undeploy") && |
||||
servletContextName.equals(getServletContextName())) { |
||||
SportelloLocalServiceUtil.clearService(); |
||||
|
||||
SportelloServiceUtil.clearService(); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,37 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service.persistence; |
||||
|
||||
import com.liferay.portal.kernel.dao.orm.BaseActionableDynamicQuery; |
||||
import com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
import it.mwg.sicilia.sue.model.Sportello; |
||||
import it.mwg.sicilia.sue.service.SportelloLocalServiceUtil; |
||||
|
||||
/** |
||||
* @author Manifattura Web Group Srl |
||||
* @generated |
||||
*/ |
||||
public abstract class SportelloActionableDynamicQuery |
||||
extends BaseActionableDynamicQuery { |
||||
public SportelloActionableDynamicQuery() throws SystemException { |
||||
setBaseLocalService(SportelloLocalServiceUtil.getService()); |
||||
setClass(Sportello.class); |
||||
|
||||
setClassLoader(it.mwg.sicilia.sue.service.ClpSerializer.class.getClassLoader()); |
||||
|
||||
setPrimaryKeyPropertyName("sportelloId"); |
||||
} |
||||
} |
@ -0,0 +1,161 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service.persistence; |
||||
|
||||
import com.liferay.portal.service.persistence.BasePersistence; |
||||
|
||||
import it.mwg.sicilia.sue.model.Sportello; |
||||
|
||||
/** |
||||
* The persistence interface for the sportello service. |
||||
* |
||||
* <p> |
||||
* Caching information and settings can be found in <code>portal.properties</code> |
||||
* </p> |
||||
* |
||||
* @author Manifattura Web Group Srl |
||||
* @see SportelloPersistenceImpl |
||||
* @see SportelloUtil |
||||
* @generated |
||||
*/ |
||||
public interface SportelloPersistence extends BasePersistence<Sportello> { |
||||
/* |
||||
* NOTE FOR DEVELOPERS: |
||||
* |
||||
* Never modify or reference this interface directly. Always use {@link SportelloUtil} to access the sportello persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. |
||||
*/ |
||||
|
||||
/** |
||||
* Caches the sportello in the entity cache if it is enabled. |
||||
* |
||||
* @param sportello the sportello |
||||
*/ |
||||
public void cacheResult(it.mwg.sicilia.sue.model.Sportello sportello); |
||||
|
||||
/** |
||||
* Caches the sportellos in the entity cache if it is enabled. |
||||
* |
||||
* @param sportellos the sportellos |
||||
*/ |
||||
public void cacheResult( |
||||
java.util.List<it.mwg.sicilia.sue.model.Sportello> sportellos); |
||||
|
||||
/** |
||||
* Creates a new sportello with the primary key. Does not add the sportello to the database. |
||||
* |
||||
* @param sportelloId the primary key for the new sportello |
||||
* @return the new sportello |
||||
*/ |
||||
public it.mwg.sicilia.sue.model.Sportello create(long sportelloId); |
||||
|
||||
/** |
||||
* Removes the sportello with the primary key from the database. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportelloId the primary key of the sportello |
||||
* @return the sportello that was removed |
||||
* @throws it.mwg.sicilia.sue.NoSuchSportelloException if a sportello with the primary key could not be found |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public it.mwg.sicilia.sue.model.Sportello remove(long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.SystemException, |
||||
it.mwg.sicilia.sue.NoSuchSportelloException; |
||||
|
||||
public it.mwg.sicilia.sue.model.Sportello updateImpl( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Returns the sportello with the primary key or throws a {@link it.mwg.sicilia.sue.NoSuchSportelloException} if it could not be found. |
||||
* |
||||
* @param sportelloId the primary key of the sportello |
||||
* @return the sportello |
||||
* @throws it.mwg.sicilia.sue.NoSuchSportelloException if a sportello with the primary key could not be found |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public it.mwg.sicilia.sue.model.Sportello findByPrimaryKey(long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.SystemException, |
||||
it.mwg.sicilia.sue.NoSuchSportelloException; |
||||
|
||||
/** |
||||
* Returns the sportello with the primary key or returns <code>null</code> if it could not be found. |
||||
* |
||||
* @param sportelloId the primary key of the sportello |
||||
* @return the sportello, or <code>null</code> if a sportello with the primary key could not be found |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public it.mwg.sicilia.sue.model.Sportello fetchByPrimaryKey( |
||||
long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Returns all the sportellos. |
||||
* |
||||
* @return the sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public java.util.List<it.mwg.sicilia.sue.model.Sportello> findAll() |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Returns a range of all the sportellos. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param start the lower bound of the range of sportellos |
||||
* @param end the upper bound of the range of sportellos (not inclusive) |
||||
* @return the range of sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public java.util.List<it.mwg.sicilia.sue.model.Sportello> findAll( |
||||
int start, int end) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Returns an ordered range of all the sportellos. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param start the lower bound of the range of sportellos |
||||
* @param end the upper bound of the range of sportellos (not inclusive) |
||||
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>) |
||||
* @return the ordered range of sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public java.util.List<it.mwg.sicilia.sue.model.Sportello> findAll( |
||||
int start, int end, |
||||
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Removes all the sportellos from the database. |
||||
* |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public void removeAll() |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
|
||||
/** |
||||
* Returns the number of sportellos. |
||||
* |
||||
* @return the number of sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public int countAll() |
||||
throws com.liferay.portal.kernel.exception.SystemException; |
||||
} |
@ -0,0 +1,279 @@
|
||||
/** |
||||
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. |
||||
* |
||||
* This library is free software; you can redistribute it and/or modify it under |
||||
* the terms of the GNU Lesser General Public License as published by the Free |
||||
* Software Foundation; either version 2.1 of the License, or (at your option) |
||||
* any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, but WITHOUT |
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
||||
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
||||
* details. |
||||
*/ |
||||
|
||||
package it.mwg.sicilia.sue.service.persistence; |
||||
|
||||
import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; |
||||
import com.liferay.portal.kernel.dao.orm.DynamicQuery; |
||||
import com.liferay.portal.kernel.exception.SystemException; |
||||
import com.liferay.portal.kernel.util.OrderByComparator; |
||||
import com.liferay.portal.kernel.util.ReferenceRegistry; |
||||
import com.liferay.portal.service.ServiceContext; |
||||
|
||||
import it.mwg.sicilia.sue.model.Sportello; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* The persistence utility for the sportello service. This utility wraps {@link SportelloPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. |
||||
* |
||||
* <p> |
||||
* Caching information and settings can be found in <code>portal.properties</code> |
||||
* </p> |
||||
* |
||||
* @author Manifattura Web Group Srl |
||||
* @see SportelloPersistence |
||||
* @see SportelloPersistenceImpl |
||||
* @generated |
||||
*/ |
||||
public class SportelloUtil { |
||||
/* |
||||
* NOTE FOR DEVELOPERS: |
||||
* |
||||
* Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. |
||||
*/ |
||||
|
||||
/** |
||||
* @see com.liferay.portal.service.persistence.BasePersistence#clearCache() |
||||
*/ |
||||
public static void clearCache() { |
||||
getPersistence().clearCache(); |
||||
} |
||||
|
||||
/** |
||||
* @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) |
||||
*/ |
||||
public static void clearCache(Sportello sportello) { |
||||
getPersistence().clearCache(sportello); |
||||
} |
||||
|
||||
/** |
||||
* @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) |
||||
*/ |
||||
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) |
||||
throws SystemException { |
||||
return getPersistence().countWithDynamicQuery(dynamicQuery); |
||||
} |
||||
|
||||
/** |
||||
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) |
||||
*/ |
||||
public static List<Sportello> findWithDynamicQuery( |
||||
DynamicQuery dynamicQuery) throws SystemException { |
||||
return getPersistence().findWithDynamicQuery(dynamicQuery); |
||||
} |
||||
|
||||
/** |
||||
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) |
||||
*/ |
||||
public static List<Sportello> findWithDynamicQuery( |
||||
DynamicQuery dynamicQuery, int start, int end) |
||||
throws SystemException { |
||||
return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); |
||||
} |
||||
|
||||
/** |
||||
* @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) |
||||
*/ |
||||
public static List<Sportello> findWithDynamicQuery( |
||||
DynamicQuery dynamicQuery, int start, int end, |
||||
OrderByComparator orderByComparator) throws SystemException { |
||||
return getPersistence() |
||||
.findWithDynamicQuery(dynamicQuery, start, end, |
||||
orderByComparator); |
||||
} |
||||
|
||||
/** |
||||
* @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) |
||||
*/ |
||||
public static Sportello update(Sportello sportello) |
||||
throws SystemException { |
||||
return getPersistence().update(sportello); |
||||
} |
||||
|
||||
/** |
||||
* @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) |
||||
*/ |
||||
public static Sportello update(Sportello sportello, |
||||
ServiceContext serviceContext) throws SystemException { |
||||
return getPersistence().update(sportello, serviceContext); |
||||
} |
||||
|
||||
/** |
||||
* Caches the sportello in the entity cache if it is enabled. |
||||
* |
||||
* @param sportello the sportello |
||||
*/ |
||||
public static void cacheResult(it.mwg.sicilia.sue.model.Sportello sportello) { |
||||
getPersistence().cacheResult(sportello); |
||||
} |
||||
|
||||
/** |
||||
* Caches the sportellos in the entity cache if it is enabled. |
||||
* |
||||
* @param sportellos the sportellos |
||||
*/ |
||||
public static void cacheResult( |
||||
java.util.List<it.mwg.sicilia.sue.model.Sportello> sportellos) { |
||||
getPersistence().cacheResult(sportellos); |
||||
} |
||||
|
||||
/** |
||||
* Creates a new sportello with the primary key. Does not add the sportello to the database. |
||||
* |
||||
* @param sportelloId the primary key for the new sportello |
||||
* @return the new sportello |
||||
*/ |
||||
public static it.mwg.sicilia.sue.model.Sportello create(long sportelloId) { |
||||
return getPersistence().create(sportelloId); |
||||
} |
||||
|
||||
/** |
||||
* Removes the sportello with the primary key from the database. Also notifies the appropriate model listeners. |
||||
* |
||||
* @param sportelloId the primary key of the sportello |
||||
* @return the sportello that was removed |
||||
* @throws it.mwg.sicilia.sue.NoSuchSportelloException if a sportello with the primary key could not be found |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static it.mwg.sicilia.sue.model.Sportello remove(long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.SystemException, |
||||
it.mwg.sicilia.sue.NoSuchSportelloException { |
||||
return getPersistence().remove(sportelloId); |
||||
} |
||||
|
||||
public static it.mwg.sicilia.sue.model.Sportello updateImpl( |
||||
it.mwg.sicilia.sue.model.Sportello sportello) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getPersistence().updateImpl(sportello); |
||||
} |
||||
|
||||
/** |
||||
* Returns the sportello with the primary key or throws a {@link it.mwg.sicilia.sue.NoSuchSportelloException} if it could not be found. |
||||
* |
||||
* @param sportelloId the primary key of the sportello |
||||
* @return the sportello |
||||
* @throws it.mwg.sicilia.sue.NoSuchSportelloException if a sportello with the primary key could not be found |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static it.mwg.sicilia.sue.model.Sportello findByPrimaryKey( |
||||
long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.SystemException, |
||||
it.mwg.sicilia.sue.NoSuchSportelloException { |
||||
return getPersistence().findByPrimaryKey(sportelloId); |
||||
} |
||||
|
||||
/** |
||||
* Returns the sportello with the primary key or returns <code>null</code> if it could not be found. |
||||
* |
||||
* @param sportelloId the primary key of the sportello |
||||
* @return the sportello, or <code>null</code> if a sportello with the primary key could not be found |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static it.mwg.sicilia.sue.model.Sportello fetchByPrimaryKey( |
||||
long sportelloId) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getPersistence().fetchByPrimaryKey(sportelloId); |
||||
} |
||||
|
||||
/** |
||||
* Returns all the sportellos. |
||||
* |
||||
* @return the sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static java.util.List<it.mwg.sicilia.sue.model.Sportello> findAll() |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getPersistence().findAll(); |
||||
} |
||||
|
||||
/** |
||||
* Returns a range of all the sportellos. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param start the lower bound of the range of sportellos |
||||
* @param end the upper bound of the range of sportellos (not inclusive) |
||||
* @return the range of sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static java.util.List<it.mwg.sicilia.sue.model.Sportello> findAll( |
||||
int start, int end) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getPersistence().findAll(start, end); |
||||
} |
||||
|
||||
/** |
||||
* Returns an ordered range of all the sportellos. |
||||
* |
||||
* <p> |
||||
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.mwg.sicilia.sue.model.impl.SportelloModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. |
||||
* </p> |
||||
* |
||||
* @param start the lower bound of the range of sportellos |
||||
* @param end the upper bound of the range of sportellos (not inclusive) |
||||
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>) |
||||
* @return the ordered range of sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static java.util.List<it.mwg.sicilia.sue.model.Sportello> findAll( |
||||
int start, int end, |
||||
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getPersistence().findAll(start, end, orderByComparator); |
||||
} |
||||
|
||||
/** |
||||
* Removes all the sportellos from the database. |
||||
* |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static void removeAll() |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
getPersistence().removeAll(); |
||||
} |
||||
|
||||
/** |
||||
* Returns the number of sportellos. |
||||
* |
||||
* @return the number of sportellos |
||||
* @throws SystemException if a system exception occurred |
||||
*/ |
||||
public static int countAll() |
||||
throws com.liferay.portal.kernel.exception.SystemException { |
||||
return getPersistence().countAll(); |
||||
} |
||||
|
||||
public static SportelloPersistence getPersistence() { |
||||
if (_persistence == null) { |
||||
_persistence = (SportelloPersistence)PortletBeanLocatorUtil.locate(it.mwg.sicilia.sue.service.ClpSerializer.getServletContextName(), |
||||
SportelloPersistence.class.getName()); |
||||
|
||||
ReferenceRegistry.registerReference(SportelloUtil.class, |
||||
"_persistence"); |
||||
} |
||||
|
||||
return _persistence; |
||||
} |
||||
|
||||
/** |
||||
* @deprecated As of 6.2.0 |
||||
*/ |
||||
public void setPersistence(SportelloPersistence persistence) { |
||||
} |
||||
|
||||
private static SportelloPersistence _persistence; |
||||
} |
@ -0,0 +1,19 @@
|
||||
create table sicilia_sue_SUE ( |
||||
sueId LONG not null primary key, |
||||
groupId LONG, |
||||
companyId LONG, |
||||
userId LONG, |
||||
userName VARCHAR(75) null, |
||||
createDate DATE null, |
||||
modifiedDate DATE null |
||||
); |
||||
|
||||
create table sicilia_sue_Sportello ( |
||||
sportelloId LONG not null primary key, |
||||
groupId LONG, |
||||
companyId LONG, |
||||
userId LONG, |
||||
userName VARCHAR(75) null, |
||||
createDate DATE null, |
||||
modifiedDate DATE null |
||||
); |
Some files were not shown because too many files have changed in this diff Show More
Caricamento…
Reference in new issue