Examples of JDBCContext


Examples of org.hibernate.jdbc.JDBCContext

    this.actionQueue = new ActionQueue( this );
    this.persistenceContext = new StatefulPersistenceContext( this );
    this.flushBeforeCompletionEnabled = flushBeforeCompletionEnabled;
    this.autoCloseSessionEnabled = autoCloseSessionEnabled;
    this.connectionReleaseMode = connectionReleaseMode;
    this.jdbcContext = new JDBCContext( this, connection, interceptor );

    loadQueryInfluencers = new LoadQueryInfluencers( factory );

    if ( factory.getStatistics().isStatisticsEnabled() ) {
      factory.getStatisticsImplementor().openSession();
View Full Code Here

Examples of org.hibernate.jdbc.JDBCContext

    this.actionQueue = new ActionQueue( this );
    this.persistenceContext = new StatefulPersistenceContext( this );
    this.flushBeforeCompletionEnabled = flushBeforeCompletionEnabled;
    this.autoCloseSessionEnabled = autoCloseSessionEnabled;
    this.connectionReleaseMode = connectionReleaseMode;
    this.jdbcContext = new JDBCContext( this, connection, interceptor );

    loadQueryInfluencers = new LoadQueryInfluencers( factory );

    if ( factory.getStatistics().isStatisticsEnabled() ) {
      factory.getStatisticsImplementor().openSession();
View Full Code Here

Examples of org.hibernate.jdbc.JDBCContext

    this.actionQueue = new ActionQueue( this );
    this.persistenceContext = new StatefulPersistenceContext( this );
    this.flushBeforeCompletionEnabled = flushBeforeCompletionEnabled;
    this.autoCloseSessionEnabled = autoCloseSessionEnabled;
    this.connectionReleaseMode = connectionReleaseMode;
    this.jdbcContext = new JDBCContext( this, connection, interceptor );

    if ( factory.getStatistics().isStatisticsEnabled() ) {
      factory.getStatisticsImplementor().openSession();
    }
View Full Code Here

Examples of org.hibernate.jdbc.JDBCContext

  private JDBCContext jdbcContext;
  private PersistenceContext temporaryPersistenceContext = new StatefulPersistenceContext( this );

  StatelessSessionImpl(Connection connection, SessionFactoryImpl factory) {
    super( factory );
    this.jdbcContext = new JDBCContext( this, connection, EmptyInterceptor.INSTANCE );
  }
View Full Code Here

Examples of org.hibernate.jdbc.JDBCContext

  private JDBCContext jdbcContext;
  private PersistenceContext temporaryPersistenceContext = new StatefulPersistenceContext( this );

  StatelessSessionImpl(Connection connection, SessionFactoryImpl factory) {
    super( factory );
    this.jdbcContext = new JDBCContext( this, connection, EmptyInterceptor.INSTANCE );
  }
View Full Code Here

Examples of org.hibernate.jdbc.JDBCContext

    this.actionQueue = new ActionQueue( this );
    this.persistenceContext = new StatefulPersistenceContext( this );
    this.flushBeforeCompletionEnabled = flushBeforeCompletionEnabled;
    this.autoCloseSessionEnabled = autoCloseSessionEnabled;
    this.connectionReleaseMode = connectionReleaseMode;
    this.jdbcContext = new JDBCContext( this, connection, interceptor );

    loadQueryInfluencers = new LoadQueryInfluencers( factory );

    if ( factory.getStatistics().isStatisticsEnabled() ) {
      factory.getStatisticsImplementor().openSession();
View Full Code Here

Examples of org.hibernate.jdbc.JDBCContext

  private JDBCContext jdbcContext;
  private PersistenceContext temporaryPersistenceContext = new StatefulPersistenceContext( this );

  StatelessSessionImpl(Connection connection, SessionFactoryImpl factory) {
    super( factory );
    this.jdbcContext = new JDBCContext( this, connection, EmptyInterceptor.INSTANCE );
  }
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.JDBCContext

    public FieldIterator getLockedIterator(CmpEntityBeanContext ctx) {
        return getEntityState(ctx).getLockedIterator(ctx);
    }

    public void initPersistenceContext(CmpEntityBeanContext ctx) {
        ctx.setPersistenceContext(new JDBCContext(jdbcContextSize, new EntityState()));
    }
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.JDBCContext

    public boolean isScheduledForBatchCascadeDelete(CmpEntityBeanContext ctx) {
        return getEntityState(ctx).isScheduledForBatchCascadeDelete();
    }

    private static EntityState getEntityState(CmpEntityBeanContext ctx) {
        JDBCContext jdbcCtx = (JDBCContext) ctx.getPersistenceContext();
        EntityState entityState = jdbcCtx.getEntityState();
        if (entityState == null)
            throw MESSAGES.entityStateIsNull();
        return entityState;
    }
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.JDBCContext

        if (!isReadTimedOut(ctx)) {
            return;
        }

        // clear the field state
        JDBCContext jdbcCtx = (JDBCContext) ctx.getPersistenceContext();
        // invalidate current field state
        /*
     FieldState currentFieldState = (FieldState) jdbcCtx.getFieldState(jdbcContextIndex);
     if(currentFieldState != null)
        currentFieldState.invalidate();
        */
        jdbcCtx.setFieldState(jdbcContextIndex, null);

        if (foreignKeyFields == null) {
            return;
        }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.