Interface IDbSchema

  • All Known Implementing Classes:
    DbSchema

    public interface IDbSchema
    Defines Perforce DB schema associated with a Perforce server (admin / superuser feature).

    Usage of this feature is intentionally not documented here in any detail; see "p4 help dbschema" for more useful details.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int NOVERSION
      What getVersion returns if there was no version number returned from the server.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<java.util.Map<java.lang.String,​java.lang.String>> getColumnMetadata()  
      java.lang.String getName()  
      int getVersion()  
      void setColumnMetadata​(java.util.List<java.util.Map<java.lang.String,​java.lang.String>> columnMetadata)
      Set the colum metadata map.
      void setName​(java.lang.String name)
      Set the name of the table.
      void setVersion​(int version)
      Set the table schema version.
    • Field Detail

      • NOVERSION

        static final int NOVERSION
        What getVersion returns if there was no version number returned from the server.
        See Also:
        Constant Field Values
    • Method Detail

      • getName

        java.lang.String getName()
        Returns:
        the name of the table.
      • getVersion

        int getVersion()
        Returns:
        the table schema version.
      • getColumnMetadata

        java.util.List<java.util.Map<java.lang.String,​java.lang.String>> getColumnMetadata()
        Returns:
        a list of column metadata maps. Note that while this list should never be null, individual map values within it may be null. Field (map key) names and values are not explained here.
      • setName

        void setName​(java.lang.String name)
        Set the name of the table.
        Parameters:
        name - table name
      • setVersion

        void setVersion​(int version)
        Set the table schema version.
        Parameters:
        version - schema version
      • setColumnMetadata

        void setColumnMetadata​(java.util.List<java.util.Map<java.lang.String,​java.lang.String>> columnMetadata)
        Set the colum metadata map.
        Parameters:
        columnMetadata - data