⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 paymentbean.java

📁 Java写的ERP系统
💻 JAVA
字号:
/******************************************************************************
 * The contents of this file are subject to the   Compiere License  Version 1.1
 * ("License"); You may not use this file except in compliance with the License
 * You may obtain a copy of the License at http://www.compiere.org/license.html
 * Software distributed under the License is distributed on an  "AS IS"  basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 * The Original Code is                  Compiere  ERP & CRM  Business Solution
 * The Initial Developer of the Original Code is Jorg Janke  and ComPiere, Inc.
 * Portions created by Jorg Janke are Copyright (C) 1999-2002 Jorg Janke, parts
 * created by ComPiere are Copyright (C) ComPiere, Inc.;   All Rights Reserved.
 * Contributor(s): ______________________________________.
 *****************************************************************************/
package org.compiere.session;

import java.util.*;
import java.sql.*;

import java.rmi.RemoteException;
import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;

import org.compiere.interfaces.*;
import org.apache.log4j.Logger;

import org.compiere.Compiere;
import org.compiere.db.*;
import org.compiere.model.*;
import org.compiere.util.*;


/**
 * 	Compiere Payment Bean
 *
 *  @ejb:bean name="compiere/Payment"
 *           display-name="Compiere Payment Session Bean"
 *           type="Stateful"
 *           transaction-type="Container"
 *           jndi-name="ejb/compiere/Payment"
 *
 *  @ejb:ejb-ref ejb-name="compiere/Payment"
 *              ref-name="compiere/Payment"
 *
 * 	@author 	Jorg Janke
 * 	@version 	$Id: PaymentBean.java,v 1.1 2002/12/31 20:13:03 jjanke Exp $
 */
public class PaymentBean implements SessionBean
{
	/**	Context					*/
	private SessionContext 		m_Context;
	/**	Logging					*/
	private transient Logger	log = Logger.getLogger(getClass());

	/**
	 *  Process class on Server
	 *  @ejb:interface-method view-type="remote"
	 *
	 *  @return 42
	 *  @throws RemoteException
	 */
	public String process ()
		throws RemoteException
	{
		return "42";
	}	//	process

	/*************************************************************************/

	/**
	 *  Create the Session Bean
	 *  @throws CreateException
	 *  @ejb:create-method view-type="remote"
	 */
	public void ejbCreate() throws CreateException
	{
		log.debug("ejbCreate");
	}	//	ejbCreate

	/**
	 * 	Describes the instance and its content for debugging purpose
	 * 	@return Debugging information about the instance and its content
	 */
	public String toString()
	{
		return "PaymentBean[" + "]";
	}	//	toString


	// -------------------------------------------------------------------------
	// Framework Callbacks
	// -------------------------------------------------------------------------

	public void setSessionContext (SessionContext aContext) throws EJBException
	{
		m_Context = aContext;
	}

	public void ejbActivate() throws EJBException
	{
		if (log == null)
			log = Logger.getLogger(getClass());
		log.debug("ejbActivate");
	}

	public void ejbPassivate() throws EJBException
	{
		log.debug("ejbPassivate");
	}

	public void ejbRemove() throws EJBException
	{
		log.debug("ejbRemove");
	}

}	//	ServerBean

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -