Class ClientRefData

java.lang.Object
org.apache.cayenne.PersistentObject
org.apache.cayenne.BaseDataObject
org.apache.cayenne.CayenneDataObject
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:
  • Field Details

    • DATA_TYPE_CSV

      public static final String DATA_TYPE_CSV
      The data type for CSV
      See Also:
    • DATA_TYPE_JSON

      public static final String DATA_TYPE_JSON
      The data type for JSON
      See Also:
    • DATA_TYPE_XML

      public static final String DATA_TYPE_XML
      The data type for XML
      See Also:
    • 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:
  • Constructor Details

    • ClientRefData

      public ClientRefData()
  • Method Details

    • 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