Package org.eclipse.persistence.jpa.jpql.spi

Examples of org.eclipse.persistence.jpa.jpql.spi.IManagedTypeProvider


    // We keep track of the old stuff because during the creation of a JPQLQueryStateObject,
    // it is possible the state model uses this builder to create some objects
    BasicStateObjectBuilder builder  = getStateObjectBuilder();
    IJPQLQueryBuilder oldBuilder     = builder.jpqlQueryBuilder;
    IManagedTypeProvider oldProvider = builder.managedTypeProvider;
    JPQLQueryStateObject oldParent   = builder.parent;
    StateObject oldStateObject       = builder.stateObject;

    try {
      builder.jpqlQueryBuilder    = this;
View Full Code Here


   */
  protected void resolveMappings() {

    if (!resolved) {
      resolved = true;
      IManagedTypeProvider provider = getManagedTypeProvider();
      IManagedType managedType = null;

      for (int index = 0, count = itemsSize(); index < count; index++) {

        // Identification variable
        if (index == 0) {
          StateObject stateObject = getIdentificationVariable();

          // The identification variable is not set, which means the traversal can happen
          if (stateObject != null) {
            managedType = getDeclaration().findManagedType(stateObject);
          }

          mappings.add(null);
        }
        // Resolve the path expression after the identification variable
        else if (managedType != null) {

          String path = getItem(index);

          // Cache the mapping
          IMapping mapping = managedType.getMappingNamed(path);
          mappings.add(mapping);

          // Continue by retrieving the managed type
          if (mapping != null) {
            managedType = provider.getManagedType(mapping.getType());
          }
          else {
            managedType = null;
          }
        }
View Full Code Here

   */
  protected void resolveMappings() {

    if (!resolved) {
      resolved = true;
      IManagedTypeProvider provider = getManagedTypeProvider();
      IManagedType managedType = null;

      for (int index = 0, count = itemsSize(); index < count; index++) {

        // Identification variable
        if (index == 0) {
          StateObject stateObject = getIdentificationVariable();

          // The identification variable is not set, which means the traversal can happen
          if (stateObject != null) {
            managedType = getDeclaration().findManagedType(stateObject);
          }

          mappings.add(null);
        }
        // Resolve the path expression after the identification variable
        else if (managedType != null) {

          String path = getItem(index);

          // Cache the mapping
          IMapping mapping = managedType.getMappingNamed(path);
          mappings.add(mapping);

          // Continue by retrieving the managed type
          if (mapping != null) {
            managedType = provider.getManagedType(mapping.getType());
          }
          else {
            managedType = null;
          }
        }
View Full Code Here

    // We keep track of the old stuff because during the creation of a JPQLQueryStateObject,
    // it is possible the state model uses this builder to create some objects
    BasicStateObjectBuilder builder  = getStateObjectBuilder();
    IJPQLQueryBuilder oldBuilder     = builder.jpqlQueryBuilder;
    IManagedTypeProvider oldProvider = builder.managedTypeProvider;
    JPQLQueryStateObject oldParent   = builder.parent;
    StateObject oldStateObject       = builder.stateObject;

    try {
      builder.jpqlQueryBuilder    = this;
View Full Code Here

   */
  protected void resolveMappings() {

    if (!resolved) {
      resolved = true;
      IManagedTypeProvider provider = getManagedTypeProvider();
      IManagedType managedType = null;

      for (int index = 0, count = itemsSize(); index < count; index++) {

        // Identification variable
        if (index == 0) {
          StateObject stateObject = getIdentificationVariable();

          // The identification variable is not set, which means the traversal can happen
          if (stateObject != null) {
            managedType = getDeclaration().findManagedType(stateObject);
          }

          mappings.add(null);
        }
        // Resolve the path expression after the identification variable
        else if (managedType != null) {

          String path = getItem(index);

          // Cache the mapping
          IMapping mapping = managedType.getMappingNamed(path);
          mappings.add(mapping);

          // Continue by retrieving the managed type
          if (mapping != null) {
            managedType = provider.getManagedType(mapping.getType());
          }
          else {
            managedType = null;
          }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.jpa.jpql.spi.IManagedTypeProvider

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.