public Properties getProperties() { return buildProperties(); } }
private synchronized SessionFactory getImpl() { if (impl==null) impl = service.buildSessionFactory(); return impl; }
@Override public String getUserTransactionName() { return getProperty(Environment.USER_TRANSACTION); }
@Override public void setTransactionStrategy(String txnStrategy) { setProperty(Environment.TRANSACTION_STRATEGY, txnStrategy); }
SessionFactoryStub(HibernateService service) { this.service = service; this.name = service.getJndiName(); try { uuid = (String) UUID_GENERATOR.generate(null, null); } catch (Exception e) { throw new AssertionFailure("Could not generate UUID"); } SessionFactoryObjectFactory.addInstance( uuid, name, this, service.getProperties() ); }
public void start() throws HibernateException { boundName = getJndiName(); try { buildSessionFactory(); } catch (HibernateException he) { log.info( "Could not build SessionFactory using the MBean classpath - will try again using client classpath: " + he.getMessage() ); log.debug("Error was", he); new SessionFactoryStub(this); } }
SessionFactory buildSessionFactory() throws HibernateException { log.info( "starting service at JNDI name: " + boundName ); log.info( "service properties: " + properties ); return buildConfiguration().buildSessionFactory(); }
@Override public void setUserTransactionName(String utName) { setProperty(Environment.USER_TRANSACTION, utName); }
SessionFactoryStub(HibernateService service) { this.service = service; this.name = service.getJndiName(); try { uuid = (String) UUID_GENERATOR.generate(null, null); } catch (Exception e) { throw new AssertionFailure("Could not generate UUID"); } SessionFactoryObjectFactory.addInstance( uuid, name, this, service.getProperties() ); }
public void start() throws HibernateException { boundName = getJndiName(); try { buildSessionFactory(); } catch (HibernateException he) { log.info( "Could not build SessionFactory using the MBean classpath - will try again using client classpath: " + he.getMessage() ); log.debug("Error was", he); new SessionFactoryStub(this); } }
SessionFactory buildSessionFactory() throws HibernateException { log.info( "starting service at JNDI name: " + boundName ); log.info( "service properties: " + properties ); return buildConfiguration().buildSessionFactory(); }
@Override public void setDatasource(String datasource) { setProperty(Environment.DATASOURCE, datasource); }
@Override public String getTransactionStrategy() { return getProperty(Environment.TRANSACTION_STRATEGY); }
SessionFactoryStub(HibernateService service) { this.service = service; this.name = service.getJndiName(); try { uuid = (String) UUID_GENERATOR.generate(null, null); } catch (Exception e) { throw new AssertionFailure("Could not generate UUID"); } SessionFactoryRegistry.INSTANCE.addSessionFactory( uuid, name, ConfigurationHelper.getBoolean( AvailableSettings.SESSION_FACTORY_NAME_IS_JNDI, service.getProperties(), true ), this, new JndiServiceImpl( service.getProperties() ) ); }
@Override public void start() throws HibernateException { boundName = getJndiName(); try { buildSessionFactory(); } catch (HibernateException he) { LOG.unableToBuildSessionFactoryUsingMBeanClasspath(he.getMessage()); LOG.debug("Error was", he); new SessionFactoryStub(this); } }
@Override public void createSchema() { new SchemaExport( buildConfiguration() ).create(false, true); }
public Properties getProperties() { return buildProperties(); } }
private synchronized SessionFactory getImpl() { if (impl==null) impl = service.buildSessionFactory(); return impl; }
@Override public void setPassword(String password) { setProperty(Environment.PASS, password); }
@Override public String getUserTransactionName() { return getProperty(Environment.USER_TRANSACTION); }