Class Name

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    All

    public class Name
    extends Expression
    Represents a named expression.
    Since:
    2.0.0
    Author:
    Rui Vilao (rui.vilao@feedzai.com)
    See Also:
    Serialized Form
    • Constructor Detail

      • Name

        public Name​(String name)
        Creates a new instance of Name.
        Parameters:
        name - The object name.
      • Name

        public Name​(String tableName,
                    String name)
        Creates a new instance of Name.
        Parameters:
        tableName - The environment.
        name - The name.
    • Method Detail

      • isNull

        public Name isNull()
        Appends "IS NULL" to this expression.
        Returns:
        This expression.
      • isNotNull

        public Name isNotNull()
        Appends "IS NOT NULL" to this expression.
        Returns:
        This expression.
      • getName

        public String getName()
        Gets the name.
        Returns:
        The name.
      • getEnvironment

        public String getEnvironment()
        Gets the environment.
        Returns:
        The environment.
      • isIsNull

        public boolean isIsNull()
        Checks if IS NULL is to be appended to this expression.
        Returns:
        true if it is to be appended, false otherwise.
      • isIsNotNull

        public boolean isIsNotNull()
        Checks if IS NOT NULL is to be appended to this expression.
        Returns:
        true if it is to be appended, false otherwise.
      • translate

        public String translate()
        Description copied from class: Expression
        Translates the expression.
        Specified by:
        translate in class Expression
        Returns:
        A translation of the implementing expression.