Examples of ReferenceMode


Examples of com.sun.source.tree.MemberReferenceTree.ReferenceMode

        List<JCExpression> typeArgs = null;
        if (token.kind == LT) {
            typeArgs = typeArguments(false);
        }
        Name refName;
        ReferenceMode refMode;
        if (token.kind == NEW) {
            refMode = ReferenceMode.NEW;
            refName = names.init;
            nextToken();
        } else {
View Full Code Here

Examples of org.eclipse.persistence.config.ReferenceMode

    /**
     * Create the identity map for the unit of work.
     * PERF: UOW uses a special map to avoid locks, always full, and can use special weak refs.
     */
    public IdentityMap buildNewIdentityMapForUnitOfWork(UnitOfWorkImpl unitOfwork, ClassDescriptor descriptor) {
        ReferenceMode mode = unitOfwork.getReferenceMode();
        if (mode == ReferenceMode.FORCE_WEAK) {
            return new WeakUnitOfWorkIdentityMap(32, descriptor);
        } else if ((mode == ReferenceMode.WEAK)
                // Only allow weak if using change tracking.
                && descriptor.getObjectChangePolicy().isAttributeChangeTrackingPolicy()) {
View Full Code Here

Examples of org.eclipse.persistence.config.ReferenceMode

    /**
     * Create the identity map for the unit of work.
     * PERF: UOW uses a special map to avoid locks, always full, and can use special weak refs.
     */
    public IdentityMap buildNewIdentityMapForUnitOfWork(UnitOfWorkImpl unitOfwork, ClassDescriptor descriptor) {
        ReferenceMode mode = unitOfwork.getReferenceMode();
        if (mode == ReferenceMode.FORCE_WEAK) {
            return new WeakUnitOfWorkIdentityMap(32, descriptor);
        } else if ((mode == ReferenceMode.WEAK)
                // Only allow weak if using change tracking.
                && descriptor.getObjectChangePolicy().isAttributeChangeTrackingPolicy()) {
View Full Code Here

Examples of org.eclipse.persistence.config.ReferenceMode

    /**
     * Create the identity map for the unit of work.
     * PERF: UOW uses a special map to avoid locks, always full, and can use special weak refs.
     */
    public IdentityMap buildNewIdentityMapForUnitOfWork(UnitOfWorkImpl unitOfwork, ClassDescriptor descriptor) {
        ReferenceMode mode = unitOfwork.getReferenceMode();
        if (mode == ReferenceMode.FORCE_WEAK) {
            return new WeakUnitOfWorkIdentityMap(32, descriptor);
        } else if ((mode == ReferenceMode.WEAK)
                // Only allow weak if using change tracking.
                && descriptor.getObjectChangePolicy().isAttributeChangeTrackingPolicy()) {
View Full Code Here

Examples of org.eclipse.persistence.config.ReferenceMode

    /**
     * Create the identity map for the unit of work.
     * PERF: UOW uses a special map to avoid locks, always full, and can use special weak refs.
     */
    public IdentityMap buildNewIdentityMapForUnitOfWork(UnitOfWorkImpl unitOfwork, ClassDescriptor descriptor) {
        ReferenceMode mode = unitOfwork.getReferenceMode();
        if (mode == ReferenceMode.FORCE_WEAK) {
            return new WeakUnitOfWorkIdentityMap(32, descriptor);
        } else if ((mode == ReferenceMode.WEAK)
                // Only allow weak if using change tracking.
                && descriptor.getObjectChangePolicy().isAttributeChangeTrackingPolicy()) {
View Full Code Here

Examples of org.eclipse.persistence.config.ReferenceMode

     * INTERNAL: (Public to allow testing to access)
     * Return a new empty identity map to cache instances of the class.
     */
    public IdentityMap buildNewIdentityMap(ClassDescriptor descriptor) {
        if (this.session.isUnitOfWork()) {
            ReferenceMode mode = ((UnitOfWorkImpl)this.session).getReferenceMode();
            if (mode == ReferenceMode.FORCE_WEAK){
                return new WeakUnitOfWorkIdentityMap(32, descriptor, this.session, true);
            } else if (mode == ReferenceMode.WEAK && descriptor.getObjectChangePolicy().isAttributeChangeTrackingPolicy()) {
                return new WeakUnitOfWorkIdentityMap(32, descriptor, this.session, true);       
            } else {
View Full Code Here

Examples of org.eclipse.persistence.config.ReferenceMode

     * INTERNAL: (Public to allow testing to access)
     * Return a new empty identity map to cache instances of the class.
     */
    public IdentityMap buildNewIdentityMap(ClassDescriptor descriptor) {
        if (this.session.isUnitOfWork()) {
            ReferenceMode mode = ((UnitOfWorkImpl)this.session).getReferenceMode();
            if (mode == ReferenceMode.FORCE_WEAK){
                return new WeakUnitOfWorkIdentityMap(32, descriptor, this.session, true);
            } else if (mode == ReferenceMode.WEAK && descriptor.getObjectChangePolicy().isAttributeChangeTrackingPolicy()) {
                return new WeakUnitOfWorkIdentityMap(32, descriptor, this.session, true);       
            } else {
View Full Code Here

Examples of org.eclipse.persistence.config.ReferenceMode

     * INTERNAL: (Public to allow testing to access)
     * Return a new empty identity map to cache instances of the class.
     */
    public IdentityMap buildNewIdentityMap(ClassDescriptor descriptor) {
        if (this.session.isUnitOfWork()) {
            ReferenceMode mode = ((UnitOfWorkImpl)this.session).getReferenceMode();
            if (mode == ReferenceMode.FORCE_WEAK){
                return new WeakUnitOfWorkIdentityMap(32, descriptor, this.session, true);
            } else if (mode == ReferenceMode.WEAK && descriptor.getObjectChangePolicy().isAttributeChangeTrackingPolicy()) {
                return new WeakUnitOfWorkIdentityMap(32, descriptor, this.session, true);       
            } else {
View Full Code Here

Examples of org.eclipse.persistence.config.ReferenceMode

    /**
     * Create the identity map for the unit of work.
     * PERF: UOW uses a special map to avoid locks, always full, and can use special weak refs.
     */
    public IdentityMap buildNewIdentityMapForUnitOfWork(UnitOfWorkImpl unitOfwork, ClassDescriptor descriptor) {
        ReferenceMode mode = unitOfwork.getReferenceMode();
        if (mode == ReferenceMode.FORCE_WEAK) {
            return new WeakUnitOfWorkIdentityMap(32, descriptor);
        } else if ((mode == ReferenceMode.WEAK)
                // Only allow weak if using change tracking.
                && descriptor.getObjectChangePolicy().isAttributeChangeTrackingPolicy()) {
View Full Code Here

Examples of org.eclipse.persistence.config.ReferenceMode

     * INTERNAL: (Public to allow testing to access)
     * Return a new empty identity map to cache instances of the class.
     */
    public IdentityMap buildNewIdentityMap(ClassDescriptor descriptor) {
        if (this.session.isUnitOfWork()) {
            ReferenceMode mode = ((UnitOfWorkImpl)this.session).getReferenceMode();
            if (mode == ReferenceMode.FORCE_WEAK){
                return new WeakUnitOfWorkIdentityMap(32, descriptor, this.session, true);
            } else if (mode == ReferenceMode.WEAK && descriptor.getObjectChangePolicy().isAttributeChangeTrackingPolicy()) {
                return new WeakUnitOfWorkIdentityMap(32, descriptor, this.session, true);       
            } else {
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.