it.cnr.contab.config00.ejb.Configurazione_cnrComponentSessionBean Maven / Gradle / Ivy
/*
* Copyright (C) 2019 Consiglio Nazionale delle Ricerche
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
package it.cnr.contab.config00.ejb;
import it.cnr.contab.config00.comp.Configurazione_cnrComponent;
import it.cnr.jada.UserContext;
import it.cnr.jada.action.AdminUserContext;
import it.cnr.jada.comp.ComponentException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.ejb.EJBException;
import javax.ejb.Remove;
import javax.ejb.Stateless;
import java.util.UUID;
@Stateless(name = "CNRCONFIG00_EJB_Configurazione_cnrComponentSession")
public class Configurazione_cnrComponentSessionBean extends it.cnr.jada.ejb.GenericComponentSessionBean implements Configurazione_cnrComponentSession {
private it.cnr.contab.config00.comp.Configurazione_cnrComponent componentObj;
private transient final static Logger logger = LoggerFactory.getLogger(Configurazione_cnrComponentSessionBean.class);
public static Configurazione_cnrComponentSessionBean newInstance() throws EJBException {
return new Configurazione_cnrComponentSessionBean();
}
public void ejbActivate() throws EJBException {
}
public void ejbPassivate() throws EJBException {
}
@Remove
public void ejbRemove() throws EJBException {
try {
shutdowHook();
} catch (ComponentException e) {
logger.error("ERROR while shutdow hook", e);
}
componentObj.release();
}
@PostConstruct
public void ejbCreate() {
componentObj = new it.cnr.contab.config00.comp.Configurazione_cnrComponent();
}
public void shutdowHook() throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException{
UserContext param0 = new AdminUserContext(UUID.randomUUID().toString());
pre_component_invocation(param0, componentObj);
try {
componentObj.shutdowHook(param0);
component_invocation_succes(param0, componentObj);
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public it.cnr.contab.config00.bulk.Configurazione_cnrBulk getConfigurazione(it.cnr.jada.UserContext param0, java.lang.Integer param1, java.lang.String param2, java.lang.String param3, java.lang.String param4) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
it.cnr.contab.config00.bulk.Configurazione_cnrBulk result = componentObj.getConfigurazione(param0, param1, param2, param3, param4);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.sql.Timestamp getDt01(it.cnr.jada.UserContext param0, java.lang.Integer param1, java.lang.String param2, java.lang.String param3, java.lang.String param4) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.sql.Timestamp result = componentObj.getDt01(param0, param1, param2, param3, param4);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.sql.Timestamp getDt01(it.cnr.jada.UserContext param0, java.lang.String param1) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.sql.Timestamp result = componentObj.getDt01(param0, param1);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.sql.Timestamp getDt02(it.cnr.jada.UserContext param0, java.lang.Integer param1, java.lang.String param2, java.lang.String param3, java.lang.String param4) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.sql.Timestamp result = componentObj.getDt02(param0, param1, param2, param3, param4);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.sql.Timestamp getDt02(it.cnr.jada.UserContext param0, java.lang.String param1) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.sql.Timestamp result = componentObj.getDt02(param0, param1);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.math.BigDecimal getIm01(it.cnr.jada.UserContext param0, java.lang.Integer param1, java.lang.String param2, java.lang.String param3, java.lang.String param4) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.math.BigDecimal result = componentObj.getIm01(param0, param1, param2, param3, param4);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.math.BigDecimal getIm01(it.cnr.jada.UserContext param0, java.lang.String param1) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.math.BigDecimal result = componentObj.getIm01(param0, param1);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.math.BigDecimal getIm02(it.cnr.jada.UserContext param0, java.lang.Integer param1, java.lang.String param2, java.lang.String param3, java.lang.String param4) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.math.BigDecimal result = componentObj.getIm02(param0, param1, param2, param3, param4);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.math.BigDecimal getIm02(it.cnr.jada.UserContext param0, java.lang.String param1) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.math.BigDecimal result = componentObj.getIm02(param0, param1);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.lang.String getVal01(it.cnr.jada.UserContext param0, java.lang.Integer param1, java.lang.String param2, java.lang.String param3, java.lang.String param4) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.String result = componentObj.getVal01(param0, param1, param2, param3, param4);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.lang.String getVal01(it.cnr.jada.UserContext param0, java.lang.String param1) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.String result = componentObj.getVal01(param0, param1);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.lang.String getVal02(it.cnr.jada.UserContext param0, java.lang.Integer param1, java.lang.String param2, java.lang.String param3, java.lang.String param4) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.String result = componentObj.getVal02(param0, param1, param2, param3, param4);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.lang.String getVal02(it.cnr.jada.UserContext param0, java.lang.String param1) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.String result = componentObj.getVal02(param0, param1);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.lang.String getVal03(it.cnr.jada.UserContext param0, java.lang.Integer param1, java.lang.String param2, java.lang.String param3, java.lang.String param4) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.String result = componentObj.getVal03(param0, param1, param2, param3, param4);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.lang.String getVal03(it.cnr.jada.UserContext param0, java.lang.String param1) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.String result = componentObj.getVal03(param0, param1);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.lang.String getVal04(it.cnr.jada.UserContext param0, java.lang.Integer param1, java.lang.String param2, java.lang.String param3, java.lang.String param4) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.String result = componentObj.getVal04(param0, param1, param2, param3, param4);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.lang.String getVal04(it.cnr.jada.UserContext param0, java.lang.String param1) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.String result = componentObj.getVal04(param0, param1);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public Boolean isAttivoOrdini(UserContext param0) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.Boolean result = componentObj.isAttivoOrdini(param0);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.lang.String getCdrPersonale(it.cnr.jada.UserContext param0, java.lang.Integer param1) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.String result = componentObj.getCdrPersonale(param0, param1);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.lang.String getUoRagioneria(it.cnr.jada.UserContext param0, java.lang.Integer param1) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.String result = componentObj.getUoRagioneria(param0, param1);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public java.lang.String getUoDistintaTuttaSac(it.cnr.jada.UserContext param0, java.lang.Integer param1) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.String result = componentObj.getUoDistintaTuttaSac(param0, param1);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
public Boolean isUOSpecialeDistintaTuttaSAC(it.cnr.jada.UserContext param0, java.lang.Integer param1, java.lang.String param2) throws it.cnr.jada.comp.ComponentException, javax.ejb.EJBException {
pre_component_invocation(param0, componentObj);
try {
java.lang.Boolean result = componentObj.isUOSpecialeDistintaTuttaSAC(param0,param1,param2);
component_invocation_succes(param0, componentObj);
return result;
} catch (it.cnr.jada.comp.NoRollbackException e) {
component_invocation_succes(param0, componentObj);
throw e;
} catch (it.cnr.jada.comp.ComponentException e) {
component_invocation_failure(param0, componentObj);
throw e;
} catch (RuntimeException e) {
throw uncaughtRuntimeException(param0, componentObj, e);
} catch (Error e) {
throw uncaughtError(param0, componentObj, e);
}
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy