001: /*
002: * Hammurapi
003: * Automated Java code review system.
004: * Copyright (C) 2004 Hammurapi Group
005: *
006: * This program is free software; you can redistribute it and/or modify
007: * it under the terms of the GNU General Public License as published by
008: * the Free Software Foundation; either version 2 of the License, or
009: * (at your option) any later version.
010: *
011: * This program is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014: * GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
019: *
020: * URL: http://www.hammurapi.org
021: * e-Mail: support@hammurapi.biz
022: */
023: package org.hammurapi.inspectors.testcases.fixes;
024:
025: import java.rmi.RemoteException;
026:
027: import javax.ejb.CreateException;
028: import javax.ejb.EntityBean;
029: import javax.ejb.EntityContext;
030:
031: /**
032: * EjbPostCreateModifiersRule
033: * @author Pavel Vlasov
034: * @version $Revision: 1.1 $
035: */
036: public class EjbPostCreateModifiersRuleFixTestCase implements
037: EntityBean {
038:
039: private static org.apache.log4j.Logger logger = org.apache.log4j.Logger
040: .getRootLogger();
041:
042: private transient EntityContext objcContext;
043:
044: private Integer mProdSubmissionID = null;
045:
046: /** Java doc automaticaly generated by Hammurapi */
047: public void setEntityContext(final EntityContext objaContext) {
048: this .objcContext = objaContext;
049: }
050:
051: /** Java doc automaticaly generated by Hammurapi */
052: public void unsetEntityContext() {
053: objcContext = null;
054: }
055:
056: /** Java doc automaticaly generated by Hammurapi */
057: public void ejbActivate() {
058: }
059:
060: /** Java doc automaticaly generated by Hammurapi */
061: public void ejbPassivate() {
062: }
063:
064: /** Java doc automaticaly generated by Hammurapi */
065: public void ejbLoad() {
066: }
067:
068: /** Java doc automaticaly generated by Hammurapi */
069: public void ejbStore() {
070: }
071:
072: /** Java doc automaticaly generated by Hammurapi */
073: public void ejbRemove() {
074: }
075:
076: /** Java doc automaticaly generated by Hammurapi */
077: public Integer ejbCreate() throws CreateException, RemoteException {
078: this .mProdSubmissionID = new Integer(0);
079: return this .mProdSubmissionID;
080: }
081:
082: // --- FIX ---
083: /** Java doc automaticaly generated by Hammurapi */
084: public void ejbPostCreate() {
085: }
086:
087: /** Java doc automaticaly generated by Hammurapi */
088: public Integer ejbCreate(final int pProdSubmissionID)
089: throws CreateException, RemoteException {
090: return new Integer(pProdSubmissionID);
091: }
092:
093: // --- FIX ---
094: /** Java doc automaticaly generated by Hammurapi */
095: public void ejbPostCreate(final int pProdSubmissionID) {
096: }
097:
098: /** Java doc automaticaly generated by Hammurapi */
099: public Integer ejbCreate(final Integer pProdSubmissionID)
100: throws CreateException, RemoteException {
101:
102: this .mProdSubmissionID = pProdSubmissionID;
103: return this .mProdSubmissionID;
104: }
105:
106: // --- FIX ---
107: /** Java doc automaticaly generated by Hammurapi */
108: public void ejbPostCreate(final Integer pProdSubmissionID) {
109: }
110: }
|