|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--oracle.jbo.server.SessionImpl
The default server-side implementation of the Session interface. A session context represents an application's session. A session object is instantiated for each root application module when the application module is activated (see ApplicationModuleImpl.activate()). The session object is garbage collected when the root application module is garbage collected.
This class may be extended by application developers who are interested in loading session specific context at session instantiation. For example, an application may extend the init method with logic to load application specific context like the local currency into the session context. Additionally, the getTransactionHandlerFactory may be overriden by an extending class to return a custom TransactionHandlerFactory.
Custom implementations of this interface may be identified to the framework with the SessionClass server property.
| Field Summary |
| Fields inherited from interface oracle.jbo.Session |
JBO_SESSION_COOKIE |
| Constructor Summary | |
protected |
SessionImpl()This constructor is called by the framework to initialize the client session |
| Method Summary | |
java.lang.String[] |
getAllApplicationModuleDefNames()Gets the names of the Application Module definitions contained in all packages. |
java.lang.String[] |
getAllEntityAssociationDefNames()Gets the names of the entity association definitions defined in all packages. |
java.lang.String[] |
getAllEntityDefNames()Gets the names of the Entity Object definitions available in all packages. |
java.lang.String[] |
getAllViewDefNames()Gets the names of the View Object definitions available in all packages. |
java.lang.String[] |
getAllViewLinkDefNames()Gets the names of the View Link definitions defined in all packages. |
java.lang.String[] |
getApplicationModuleDefNames(java.lang.String packName)Gets the names of the Application Module definitions contained in a package. |
java.lang.String[] |
getEntityAssociationDefNames(java.lang.String packName)Gets the names of the entity association definitions defined in a package. |
java.lang.String[] |
getEntityDefNames(java.lang.String packName)Gets the names of the Entity Object definitions available in a package. |
java.util.Hashtable |
getEnvironment()Returns the BC4J context for the session. |
java.util.Locale |
getLocale()Gets the current Locale used for localizing error messages. |
LocaleContext |
getLocaleContext()retrieves the locale context for the session |
java.lang.String[] |
getPackageNames()Gets names of the packages that make up this middle tier application. |
TransactionHandlerFactory |
getTransactionHandlerFactory()Get the session's transaction handler factory. |
java.util.Hashtable |
getUserData()Returns application context for the session. |
java.lang.String |
getUserPrincipalName() |
java.lang.String |
getVersion()Gets the middle tier's version information. |
java.lang.String[] |
getViewDefNames(java.lang.String packName)Gets the names of the View Object definitions available in a package. |
java.lang.String[] |
getViewLinkDefNames(java.lang.String packName)Gets the names of the View Link definitions defined in a package. |
static SessionImpl |
init(java.util.Hashtable ctxEnv)Internal: Applications should not use this method. |
void |
loadPackage(java.lang.String packageName)Loads a package that may be browsed for defined objects. |
void |
setLocale(java.util.Locale l)Sets a new Locale for localizing error messages. |
void |
setProperty(java.lang.String name, java.lang.String value) |
void |
setTransactionHandlerFactory(TransactionHandlerFactory fac)Set the session's transaction handler factory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected SessionImpl()
| Method Detail |
public static SessionImpl init(java.util.Hashtable ctxEnv)
public java.util.Hashtable getEnvironment()
SessionPropertyMetadata. Applications should store custom session context in the Session userdata.getEnvironment in interface SessionSession.getUserData()public java.util.Locale getLocale()
SessionLocale used for localizing error messages.getLocale in interface SessionLocale.
public void setProperty(java.lang.String name,
java.lang.String value)
public void setLocale(java.util.Locale l)
SessionLocale for localizing error messages.setLocale in interface Sessionl - the new Locale.public void loadPackage(java.lang.String packageName)
SessionloadPackage in interface SessionpackageName - a fully qualified package name.public java.lang.String getVersion()
SessiongetVersion in interface Sessionpublic java.lang.String[] getApplicationModuleDefNames(java.lang.String packName)
SessiongetApplicationModuleDefNames in interface SessionpackName - the name of the package.ApplicationModule definition names.public java.lang.String[] getAllApplicationModuleDefNames()
SessiongetAllApplicationModuleDefNames in interface SessionApplicationModule definition names.public java.lang.String[] getViewDefNames(java.lang.String packName)
SessiongetViewDefNames in interface SessionpackName - the name of the package.ViewDef names.public java.lang.String[] getAllViewDefNames()
SessiongetAllViewDefNames in interface SessionViewDef names.public java.lang.String[] getEntityDefNames(java.lang.String packName)
SessiongetEntityDefNames in interface SessionpackName - the name of the package.EntityDef names.public java.lang.String[] getAllEntityDefNames()
SessiongetAllEntityDefNames in interface SessionEntityDef names.public java.lang.String[] getEntityAssociationDefNames(java.lang.String packName)
SessiongetEntityAssociationDefNames in interface SessionpackName - the name of the package.EntityAssociationDef names.public java.lang.String[] getAllEntityAssociationDefNames()
SessiongetAllEntityAssociationDefNames in interface SessionEntityAssociationDef names.public java.lang.String[] getViewLinkDefNames(java.lang.String packName)
SessiongetViewLinkDefNames in interface SessionpackName - the name of the package.ViewLinkDef names.public java.lang.String[] getAllViewLinkDefNames()
SessiongetAllViewLinkDefNames in interface SessionViewLinkDef names.public java.lang.String[] getPackageNames()
SessiongetPackageNames in interface Sessionpublic TransactionHandlerFactory getTransactionHandlerFactory()
TransactionHandler, TransactionHandlerFactorypublic void setTransactionHandlerFactory(TransactionHandlerFactory fac)
TransactionHandler, TransactionHandlerFactorypublic LocaleContext getLocaleContext()
SessiongetLocaleContext in interface Sessionpublic java.util.Hashtable getUserData()
SessiongetUserData in interface Sessionpublic java.lang.String getUserPrincipalName()
|
Oracle9i Business Components for Java API Reference Oracle9i Jdeveloper (9.0.4) B10391-01 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2003, Oracle. All rights reserved.