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

📄 cardfeesmanagerbean.java

📁 THIS IS A FINANCIAL BANK APPLICATION
💻 JAVA
字号:
package Pcrd.Subscription.Beans;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.PersistenceContext;

import Pcrd.Subscription.Entities.CardFees;
import Pcrd.Subscription.Entities.CardFeesPK;
import Pcrd.Subscription.Sessions.CardFeesManager;
@Stateless
public class CardFeesManagerBean implements CardFeesManager{
	@PersistenceContext
	EntityManager em;
	EntityManagerFactory emf;
	public CardFees genererTarif(String codeBank,String codeProduit) {
		// TODO Auto-generated method stub
		return (CardFees) em.createQuery("SELECT cf FROM CardFees cf,CardProduct cp WHERE ( cf.pk.bankCode='"+codeBank+"' AND cp.pk.productCode='"+codeProduit+"' AND cp.cardFeesIndPrim=cf.pk.cardFeesCode )").getSingleResult();
	}
	public CardFees generationTarif(String codeBank,String codeProduit){
		 CardFeesPK pk=new CardFeesPK();
         pk.setBankCode(codeBank);
         pk.setCardFeesCode(codeProduit);
         CardFees cf=new CardFees();
       cf= em.find(CardFees.class,pk);
       return(cf);
         
	}
}

⌨️ 快捷键说明

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