Class StringExpression.StringLeftTrimExpression

    • Constructor Detail

      • StringLeftTrimExpression

        public StringLeftTrimExpression​(StringResult stringVariable)
    • Method Detail

      • toSQLString

        public String toSQLString​(DBDefinition db)
        Description copied from interface: HasSQLString
        Produces the snippet provided by this class.

        This is only used internally.

        If you are extending DBvolution and adding a new function this is the place to format the information for use in SQL. A DBDefinition instance is provided to supply context and so your SQL can used on multiple database engines.

        Specified by:
        toSQLString in interface HasSQLString
        Overrides:
        toSQLString in class StringExpression
        Parameters:
        db - the target database

        Support DBvolution at Patreon

        Returns:
        the DBValue formatted as a SQL snippet
      • copy

        public StringExpression.StringLeftTrimExpression copy()
        Description copied from interface: DBExpression
        A Complete Copy Of This DBValue.

        Immutability in DBvolution is maintain by internally copying objects.

        This method enables immutability by performing a deep copy of the object.

        Singletons may return themselves but all other objects must return a new instance with copies of all mutable fields.

        Support DBvolution at Patreon

        Specified by:
        copy in interface DBExpression
        Specified by:
        copy in interface StringResult
        Overrides:
        copy in class StringExpression
        Returns:
        a copy of this DBValue