public abstract class SessionFactory extends Object
Constructor and Description |
---|
SessionFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static Session createSession(String classname, Properties props) throws Exception
classname
- the name of a subclass of SessionFactoryprops
- the connection propertiesException
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 propertiespublic abstract Session createSession(Properties props) throws Exception
Exception
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.