Class NFEMetadata

  • Direct Known Subclasses:
    NFEFeatureLayerMetadata, NFEModelMetadata, NFENetworkMetadata

    public abstract class NFEMetadata
    extends java.lang.Object
    Parent class for all classes that hold metadata of any First Class Model Object such as NFEModel, NFENetwork or NFEFeatureLayer. This class contains convenient methods that may be used by any sub class
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​java.lang.String> tableSequenceMap  
    • Constructor Summary

      Constructors 
      Constructor Description
      NFEMetadata()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getTableSequence​(java.lang.String tableName)
      Gets the name of the sequence associated to the given table name
      java.util.Collection<java.lang.String> getTablesWithSequence()
      Returns all the table names that are associated to a sequence name
      boolean hasSequence​(java.lang.String tableName)
      Tells whether the table name is associated to a sequence
      void setTableSequence​(java.lang.String tableName, java.lang.String sequenceName)
      Associates a sequence name to a given table name
      • Methods inherited from class java.lang.Object

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

      • tableSequenceMap

        protected java.util.Map<java.lang.String,​java.lang.String> tableSequenceMap
    • Constructor Detail

      • NFEMetadata

        public NFEMetadata()
    • Method Detail

      • setTableSequence

        public void setTableSequence​(java.lang.String tableName,
                                     java.lang.String sequenceName)
        Associates a sequence name to a given table name
        Parameters:
        tableName - a database table name
        sequenceName - a database sequence name
      • getTableSequence

        public java.lang.String getTableSequence​(java.lang.String tableName)
        Gets the name of the sequence associated to the given table name
        Parameters:
        tableName - a database table name
        Returns:
        a name of a sequence or null if the table is not associated to any sequence
      • hasSequence

        public boolean hasSequence​(java.lang.String tableName)
        Tells whether the table name is associated to a sequence
        Parameters:
        tableName - a database table name
        Returns:
        true if the table is associated to a sequence.
      • getTablesWithSequence

        public java.util.Collection<java.lang.String> getTablesWithSequence()
        Returns all the table names that are associated to a sequence name
        Returns:
        a collection containing table names as strings