Interface Track

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object[] getFormattedTrack()
      Return the track formatted into an array of String to be saved in the database
      java.lang.String getTableName()
      Return the table name where the track has to be saved
      void store​(java.sql.Connection con)
      Save into the table the track object representing the user activity
      boolean validate()
      Validate the track before saving into the database
    • Method Detail

      • validate

        boolean validate()
        Validate the track before saving into the database
        Returns:
        true if the track is valid
      • getFormattedTrack

        java.lang.Object[] getFormattedTrack()
        Return the track formatted into an array of String to be saved in the database
        Returns:
        Object[] an array of Objects
      • store

        void store​(java.sql.Connection con)
        Save into the table the track object representing the user activity
        Parameters:
        con - database connection
      • getTableName

        java.lang.String getTableName()
        Return the table name where the track has to be saved
        Returns:
        String the table name