All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.objectweb.jonas_ejb.deployment.api.MethodJdbcCmp1Desc Maven / Gradle / Ivy

The newest version!
/**
 * JOnAS: Java(TM) Open Application Server
 * Copyright (C) 1999-2004 Bull S.A.
 * Contact: [email protected]
 *
 * 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 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.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 *
 * --------------------------------------------------------------------------
 * $Id: MethodJdbcCmp1Desc.java 10290 2007-04-25 16:11:47Z durieuxp $
 * --------------------------------------------------------------------------
 */


package org.objectweb.jonas_ejb.deployment.api;

import java.lang.reflect.Method;
import org.objectweb.jonas_lib.deployment.api.DeploymentDescException;

/**
 * Class to hold meta-information related to CMP v1 attributes of a method when a jdbc
 * data store is used.
 * @author Christophe Ney [[email protected]] : Initial developer
 * @author Helene Joanin
 */
public class MethodJdbcCmp1Desc extends MethodDesc  {

    protected String whereClause = null;
    protected int whereClauseStatus = APPLY_TO_BEAN;

    /**
     * constructor to be used by parent node
     */
    public MethodJdbcCmp1Desc(BeanDesc beanDesc,Method meth, Class classDef, int index) {
        super(beanDesc,meth, classDef,index);
    }

    /**
     * Overwrite JdbcWhereClause
     * @param jdbcWhereClause new value for jdbcWhereClause
     * @param status applicability of given transAttribute parameter
     */
    void overwriteJdbcWhereClause(String jdbcWhereClause,int status)
            throws DeploymentDescException {
        if (status© 2015 - 2025 Weber Informatics LLC | Privacy Policy