Class CommandProperties


  • public class CommandProperties
    extends java.lang.Object
    This class holds properties that might contain additional details for a command. For example, the CREATE TABLE DDL command takes properties to specify non-default storage engine types, the page size to use for the table file, and so forth.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.HashMap<java.lang.String,​java.lang.Object> values
      A map of name-value pairs that represent the actual properties.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.String name)  
      java.lang.Object get​(java.lang.String name, java.lang.Object defaultValue)  
      int getInt​(java.lang.String name, int defaultValue)  
      java.util.Set<java.lang.String> getNames()  
      java.lang.String getString​(java.lang.String name, java.lang.String defaultValue)  
      void set​(java.lang.String name, java.lang.Object value)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • values

        private java.util.HashMap<java.lang.String,​java.lang.Object> values
        A map of name-value pairs that represent the actual properties.
    • Constructor Detail

      • CommandProperties

        public CommandProperties()
    • Method Detail

      • set

        public void set​(java.lang.String name,
                        java.lang.Object value)
      • get

        public java.lang.Object get​(java.lang.String name,
                                    java.lang.Object defaultValue)
      • get

        public java.lang.Object get​(java.lang.String name)
      • getInt

        public int getInt​(java.lang.String name,
                          int defaultValue)
      • getString

        public java.lang.String getString​(java.lang.String name,
                                          java.lang.String defaultValue)
      • getNames

        public java.util.Set<java.lang.String> getNames()
      • toString

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