Examples of ForeignReferenceQueryKey


Examples of org.eclipse.persistence.mappings.querykeys.ForeignReferenceQueryKey

   */
  Class<?> calculateQueryKeyType(QueryKey queryKey) {

    // ForeignReferenceQueryKey
    if (queryKey.isForeignReferenceQueryKey()) {
      ForeignReferenceQueryKey foreignReferenceQueryKey = (ForeignReferenceQueryKey) queryKey;
      return foreignReferenceQueryKey.getReferenceClass();
    }

    // DirectQueryKey
    DirectQueryKey key = (DirectQueryKey) queryKey;
    Class<?> type = key.getField().getType();
View Full Code Here

Examples of org.eclipse.persistence.mappings.querykeys.ForeignReferenceQueryKey

        if (mapping == null) {
          queryKey = descriptor.getQueryKeyNamed(path);

          if ((queryKey != null) && queryKey.isForeignReferenceQueryKey()) {
            ForeignReferenceQueryKey referenceQueryKey = (ForeignReferenceQueryKey) queryKey;
            descriptor = queryContext.getDescriptor(referenceQueryKey.getReferenceClass());
          }
          else {
            if (index + 1 < count) {
              mapping = null;
            }
View Full Code Here

Examples of org.eclipse.persistence.mappings.querykeys.ForeignReferenceQueryKey

            return null;
        }
        if (descriptor == null) {
            // Look first for query keys, then mappings. Ultimately we should have query keys
            // for everything and can dispense with the mapping part.
            ForeignReferenceQueryKey queryKey = (ForeignReferenceQueryKey)getQueryKeyOrNull();
            if (queryKey != null) {
                descriptor = getSession().getDescriptor(queryKey.getReferenceClass());
                return descriptor;
            }
            if (getMapping() == null) {
                throw QueryException.invalidQueryKeyInExpression(this);
            }
View Full Code Here

Examples of org.eclipse.persistence.mappings.querykeys.ForeignReferenceQueryKey

            // This will tell us how to create the Expression
            collectionMapping = queryKey.isCollectionQueryKey();

            // Retrieve the reference descriptor so we can continue traversing the path
            if (!last && queryKey.isForeignReferenceQueryKey()) {
              ForeignReferenceQueryKey referenceQueryKey = (ForeignReferenceQueryKey) queryKey;
              descriptor = queryContext.getDescriptor(referenceQueryKey.getReferenceClass());
            }
          }
          // Nothing was found
          else {
            break;
View Full Code Here

Examples of org.eclipse.persistence.mappings.querykeys.ForeignReferenceQueryKey

   */
  Class<?> calculateQueryKeyType(QueryKey queryKey) {

    // ForeignReferenceQueryKey
    if (queryKey.isForeignReferenceQueryKey()) {
      ForeignReferenceQueryKey foreignReferenceQueryKey = (ForeignReferenceQueryKey) queryKey;
      return foreignReferenceQueryKey.getReferenceClass();
    }

    // DirectQueryKey
    DirectQueryKey key = (DirectQueryKey) queryKey;
    Class<?> type = key.getField().getType();
View Full Code Here

Examples of org.eclipse.persistence.mappings.querykeys.ForeignReferenceQueryKey

        if (mapping == null) {
          queryKey = descriptor.getQueryKeyNamed(path);

          if ((queryKey != null) && queryKey.isForeignReferenceQueryKey()) {
            ForeignReferenceQueryKey referenceQueryKey = (ForeignReferenceQueryKey) queryKey;
            descriptor = queryContext.getDescriptor(referenceQueryKey.getReferenceClass());
          }
          else {
            if (index + 1 < count) {
              mapping = null;
            }
View Full Code Here

Examples of org.eclipse.persistence.mappings.querykeys.ForeignReferenceQueryKey

            return null;
        }
        if (descriptor == null) {
            // Look first for query keys, then mappings. Ultimately we should have query keys
            // for everything and can dispense with the mapping part.
            ForeignReferenceQueryKey queryKey = (ForeignReferenceQueryKey)getQueryKeyOrNull();
            if (queryKey != null) {
                descriptor = getSession().getDescriptor(queryKey.getReferenceClass());
                return descriptor;
            }
            if (getMapping() == null) {
                throw QueryException.invalidQueryKeyInExpression(this);
            }
View Full Code Here

Examples of org.eclipse.persistence.mappings.querykeys.ForeignReferenceQueryKey

            return null;
        }
        if (descriptor == null) {
            // Look first for query keys, then mappings. Ultimately we should have query keys
            // for everything and can dispense with the mapping part.
            ForeignReferenceQueryKey queryKey = (ForeignReferenceQueryKey)getQueryKeyOrNull();
            if (queryKey != null) {
                descriptor = getSession().getDescriptor(queryKey.getReferenceClass());
                return descriptor;
            }
            if (getMapping() == null) {
                throw QueryException.invalidQueryKeyInExpression(this);
            }
View Full Code Here

Examples of org.eclipse.persistence.mappings.querykeys.ForeignReferenceQueryKey

            return null;
        }
        if (descriptor == null) {
            // Look first for query keys, then mappings. Ultimately we should have query keys
            // for everything and can dispense with the mapping part.
            ForeignReferenceQueryKey queryKey = (ForeignReferenceQueryKey)getQueryKeyOrNull();
            if (queryKey != null) {
                descriptor = getSession().getDescriptor(queryKey.getReferenceClass());
                return descriptor;
            }
            if (getMapping() == null) {
                throw QueryException.invalidQueryKeyInExpression(this);
            }
View Full Code Here

Examples of org.eclipse.persistence.mappings.querykeys.ForeignReferenceQueryKey

            // This will tell us how to create the Expression
            collectionMapping = queryKey.isCollectionQueryKey();

            // Retrieve the reference descriptor so we can continue traversing the path
            if (!last && queryKey.isForeignReferenceQueryKey()) {
              ForeignReferenceQueryKey referenceQueryKey = (ForeignReferenceQueryKey) queryKey;
              descriptor = queryContext.getDescriptor(referenceQueryKey.getReferenceClass());
            }
          }
          // Nothing was found
          else {
            break;
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.