Class SchemaEditorPreferences

java.lang.Object
com.illumon.iris.console.schemaeditor.SchemaEditorPreferences
All Implemented Interfaces:
Workspace

public final class SchemaEditorPreferences extends Object implements Workspace
Persists preference settings for Schema Editor behavior. These are stored in the workspace. Currently they include what CasingStyle to use for formatting column names, and whether to use underscore or nothing as a replacement character for spaces and hyphens in the source name.
  • Field Details

  • Method Details

    • getInstance

      public static SchemaEditorPreferences getInstance()
    • getReplacementChar

      public String getReplacementChar()
    • setReplacementChar

      public void setReplacementChar(String replacementChar)
    • getCasingStyle

      public CasingStyle getCasingStyle()
    • setCasingStyle

      public void setCasingStyle(CasingStyle casingStyle)
    • getWorkspaceInfo

      public org.jdom2.Element getWorkspaceInfo()
      Description copied from interface: Workspace
      Serialize the class into an element to be stored in the workspace
      Specified by:
      getWorkspaceInfo in interface Workspace
      Returns:
      An Element containing the data to persist.
    • setWorkspaceInfo

      public void setWorkspaceInfo(org.jdom2.Element workspaceInfo)
      Description copied from interface: Workspace
      Restore the class to the state defined by the data persisted in workspaceInfo
      Specified by:
      setWorkspaceInfo in interface Workspace
      Parameters:
      workspaceInfo - An Element containing the persisted state.
    • getSchemaToolDbHost

      public String getSchemaToolDbHost()
    • setSchemaToolDbHost

      public void setSchemaToolDbHost(String schemaToolDbHost)
    • getSchemaToolHeap

      public double getSchemaToolHeap()
    • setSchemaToolHeap

      public void setSchemaToolHeap(double schemaToolHeap)
    • getSchemaToolExtraJvmArgs

      public String getSchemaToolExtraJvmArgs()
    • setSchemaToolExtraJvmArgs

      public void setSchemaToolExtraJvmArgs(String schemaToolExtraJvmArgs)
    • isGlobalSetting

      public boolean isGlobalSetting()
      Specified by:
      isGlobalSetting in interface Workspace
    • addListener

      public void addListener(SchemaEditorPreferences.Listener l)
    • removeListener

      public void removeListener(SchemaEditorPreferences.Listener l)
    • beginEdit

      public void beginEdit()
    • endEdit

      public void endEdit()