Class ClientRefData

  • All Implemented Interfaces:
    IEntity, Serializable, org.apache.cayenne.DataObject, org.apache.cayenne.Persistent, org.apache.cayenne.Validating

    public class ClientRefData
    extends _ClientRefData
    The ClientRefData entity.
    Since:
    17.10.0
    See Also:
    Serialized Form
    • Field Detail

      • VALID_DATA_TYPES

        public static final List<String> VALID_DATA_TYPES
        The list of valid reference data types.
      • FILE_NAME_DEFAULT

        public static final String FILE_NAME_DEFAULT
        The default file name that will be used if the entity does not specify a file name. Will be augmented with an extension based on data type
        See Also:
        Constant Field Values
    • Constructor Detail

      • ClientRefData

        public ClientRefData()
    • Method Detail

      • isTypeCSV

        public boolean isTypeCSV()
        return true if the type is CSV, otherwise false
        Returns:
        return true if the type is CSV, otherwise false
      • isTypeJSON

        public boolean isTypeJSON()
        return true if the type is JSON, otherwise false
        Returns:
        return true if the type is JSON, otherwise false
      • isTypeXML

        public boolean isTypeXML()
        return true if the type is XML, otherwise false
        Returns:
        return true if the type is XML, otherwise false
      • getDataFileNameNotNull

        public String getDataFileNameNotNull()
        Return the data file name, falling back to FILE_NAME_DEFAULT and a suitable extension if the file name is blank
        Returns:
        the data file name, or a default file name if the data file name is null
        Since:
        19.11.0