|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(java.util.Properties props)
Create the session, must be implemented by subclass. |
static Session |
createSession(java.lang.String classname,
java.util.Properties props)
Create a session of the given classname and a property list |
static void |
setDefaultFactory(java.lang.String classname,
java.util.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(java.lang.String classname, java.util.Properties props) throws java.lang.Exception
classname
- the name of a subclass of SessionFactoryprops
- the connection properties
java.lang.Exception
public static Session createSession() throws java.lang.Exception
setDefaultFactory(String, Properties)
java.lang.Exception
public static void setDefaultFactory(java.lang.String classname, java.util.Properties props)
classname
- the name of a subclass of SessionFactoryprops
- the connection propertiespublic abstract Session createSession(java.util.Properties props) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |