Class QueryTrack

  • All Implemented Interfaces:
    Track

    public class QueryTrack
    extends TrackAbstract
    Author:
    Daniela
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryTrack​(java.lang.String type, java.lang.String username, java.lang.String sessionIdentifier, java.sql.Timestamp timestamp)  
    • Constructor Detail

      • QueryTrack

        public QueryTrack​(java.lang.String type,
                          java.lang.String username,
                          java.lang.String sessionIdentifier,
                          java.sql.Timestamp timestamp)
        Parameters:
        type - type
        username - user
        sessionIdentifier - session
        timestamp - time
    • Method Detail

      • getFormattedTrack

        public java.lang.Object[] getFormattedTrack()
        Description copied from interface: Track
        Return the track formatted into an array of String to be saved in the database
        Returns:
        Object[] an array of Objects
      • getTableName

        public java.lang.String getTableName()
        Description copied from interface: Track
        Return the table name where the track has to be saved
        Returns:
        String the table name
      • validate

        public boolean validate()
        Description copied from interface: Track
        Validate the track before saving into the database
        Returns:
        true if the track is valid