Class ExtendedFieldTypeDAO

  • All Implemented Interfaces:
    DAO
    Direct Known Subclasses:
    ExtendedFieldTypeDBDAO

    public abstract class ExtendedFieldTypeDAO
    extends java.lang.Object
    implements DAO
    Interface for creating and accessing extended fields in persistent storage.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ExtendedFieldTypeDAO()
      constructor used when creating singleton.
    • Constructor Detail

      • ExtendedFieldTypeDAO

        protected ExtendedFieldTypeDAO()
        constructor used when creating singleton. Do not call directly.
    • Method Detail

      • reset

        protected static void reset()
        Reset the DAO instance. Only for use from within tests.
      • exists

        public abstract boolean exists​(java.lang.Long aExtendedfieldtypeId)
        Tests if exists an ExtendedFieldType with the given ID.
        Parameters:
        aExtendedfieldtypeId - An id belonging to an ExtendedFieldType
        Returns:
        true, if there exists an ExtendedFieldType with the given ID, otherwise returns false.
      • read

        public abstract ExtendedFieldType read​(java.lang.Long aExtendedfieldtypeId)
        Read an ExtendedFieldType belonging to the given id.
        Parameters:
        aExtendedfieldtypeId - an id belonging to a ExtendedFieldType
        Returns:
        an ExtendedFieldType from belonging to the given id.
      • getInstance

        public static ExtendedFieldTypeDAO getInstance()
        If an instance exists, return it, otherwise instantiate one, and return it.
        Returns:
        the instance of this class.