Class TypedVar

  • All Implemented Interfaces:
    QueryArg

    public class TypedVar
    extends java.lang.Object
    implements QueryArg
    Represents a variable used in a query. Query variables are used as placeholders in query expressions.
    • Constructor Summary

      Constructors 
      Constructor Description
      TypedVar​(java.lang.String type)
      Creates a new TypedVar with the specified type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()
      Returns the ID of this variable.
      java.lang.String getType()
      Returns the type of this variable.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TypedVar

        public TypedVar​(java.lang.String type)
        Creates a new TypedVar with the specified type.
        Parameters:
        type - The type of the variable
    • Method Detail

      • getType

        public java.lang.String getType()
        Returns the type of this variable.
        Specified by:
        getType in interface QueryArg
        Returns:
        The type of this variable
      • getId

        public java.lang.String getId()
        Returns the ID of this variable.
        Returns:
        The ID of this variable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object