Class SetPropertyCommand


  • public class SetPropertyCommand
    extends Command
    Implements the "SET VARIABLE ..." command.
    • Nested Class Summary

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String propertyName
      The name of the property to set.
      private Expression valueExpr
      The value to set the property to.
      • Fields inherited from class edu.caltech.nanodb.commands.Command

        out
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(NanoDBServer server)
      Actually performs the command.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • propertyName

        private java.lang.String propertyName
        The name of the property to set.
      • valueExpr

        private Expression valueExpr
        The value to set the property to.
    • Constructor Detail

      • SetPropertyCommand

        public SetPropertyCommand​(java.lang.String propertyName,
                                  Expression valueExpr)
    • Method Detail

      • execute

        public void execute​(NanoDBServer server)
        Description copied from class: Command
        Actually performs the command.
        Specified by:
        execute in class Command