Package com.groiss.wf

Class SessionFactory

java.lang.Object
com.groiss.wf.SessionFactory

@Deprecated(since="11.0", forRemoval=true) public abstract class SessionFactory extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
The Session Factory is used to create remote (RMI) or local sessions to @enterprise.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Session
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a session with the default properties.
    static Session
    createSession(String classname, Properties props)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a session of the given classname and a property list
    abstract Session
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create the session, must be implemented by subclass.
    static void
    setDefaultFactory(String classname, Properties props)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set the default properties.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SessionFactory

      public SessionFactory()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • createSession

      public static Session createSession(String classname, Properties props) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a session of the given classname and a property list
      Parameters:
      classname - the name of a subclass of SessionFactory
      props - the connection properties
      Returns:
      a session object
      Throws:
      Exception
    • createSession

      public static Session createSession() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create a session with the default properties. The default properties are: factory class: com.groiss.avw.LocalSessionFactory, properties: null. They can be set with the method setDefaultFactory(String, Properties)
      Throws:
      Exception
    • setDefaultFactory

      public static void setDefaultFactory(String classname, Properties props)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the default properties.
      Parameters:
      classname - the name of a subclass of SessionFactory
      props - the connection properties
    • createSession

      public abstract Session createSession(Properties props) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create the session, must be implemented by subclass.
      Throws:
      Exception