Package org.jboss.ejb.plugins.cmp.jdbc

Examples of org.jboss.ejb.plugins.cmp.jdbc.JDBCContext


/* 1646 */     return this.foreignKeyFields == null ? this.relationManager.isDirty() : false;
/*      */   }
/*      */
/*      */   public boolean invalidateCache(EntityEnterpriseContext ctx)
/*      */   {
/* 1651 */     JDBCContext jdbcCtx = (JDBCContext)ctx.getPersistenceContext();
/* 1652 */     FieldState fieldState = (FieldState)jdbcCtx.getFieldState(this.jdbcContextIndex);
/* 1653 */     return fieldState == null ? false : fieldState.isChanged();
/*      */   }
View Full Code Here


/*      */     }
/*      */   }
/*      */
/*      */   private FieldState getFieldState(EntityEnterpriseContext ctx)
/*      */   {
/* 1716 */     JDBCContext jdbcCtx = (JDBCContext)ctx.getPersistenceContext();
/* 1717 */     FieldState fieldState = (FieldState)jdbcCtx.getFieldState(this.jdbcContextIndex);
/* 1718 */     if (fieldState == null)
/*      */     {
/* 1720 */       fieldState = new FieldState(ctx);
/* 1721 */       jdbcCtx.setFieldState(this.jdbcContextIndex, fieldState);
/*      */     }
/* 1723 */     return fieldState;
/*      */   }
View Full Code Here

/*     */
/*     */   public void resetPersistenceContext(EntityEnterpriseContext ctx)
/*     */   {
/* 271 */     if (isReadTimedOut(ctx))
/*     */     {
/* 273 */       JDBCContext jdbcCtx = (JDBCContext)ctx.getPersistenceContext();
/* 274 */       FieldState fieldState = (FieldState)jdbcCtx.getFieldState(this.jdbcContextIndex);
/* 275 */       if (fieldState != null)
/* 276 */         fieldState.reset();
/*     */     }
/*     */   }
View Full Code Here

/* 329 */     this.cmrChainLink.setNextLink(nextCMRChainLink);
/*     */   }
/*     */
/*     */   private FieldState getFieldState(EntityEnterpriseContext ctx)
/*     */   {
/* 334 */     JDBCContext jdbcCtx = (JDBCContext)ctx.getPersistenceContext();
/* 335 */     FieldState fieldState = (FieldState)jdbcCtx.getFieldState(this.jdbcContextIndex);
/* 336 */     if (fieldState == null)
/*     */     {
/* 338 */       fieldState = new FieldState(jdbcCtx);
/* 339 */       jdbcCtx.setFieldState(this.jdbcContextIndex, fieldState);
/*     */     }
/* 341 */     return fieldState;
/*     */   }
View Full Code Here

/*      */     {
/*  749 */       InvocationHandler handler = ((Proxies.ProxyTarget)instance).getInvocationHandler();
/*  750 */       if ((handler instanceof EntityBridgeInvocationHandler))
/*  751 */         ((EntityBridgeInvocationHandler)handler).setContext(ctx);
/*      */     }
/*  753 */     ctx.setPersistenceContext(new JDBCContext(this.jdbcContextSize, new EntityState()));
/*      */   }
View Full Code Here

/*  942 */     return getEntityState(ctx).isScheduledForBatchCascadeDelete();
/*      */   }
/*      */
/*      */   private static EntityState getEntityState(EntityEnterpriseContext ctx)
/*      */   {
/*  947 */     JDBCContext jdbcCtx = (JDBCContext)ctx.getPersistenceContext();
/*  948 */     EntityState entityState = jdbcCtx.getEntityState();
/*  949 */     if (entityState == null)
/*  950 */       throw new IllegalStateException("Entity state is null.");
/*  951 */     return entityState;
/*      */   }
View Full Code Here

/*     */
/*     */   public void resetPersistenceContext(EntityEnterpriseContext ctx)
/*     */   {
/* 180 */     if (isReadTimedOut(ctx))
/*     */     {
/* 182 */       JDBCContext jdbcCtx = (JDBCContext)ctx.getPersistenceContext();
/* 183 */       FieldState fieldState = (FieldState)jdbcCtx.getFieldState(this.jdbcContextIndex);
/* 184 */       if (fieldState != null)
/* 185 */         fieldState.reset();
/*     */     }
/*     */   }
View Full Code Here

/* 191 */     getFieldState(ctx).setCheckDirty();
/*     */   }
/*     */
/*     */   private FieldState getFieldState(EntityEnterpriseContext ctx)
/*     */   {
/* 196 */     JDBCContext jdbcCtx = (JDBCContext)ctx.getPersistenceContext();
/* 197 */     FieldState fieldState = (FieldState)jdbcCtx.getFieldState(this.jdbcContextIndex);
/* 198 */     if (fieldState == null)
/*     */     {
/* 200 */       fieldState = new FieldState(jdbcCtx);
/* 201 */       jdbcCtx.setFieldState(this.jdbcContextIndex, fieldState);
/*     */     }
/* 203 */     return fieldState;
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.ejb.plugins.cmp.jdbc.JDBCContext

Copyright © 2018 www.massapicom. 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.