Class File

  • All Implemented Interfaces:
    java.io.Serializable

    public class File
    extends java.lang.Object
    implements java.io.Serializable
    class File
    See Also:
    Serialized Form
    • Constructor Detail

      • File

        public File()
    • Method Detail

      • getFileKey

        public java.lang.String getFileKey()
        get file key
        Returns:
        the key
      • setFileKey

        public void setFileKey​(java.lang.String strFileKey)
        set file key
        Parameters:
        strFileKey -
      • getIdFile

        @Deprecated
        public int getIdFile()
        Deprecated.
        This method should be used for backward compatibility only, and could throw NumberFormatException if the key is not numeric
        Returns:
        the id of the file
      • setIdFile

        @Deprecated
        public void setIdFile​(int idFile)
        Deprecated.
        This method should be used for backward compatibility only
        Parameters:
        idFile - id of the file
      • getTitle

        public java.lang.String getTitle()
        Returns:
        the title of the file
      • setTitle

        public void setTitle​(java.lang.String title)
        set the title of the file
        Parameters:
        title - the title of the file
      • getSize

        public int getSize()
        Returns:
        the size of the file
      • setSize

        public void setSize​(int size)
        set the size of the file
        Parameters:
        size - the size of the file
      • getExtension

        public java.lang.String getExtension()
        Returns:
        the extension of the file
      • setExtension

        public void setExtension​(java.lang.String extension)
        set the extension of the file
        Parameters:
        extension - the title of the file
      • getMimeType

        public java.lang.String getMimeType()
        Returns:
        the extension of the file
      • setMimeType

        public void setMimeType​(java.lang.String mimeType)
        set the mime type of the file
        Parameters:
        mimeType - the mime type of the file
      • getPhysicalFile

        public PhysicalFile getPhysicalFile()
        Returns:
        the PhysicalFile associate to the file
      • setPhysicalFile

        public void setPhysicalFile​(PhysicalFile file)
        set the PhysicalFile associate to the file
        Parameters:
        file - PhysicalFile
      • getDateCreation

        public java.sql.Timestamp getDateCreation()
        Returns:
        the creation date of the file
      • setDateCreation

        public void setDateCreation​(java.sql.Timestamp dateCreation)
        set the creation date of the file
        Parameters:
        dateCreation - the creation date of the file
      • getUrl

        public java.lang.String getUrl()
        get url
        Returns:
        the url
      • setUrl

        public void setUrl​(java.lang.String strUrl)
        set url
        Parameters:
        strUrl - the url to set
      • getOrigin

        public java.lang.String getOrigin()
        get origin
        Returns:
        the origin
      • setOrigin

        public void setOrigin​(java.lang.String strOrigin)
        set origin
        Parameters:
        _strOrigin -