Class ONestedProjectionItem

java.lang.Object
com.orientechnologies.orient.core.sql.parser.SimpleNode
com.orientechnologies.orient.core.sql.parser.ONestedProjectionItem
All Implemented Interfaces:
Node

public class ONestedProjectionItem extends SimpleNode
  • Field Details

    • exclude

      protected boolean exclude
    • star

      protected boolean star
    • expression

      protected OExpression expression
    • rightWildcard

      protected boolean rightWildcard
    • expansion

      protected ONestedProjection expansion
    • alias

      protected OIdentifier alias
  • Constructor Details

    • ONestedProjectionItem

      public ONestedProjectionItem(int id)
    • ONestedProjectionItem

      public ONestedProjectionItem(OrientSql p, int id)
  • Method Details

    • copy

      public ONestedProjectionItem copy()
      Overrides:
      copy in class SimpleNode
    • matches

      public boolean matches(String propertyName)
      given a property name, calculates if this property name matches this nested projection item, eg.
      • this is a *, so it matches any property name
      • the field name for this projection item is the same as the input property name
      • this item has a wildcard and the partial field is a prefix of the input property name
      Parameters:
      propertyName -
      Returns:
    • toString

      public void toString(Map<Object,Object> params, StringBuilder builder)
      Specified by:
      toString in class SimpleNode
    • toGenericStatement

      public void toGenericStatement(StringBuilder builder)
      Specified by:
      toGenericStatement in class SimpleNode
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • expand

      public Object expand(OExpression expression, String name, Object value, OCommandContext ctx, int recursion)
    • serialize

      public OResult serialize()
    • deserialize

      public void deserialize(OResult fromResult)