public abstract class SessionFactory
extends java.lang.Object
Constructor and Description |
---|
SessionFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 propertiesjava.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
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.