Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.ejb.cmp.was
Class SessionLookupHelper

java.lang.Object
  extended byoracle.toplink.ejb.cmp.was.SessionLookupHelper


public class SessionLookupHelper
extends java.lang.Object

PUBLIC:

Purpose: Help the the entity bean to lookup its session Description: Implement a singleton pattern which maps bean's class to its session Responsibilities:


Method Summary
static SessionLookupHelper getHelper()
PUBLIC: Return the singleton session lookup helper.
Session getSession(javax.ejb.EntityBean bean)
PUBLIC: Return the session for the given entity bean.

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

getHelper

public static SessionLookupHelper getHelper()
PUBLIC: Return the singleton session lookup helper. This allow global lookup of session for entity bean.

getSession

public Session getSession(javax.ejb.EntityBean bean)
PUBLIC: Return the session for the given entity bean.

Copyright © 1998, 2005 Oracle Corporation. All Rights Reserved.