本文整理汇总了Java中javax.ejb.Remove类的典型用法代码示例。如果您正苦于以下问题:Java Remove类的具体用法?Java Remove怎么用?Java Remove使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Remove类属于javax.ejb包,在下文中一共展示了Remove类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: placeOrder
import javax.ejb.Remove; //导入依赖的package包/类
/**
* Places an order
*/
@Asynchronous
@Remove
@Override
public void placeOrder() {
Order order = new Order();
order.setBidder(bidder);
order.setItem(item);
order.setShipping(shipping);
order.setBilling(billing);
try {
bill(order);
notifyBillingSuccess(order);
order.setStatus(OrderStatus.COMPLETE);
} catch (BillingException be) {
notifyBillingFailure(be, order);
order.setStatus(OrderStatus.BILLING_FAILED);
} finally {
saveOrder(order);
}
}
开发者ID:biblelamp,项目名称:JavaEE,代码行数:24,代码来源:OrderProcessorBean.java
示例2: createAccount
import javax.ejb.Remove; //导入依赖的package包/类
/**
* Creates the account
*/
@Remove
public void createAccount() {
try {
Statement statement = connection.createStatement();
String sql = "INSERT INTO BIDDERS(" + "username, " + "first_name, "
+ "credit_card_type" + ") VALUES (" + "'"
+ loginInfo.getUsername() + "', " +
"'" + biographicalInfo.getFirstName() + "', " +
"'" + billingInfo.getCreditCardType() + "'" +
")";
statement.execute(sql);
statement.close();
} catch (SQLException sqle) {
sqle.printStackTrace();
}
}
开发者ID:rcuprak,项目名称:actionbazaar,代码行数:20,代码来源:BidderAccountCreatorBean.java
示例3: save
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
public void save(@NotNull Long newsId, @NotNull String author, @NotNull String draft){
News news = em.find(News.class, newsId);
if(news == null){
return;
}
Comment comment = new Comment(null, draft, author);
em.persist(comment);
news.getComments().add(comment);
em.merge(news);
}
开发者ID:arcuri82,项目名称:pg6100,代码行数:16,代码来源:CommentEJB.java
示例4: cancelAccountCreation
import javax.ejb.Remove; //导入依赖的package包/类
/**
* Cancels the account creation info
*/
@Remove
public void cancelAccountCreation() {
loginInfo = null;
biographicalInfo = null;
billingInfo = null;
}
开发者ID:rcuprak,项目名称:actionbazaar,代码行数:10,代码来源:BidderAccountCreatorBean.java
示例5: remove
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
public void remove() {
items = null;
}
开发者ID:ftomassetti,项目名称:JavaIncrementalParser,代码行数:5,代码来源:CartBean.java
示例6: deleteAccount
import javax.ejb.Remove; //导入依赖的package包/类
@RolesAllowed("Manager")
@Remove
public void deleteAccount() {
this.account = null;
this.name = null;
balance = 0;
}
开发者ID:wesleyegberto,项目名称:study-ocbcd,代码行数:8,代码来源:AccountBean.java
示例7: remove
import javax.ejb.Remove; //导入依赖的package包/类
@PreDestroy @Remove @PrePassivate
public void remove() {
this.account = null;
this.em = null;
this.queue = null;
this.queueFactory = null;
this.ctx = null;
}
开发者ID:wesleyegberto,项目名称:study-ocbcd,代码行数:9,代码来源:AccountFacadeBean.java
示例8: stop
import javax.ejb.Remove; //导入依赖的package包/类
@Override
@Remove
public void stop() {
try {
onTerminate();
} catch (Exception ex) {
LOG.warn("Error in onTerminate.", ex);
}
}
开发者ID:gcvt,项目名称:siebog,代码行数:10,代码来源:XjafAgent.java
示例9: bezahleTickets
import javax.ejb.Remove; //导入依赖的package包/类
/**
* @inheritDoc
*/
@Remove
public Collection<Ticketbestellung> bezahleTickets(String email) throws KapazitaetErschoepftException {
// suche nach einen Kunden anhand der �bergebenen email Adresse
Kunde kunde = kundenverwaltung.getKundeByEmail(email);
if (kunde == null) {
// kunde gibt es nicht --> persistiere neuen Kunden
kunde = new Kunde();
kunde.setEmail(email);
em.persist(kunde);
} else {
// persistiere vorhandenen Kunden
em.merge(kunde);
}
if ((ticketBestellungen != null) && (!ticketBestellungen.isEmpty())) {
for (Ticketbestellung bestellung : ticketBestellungen) {
Konzert konzert = bestellung.getKonzert();
konzert = em.find(Konzert.class, konzert.getId());
konzert.bestelleTickets(bestellung.getAnzahl());
em.merge(konzert);
bestellung.setKonzert(konzert);
bestellung.setKunde(kunde);
em.persist(bestellung);
}
}
benachrichtigungsService.installiereKonzerterinnerungen(email, ticketBestellungen);
return ticketBestellungen;
}
开发者ID:xladde,项目名称:hsw,代码行数:33,代码来源:BestellvorgangBean.java
示例10: remove
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
public void remove() {
logger.info("the bean is removing");
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:5,代码来源:StateEngineLocalBean.java
示例11: remove
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
public void remove() {
registered = false;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:5,代码来源:User.java
示例12: close
import javax.ejb.Remove; //导入依赖的package包/类
@Override
@Remove
/* termina la sessione */
public void close() {
/* effettivamente, il contenitore termina la sessione */
}
开发者ID:aswroma3,项目名称:asw,代码行数:7,代码来源:SessionCounterImpl.java
示例13: close
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
@Override
public void close() {
}
开发者ID:nmajorov,项目名称:keycloak_training,代码行数:5,代码来源:EjbExampleUserStorageProvider.java
示例14: end
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
public void end(){
}
开发者ID:raidentrance,项目名称:ejb3.1-certification,代码行数:4,代码来源:StudentBean.java
示例15: clean
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
public void clean() {
logger.info("Remove Things");
numberOfAccess = 0l;
}
开发者ID:hostettler,项目名称:JEE7-Demo,代码行数:6,代码来源:StudentStatisticsServiceImpl.java
示例16: removeBean
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
@Override
public void removeBean() {
// TODO Auto-generated method stub
}
开发者ID:egidisa,项目名称:LiveBet,代码行数:7,代码来源:BookmakerBean.java
示例17: removeBean
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
@Override
public void removeBean() {
}
开发者ID:egidisa,项目名称:LiveBet,代码行数:5,代码来源:BettorBean.java
示例18: sayText
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
public void sayText(){
statelessTalker.saySomething(someText);
}
开发者ID:chuidiang,项目名称:chuidiang-ejemplos,代码行数:5,代码来源:StatefullBean.java
示例19: destroy
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
public void destroy() { }
开发者ID:windup,项目名称:windup-rulesets,代码行数:3,代码来源:ShipAction.java
示例20: destroy
import javax.ejb.Remove; //导入依赖的package包/类
@Remove @Destroy
public void destroy() {}
开发者ID:windup,项目名称:windup-rulesets,代码行数:3,代码来源:MessageManagerBean.java
注:本文中的javax.ejb.Remove类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论