public class PulsarExtension
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static SessionFactory |
sessionFactory |
| Constructor and Description |
|---|
PulsarExtension()
The default constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSession(Session session)
Close the given session
|
static SessionInterface |
createSession(ConnectionInfo ci)
Create a session with the given connection information
|
static UserAggregate |
findAggregate(java.util.HashMap<java.lang.String,UserAggregate> aggregates,
java.lang.String name)
Find an aggregates by name
|
static FunctionAlias |
findFunction(java.util.concurrent.ConcurrentHashMap<java.lang.String,FunctionAlias> functions,
java.lang.String functionAlias)
Find a functions by alias
|
static java.lang.Class<?> |
getEngineImplementation()
Get the engine implementation
|
static void |
shutdownSessionFactory()
Shutdown the session factory
|
public static SessionFactory sessionFactory
public static java.lang.Class<?> getEngineImplementation()
public static SessionInterface createSession(ConnectionInfo ci) throws java.lang.Exception
ci - The connection informationjava.lang.Exceptionpublic static void closeSession(Session session) throws java.lang.Exception
session - The session to closejava.lang.Exceptionpublic static void shutdownSessionFactory()
public static FunctionAlias findFunction(java.util.concurrent.ConcurrentHashMap<java.lang.String,FunctionAlias> functions, java.lang.String functionAlias)
functions - The functionsfunctionAlias - The function alias to findpublic static UserAggregate findAggregate(java.util.HashMap<java.lang.String,UserAggregate> aggregates, java.lang.String name)
aggregates - The Aggregatesname - The name to find