Class Project

    • Field Detail

      • touchId

        public int touchId
      • isFreshImported

        public boolean isFreshImported
      • file

        protected file
      • idef1xNotation

        public static com.wisecoders.dbs.diagram.fx.notation.FxIdef1xNotation idef1xNotation
      • ieNotation

        public static com.wisecoders.dbs.diagram.fx.notation.FxIENotation ieNotation
      • ieWithArrowsNotation

        public static com.wisecoders.dbs.diagram.fx.notation.FxIEWithArrowsNotation ieWithArrowsNotation
      • barkerNotation

        public static com.wisecoders.dbs.diagram.fx.notation.FxBarkerNotation barkerNotation
    • Constructor Detail

      • Project

        public Project​(java.lang.String name)
      • Project

        public Project​(java.lang.String name,
                       java.lang.String rdbms)
    • Method Detail

      • setActiveMapping

        public void setActiveMapping​(SchemaMapping activeMapping)
      • createSchema

        public Schema createSchema​(java.lang.String name,
                                   java.lang.String catalogName,
                                   java.lang.String schemaName)
      • getSchema

        public Schema getSchema​(java.lang.String catalogName,
                                java.lang.String schemaName)
      • createLayout

        public Layout createLayout​(java.lang.String name)
        Create a new layout ( diagram )
        name - as layout name
        the created layout
      • createLayoutIncludeAllTables

        public Layout createLayoutIncludeAllTables​(java.lang.String name,
                                                   boolean createGroups)
        Create a Layout and attach all project tables to it. Used in Groovy Scripts.
        name - layout name
        createGroups - to set groups over the tables
        the created layout
      • duplicateLayout

        public Layout duplicateLayout​(Layout layout)
        Duplicate a layout in a new layout
        layout - to duplicate
        the duplicated layout
      • copyLayoutIntoLayout

        public Layout copyLayoutIntoLayout​(Layout layout,
                                           Layout intoLayout,
                                           int dx,
                                           int dy)
      • createConnector

        public Connector createConnector()
      • createConnectorForTestLab

        public Connector createConnectorForTestLab​(java.lang.String rdbmsName,
                                                   java.lang.String driverClass,
                                                   java.lang.String host,
                                                   int port,
                                                   java.lang.String instance,
                                                   java.lang.String user,
                                                   java.lang.String password)
      • createConnector

        public Connector createConnector​(java.lang.String alias,
                                         java.lang.String rdbms,
                                         java.lang.String driverClassName,
                                         java.lang.String driverJarName,
                                         java.lang.String driverDescription,
                                         java.lang.String host,
                                         int port,
                                         java.lang.String instance,
                                         java.lang.String user,
                                         boolean readOnly)
        Create a connection to database.
        alias - - a name for the connection
        rdbms - the database name
        driverClassName - is the name of the class to connect to database. Open the Connection Dialog in DbSchema and you will see the class name and driverJarFileName listed there.
        driverJarName - is the name of the jar driver file under 'Users/CURRENT_USER/.DbSchema/RDBMS_NAME/drivers'.
        driverDescription - is a comment
        host - to connect to
        port - to connect to
        instance - the name of the database or instance in the database server
        user - to connect to
        readOnly - connection
        a Connector class you can use for connecting to database
      • createConnector

        public Connector createConnector​(java.lang.String alias,
                                         java.lang.String host,
                                         int port,
                                         java.lang.String driverClassName,
                                         java.lang.String instance,
                                         java.lang.String user)
        Create a connector with for the same Rdbms as the project. The driver is the fist found in the list of drivers.
        alias - of the connector in the project connectors list
        host - of the database
        port - of the database
        driverClassName - to use
        instance - of the database
        user - in the database
        the connector
      • getActiveConnector

        public Connector getActiveConnector()
        Method used by HTMLForms to get connection to the database without accessing Workspace
        connection to use
      • getLayout

        public Layout getLayout​(java.lang.String name)
      • getFile

        public getFile()
      • hasFile

        public boolean hasFile()
      • setFile

        public void setFile​( file)
      • getRdbms

        public java.lang.String getRdbms()
      • setRdbms

        public void setRdbms​(java.lang.String rdbms)
      • setHasForms

        public void setHasForms()
      • hasForms

        public boolean hasForms()
      • getTitle

        public java.lang.String getTitle()
      • getStatistics

        public java.lang.String getStatistics()
      • createSchema

        public Schema createSchema​(Schema schema)
      • getEntityCount

        public int getEntityCount()
      • hasEntities

        public boolean hasEntities()
      • findSimilarUnitsAsInSelection

        public java.util.List<TreeUnit> findSimilarUnitsAsInSelection​(java.util.List<? extends TreeUnit> preselect)
      • setStoreId

        public void setStoreId​(java.lang.String id)
      • translateInFormURL

        public FormUrl translateInFormURL​(java.lang.String path,
                                          java.lang.String query)
      • getMainForm

        public com.wisecoders.dbs.forms.model.unit.Form getMainForm()
      • getFormByKey

        public com.wisecoders.dbs.forms.model.unit.Form getFormByKey​(java.lang.String id)
      • getReferringForms

        public java.util.List<com.wisecoders.dbs.forms.model.unit.Form> getReferringForms​(com.wisecoders.dbs.forms.model.unit.Form target)
      • setBundle

        public void setBundle​(java.lang.String bundle)
      • getBundle

        public java.lang.String getBundle()
      • isMongoDb

        public boolean isMongoDb()
      • getSyncFilter

        public java.lang.String getSyncFilter()
      • setSyncFilter

        public void setSyncFilter​(java.lang.String syncFilter)
      • getURL

        public java.lang.String getURL()
      • setNotation

        public void setNotation​(com.wisecoders.dbs.diagram.fx.notation.FxNotation notation)
      • getNotation

        public com.wisecoders.dbs.diagram.fx.notation.FxNotation getNotation()
      • deduceVirtualForeignKeysFromQuery

        public java.util.List<VirtualForeignKeyEntry> deduceVirtualForeignKeysFromQuery​(java.lang.String query)
                                                                                 throws java.lang.Exception
      • isDbVersionLargerEqual

        public boolean isDbVersionLargerEqual​(java.lang.String version)
      • setDbVersion

        public void setDbVersion​(java.lang.String dbVersion)