KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > ejb > containers > TimerMigrationBean


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.ejb.containers;
25
26 import java.util.Set JavaDoc;
27
28 import javax.ejb.EntityBean JavaDoc;
29 import javax.ejb.EntityContext JavaDoc;
30 import javax.ejb.FinderException JavaDoc;
31
32 import java.util.logging.Logger JavaDoc;
33 import java.util.logging.Level JavaDoc;
34
35 import com.sun.logging.LogDomains;
36
37 /**
38  *
39  */

40 public abstract class TimerMigrationBean implements EntityBean JavaDoc {
41
42     private static Logger JavaDoc logger = LogDomains.getLogger(LogDomains.EJB_LOGGER);
43
44     //
45
// CMP fields
46
//
47

48     // primary key
49
public abstract String JavaDoc getTimerId();
50     public abstract void setTimerId(String JavaDoc timerId);
51
52     public abstract String JavaDoc getOwnerId();
53     public abstract void setOwnerId(String JavaDoc ownerId);
54
55     //
56
// ejbSelect methods for timer ids
57
//
58

59     public abstract Set JavaDoc ejbSelectAllTimersByOwner(String JavaDoc ownerId)
60         throws FinderException JavaDoc;
61    
62
63     // This view of the timer info does not support creation.
64

65     public void setEntityContext(EntityContext JavaDoc context) {}
66     
67     public void unsetEntityContext() {}
68     
69     public void ejbRemove() {}
70     
71     public void ejbLoad() {}
72
73     public void ejbStore() {}
74     
75     public void ejbPassivate() {}
76     
77     public void ejbActivate() {}
78
79     public Set JavaDoc ejbHomeSelectAllTimersOwnedBy(String JavaDoc ownerId)
80         throws FinderException JavaDoc {
81         return ejbSelectAllTimersByOwner(ownerId);
82     }
83
84 }
85
Popular Tags