Class ColumnExpression


  • public class ColumnExpression
    extends SQLExpression
    Representation of a column expression. Used within ObjectExpression for handling particular columns representing an object.
    • Constructor Detail

      • ColumnExpression

        protected ColumnExpression​(SQLStatement stmt,
                                   String parameterName,
                                   JavaTypeMapping mapping,
                                   Object value,
                                   int colNumber)
        Constructor for an SQL expression for a parameter.
        Parameters:
        stmt - The statement
        parameterName - Name of the parameter
        mapping - Mapping for the column
        value - The value for the parameter for this column
        colNumber - Column number of the mapping being represented here
      • ColumnExpression

        protected ColumnExpression​(SQLStatement stmt,
                                   SQLTable table,
                                   Column col)
        Constructor for an SQL expression for a column.
        Parameters:
        stmt - The statement
        table - The table in the statement
        col - The column
      • ColumnExpression

        protected ColumnExpression​(SQLStatement stmt,
                                   Object value)
        Constructor for an SQL expression for a literal value.
        Parameters:
        stmt - The statement
        value - The literal value
    • Method Detail

      • setOmitTableFromString

        public void setOmitTableFromString​(boolean omitTable)
      • toString

        public String toString()
        Stringifier method to return this "column" in a form for use in SQL statements. This can be of the following form(s)
         TABLEALIAS.MYCOLUMN
         MYTABLE.MYCOLUMN
         
        Overrides:
        toString in class Object
        Returns:
        The String form for use