@Override public synchronized Session getCurrentSession() { return super.getCurrentSession(); }
public IntactTransaction beginTransaction() { log.debug( "Starting transaction..." ); Transaction transaction = getCurrentSession().beginTransaction(); // wrap it currentTransaction = new IntactTransaction( intactSession, transaction ); return currentTransaction; }
public BaseDao getBaseDao() { // It is returning an ExperimentDaoImpl because HibernateBaseDaoImpl is an abstract class, and ExperimentDaoImpl // implement all HibernateBaseDaoImpl anyway. return new ExperimentDaoImpl( getCurrentSession(), intactSession ); }
/** * @since 1.5 */ public MineInteractionDao getMineInteractionDao() { return new MineInteractionDaoImpl( getCurrentSession(), intactSession ); }
public CvObjectDao<CvObject> getCvObjectDao() { return new CvObjectDaoImpl<CvObject>( CvObject.class, getCurrentSession(), intactSession ); }
public PublicationDao getPublicationDao() { return new PublicationDaoImpl( getCurrentSession(), intactSession ); }
public RangeDao getRangeDao() { return new RangeDaoImpl( getCurrentSession(), intactSession ); }
public XrefDao<Xref> getXrefDao() { return new XrefDaoImpl<Xref>( Xref.class, getCurrentSession(), intactSession ); }
public <T extends Alias> AliasDao<T> getAliasDao( Class<T> aliasType ) { return new AliasDaoImpl<T>( aliasType, getCurrentSession(), intactSession ); }
public <T extends CvObject> CvObjectDao<T> getCvObjectDao( Class<T> entityType ) { return new CvObjectDaoImpl<T>( entityType, getCurrentSession(), intactSession ); }
public DbInfoDao getDbInfoDao() { return new DbInfoDaoImpl( getCurrentSession(), intactSession ); }
public FeatureDao getFeatureDao() { return new FeatureDaoImpl( getCurrentSession(), intactSession ); }
public <T extends PolymerImpl> PolymerDao<T> getPolymerDao( Class<T> clazz ) { return new PolymerDaoImpl<T>( clazz, getCurrentSession(), intactSession ); }
public Connection connection() { return getCurrentSession().connection(); }
public AliasDao<Alias> getAliasDao() { return new AliasDaoImpl( Alias.class, getCurrentSession(), intactSession ); }
public <T extends InteractorImpl> InteractorDao<T> getInteractorDao( Class<T> entityType ) { return new InteractorDaoImpl<T>( entityType, getCurrentSession(), intactSession ); }
public PolymerDao<PolymerImpl> getPolymerDao() { return new PolymerDaoImpl<PolymerImpl>( PolymerImpl.class, getCurrentSession(), intactSession ); }
public <T extends AnnotatedObject> AnnotatedObjectDao<T> getAnnotatedObjectDao( Class<T> entityType ) { HibernateBaseDaoImpl.validateEntity( entityType ); return new AnnotatedObjectDaoImpl<T>( entityType, getCurrentSession(), intactSession ); }
public <T extends IntactObject> IntactObjectDao<T> getIntactObjectDao( Class<T> entityType ) { HibernateBaseDaoImpl.validateEntity( entityType ); return new IntactObjectDaoImpl<T>( entityType, getCurrentSession(), intactSession ); }
private static Session getSession() { return IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getCurrentSession(); } }