本文整理汇总了Java中javax.ejb.Remove类的典型用法代码示例。如果您正苦于以下问题:Java Remove类的具体用法?Java Remove怎么用?Java Remove使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Remove类属于javax.ejb包,在下文中一共展示了Remove类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
示例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();
}
}
示例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);
}
示例4: cancelAccountCreation
import javax.ejb.Remove; //导入依赖的package包/类
/**
* Cancels the account creation info
*/
@Remove
public void cancelAccountCreation() {
loginInfo = null;
biographicalInfo = null;
billingInfo = null;
}
示例5: remove
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
public void remove() {
items = null;
}
示例6: deleteAccount
import javax.ejb.Remove; //导入依赖的package包/类
@RolesAllowed("Manager")
@Remove
public void deleteAccount() {
this.account = null;
this.name = null;
balance = 0;
}
示例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;
}
示例8: stop
import javax.ejb.Remove; //导入依赖的package包/类
@Override
@Remove
public void stop() {
try {
onTerminate();
} catch (Exception ex) {
LOG.warn("Error in onTerminate.", ex);
}
}
示例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;
}
示例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;
}
示例12: close
import javax.ejb.Remove; //导入依赖的package包/类
@Override
@Remove
/* termina la sessione */
public void close() {
/* effettivamente, il contenitore termina la sessione */
}
示例13: close
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
@Override
public void close() {
}
示例14: end
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
public void end(){
}
示例15: clean
import javax.ejb.Remove; //导入依赖的package包/类
@Remove
public void clean() {
logger.info("Remove Things");
numberOfAccess = 0l;
}