Methods Summary |
---|
public void | close()
|
public void | evict(java.lang.Class persistentClass, java.io.Serializable id)
getImpl().evict(persistentClass, id);
|
public void | evict(java.lang.Class persistentClass)
getImpl().evict(persistentClass);
|
public void | evictCollection(java.lang.String roleName, java.io.Serializable id)
getImpl().evictCollection(roleName, id);
|
public void | evictCollection(java.lang.String roleName)
getImpl().evictCollection(roleName);
|
public void | evictEntity(java.lang.String entityName, java.io.Serializable id)
getImpl().evictEntity(entityName, id);
|
public void | evictEntity(java.lang.String entityName)
getImpl().evictEntity(entityName);
|
public void | evictQueries()
getImpl().evictQueries();
|
public void | evictQueries(java.lang.String cacheRegion)
getImpl().evictQueries(cacheRegion);
|
public java.util.Map | getAllClassMetadata()
return getImpl().getAllClassMetadata();
|
public java.util.Map | getAllCollectionMetadata()
return getImpl().getAllCollectionMetadata();
|
public org.hibernate.metadata.ClassMetadata | getClassMetadata(java.lang.Class persistentClass)
return getImpl().getClassMetadata(persistentClass);
|
public org.hibernate.metadata.ClassMetadata | getClassMetadata(java.lang.String entityName)
return getImpl().getClassMetadata(entityName);
|
public org.hibernate.metadata.CollectionMetadata | getCollectionMetadata(java.lang.String roleName)
return getImpl().getCollectionMetadata(roleName);
|
public org.hibernate.classic.Session | getCurrentSession()
return getImpl().getCurrentSession();
|
public java.util.Set | getDefinedFilterNames()
return getImpl().getDefinedFilterNames();
|
public org.hibernate.engine.FilterDefinition | getFilterDefinition(java.lang.String filterName)
return getImpl().getFilterDefinition( filterName );
|
private synchronized org.hibernate.SessionFactory | getImpl()
if (impl==null) impl = service.buildSessionFactory();
return impl;
|
public javax.naming.Reference | getReference()
return new Reference(
SessionFactoryStub.class.getName(),
new StringRefAddr("uuid", uuid),
SessionFactoryObjectFactory.class.getName(),
null
);
|
public org.hibernate.stat.Statistics | getStatistics()
return getImpl().getStatistics();
|
public boolean | isClosed()
return false;
|
public org.hibernate.classic.Session | openSession(java.sql.Connection connection, org.hibernate.Interceptor interceptor)
return getImpl().openSession(connection, interceptor);
|
public org.hibernate.classic.Session | openSession(org.hibernate.Interceptor interceptor)
return getImpl().openSession(interceptor);
|
public org.hibernate.classic.Session | openSession()
return getImpl().openSession();
|
public org.hibernate.classic.Session | openSession(java.sql.Connection conn)
return getImpl().openSession(conn);
|
public org.hibernate.StatelessSession | openStatelessSession()
return getImpl().openStatelessSession();
|
public org.hibernate.StatelessSession | openStatelessSession(java.sql.Connection conn)
return getImpl().openStatelessSession(conn);
|
private java.lang.Object | readResolve()
// look for the instance by uuid
Object result = SessionFactoryObjectFactory.getInstance(uuid);
if (result==null) {
// in case we were deserialized in a different JVM, look for an instance with the same name
// (alternatively we could do an actual JNDI lookup here....)
result = SessionFactoryObjectFactory.getNamedInstance(name);
if (result==null) {
throw new InvalidObjectException("Could not find a stub SessionFactory named: " + name);
}
else {
log.debug("resolved stub SessionFactory by name");
}
}
else {
log.debug("resolved stub SessionFactory by uid");
}
return result;
|