Examples of IdentificationVariable


Examples of org.eclipse.persistence.jpa.internal.jpql.parser.IdentificationVariable

                                                         Map<String, List<IdentificationVariable>> identificationVariables) {

    for (Declaration declaration : queryContext.getActualDeclarationResolver().getDeclarations()) {

      // Register the identification variable from the base expression
      IdentificationVariable identificationVariable = declaration.identificationVariable;
      addIdentificationVariable(identificationVariable, identificationVariables);

      // Register the identification variable from the JOIN expressions
      for (IdentificationVariable joinIdentificationVariable : declaration.joins.values()) {
        addIdentificationVariable(joinIdentificationVariable, identificationVariables);
View Full Code Here

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.IdentificationVariable

    // If a subquery defined in a WHERE clause of an update query,
    // then check for a path expression
    if (managedType == null) {

      // Find the identification variable from the UPDATE range declaration
      IdentificationVariable identificationVariable = findVirtualIdentificationVariable(expression);
      String variableName = (identificationVariable != null) ? identificationVariable.getText() : null;

      if (ExpressionTools.stringIsNotEmpty(variableName)) {

        Resolver parentResolver = queryContext.getResolver(identificationVariable);
        Resolver resolver = buildStateFieldResolver(parentResolver, abstractSchemaName);
View Full Code Here

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.IdentificationVariable

      return Collections.unmodifiableSet(variables);
    }

    private Map.Entry<Join, String> buildMapEntry(Map.Entry<Join, IdentificationVariable> entry) {
      IdentificationVariable variable = entry.getValue();
      String variableName = (variable != null) ? variable.getText() : ExpressionTools.EMPTY_STRING;
      return new SimpleEntry<Join, String>(entry.getKey(), variableName);
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.IdentificationVariable

                                                         Map<String, List<IdentificationVariable>> identificationVariables) {

    for (Declaration declaration : queryContext.getActualDeclarationResolver().getDeclarations()) {

      // Register the identification variable from the base expression
      IdentificationVariable identificationVariable = declaration.identificationVariable;
      addIdentificationVariable(identificationVariable, identificationVariables);

      // Register the identification variable from the JOIN expressions
      for (IdentificationVariable joinIdentificationVariable : declaration.joins.values()) {
        addIdentificationVariable(joinIdentificationVariable, identificationVariables);
View Full Code Here

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.IdentificationVariable

    // If a subquery defined in a WHERE clause of an update query,
    // then check for a path expression
    if (managedType == null) {

      // Find the identification variable from the UPDATE range declaration
      IdentificationVariable identificationVariable = findVirtualIdentificationVariable(expression);
      String variableName = (identificationVariable != null) ? identificationVariable.getText() : null;

      if (ExpressionTools.stringIsNotEmpty(variableName)) {

        Resolver parentResolver = queryContext.getResolver(identificationVariable);
        Resolver resolver = buildStateFieldResolver(parentResolver, abstractSchemaName);
View Full Code Here

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.IdentificationVariable

  private void collectDeclarationIdentificationVariables(Map<String, List<IdentificationVariable>> identificationVariables) {

    for (Declaration declaration : queryContext.getDeclarations()) {

      // Register the identification variable from the base expression
      IdentificationVariable identificationVariable = declaration.identificationVariable;
      addIdentificationVariable(identificationVariable, identificationVariables);

      // Register the identification variable from the JOIN expressions
      for (IdentificationVariable joinIdentificationVariable : declaration.joins.values()) {
        addIdentificationVariable(joinIdentificationVariable, identificationVariables);
View Full Code Here

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.IdentificationVariable

    // If a subquery defined in a WHERE clause of an update query,
    // then check for a path expression
    if (managedType == null) {

      // Find the identification variable from the UPDATE range declaration
      IdentificationVariable identificationVariable = findVirtualIdentificationVariable(expression);
      String variableName = (identificationVariable != null) ? identificationVariable.getText() : null;

      if (ExpressionTools.stringIsNotEmpty(variableName)) {

        Resolver parentResolver = queryContext.getResolver(identificationVariable);
        Resolver resolver = buildStateFieldResolver(parentResolver, abstractSchemaName);
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.IdentificationVariable

  /**
   * {@inheritDoc}
   */
  @Override
  public void visit(KeyExpression expression) {
    IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression();
    Declaration declaration = queryContext.findDeclaration(identificationVariable.getVariableName());
    DatabaseMapping mapping = declaration.getMapping();
    MappedKeyMapContainerPolicy mapContainerPolicy = (MappedKeyMapContainerPolicy) mapping.getContainerPolicy();
    type = (Class<?>) mapContainerPolicy.getKeyType();
  }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.IdentificationVariable

   * {@inheritDoc}
   */
  @Override
  public void visit(ValueExpression expression) {

    IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression();
    Declaration declaration = queryContext.findDeclaration(identificationVariable.getVariableName());
    DatabaseMapping mapping = declaration.getMapping();

    if (mapping.isDirectMapMapping()) {
      DirectMapMapping mapMapping = (DirectMapMapping) mapping;
      type = mapMapping.getValueClass();
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.parser.IdentificationVariable

     * {@link InputParameter}
     */
    @Override
    public void visit(KeyExpression expression) {

      IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression();
      Declaration declaration = queryContext.getDeclaration(identificationVariable.getVariableName());
      DatabaseMapping mapping = declaration.getMapping();

      ContainerPolicy containerPolicy = mapping.getContainerPolicy();
      MappedKeyMapContainerPolicy mapPolicy = (MappedKeyMapContainerPolicy) containerPolicy;
      descriptor = mapPolicy.getKeyMapping().getReferenceDescriptor();
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.