|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.wf.SessionFactory
public abstract class SessionFactory
The Session Factory is used to create remote (RMI) or local sessions to @enterprise.
| Constructor Summary | |
|---|---|
SessionFactory()
|
|
| Method Summary | |
|---|---|
static Session |
createSession()
Create a session with the default properties. |
abstract Session |
createSession(Properties props)
Create the session, must be implemented by subclass. |
static Session |
createSession(String classname,
Properties props)
Create a session of the given classname and a property list |
static void |
setDefaultFactory(String classname,
Properties props)
Set the default properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionFactory()
| Method Detail |
|---|
public static Session createSession(String classname,
Properties props)
throws Exception
classname - the name of a subclass of SessionFactoryprops - the connection properties
Exception
public static Session createSession()
throws Exception
setDefaultFactory(String, Properties)
Exception
public static void setDefaultFactory(String classname,
Properties props)
classname - the name of a subclass of SessionFactoryprops - the connection properties
public abstract Session createSession(Properties props)
throws Exception
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||