Class AbstractMockDao<T,​K extends java.io.Serializable>

    • Constructor Detail

      • AbstractMockDao

        public AbstractMockDao()
    • Method Detail

      • getId

        protected abstract K getId​(T entity)
      • generateId

        protected abstract void generateId​(T entity)
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • lock

        public void lock()
        Description copied from interface: OnmsDao
        This is used to lock the table in order to implement upsert type operations
        Specified by:
        lock in interface OnmsDao<T,​K extends java.io.Serializable>
      • initialize

        public void initialize​(java.lang.Object obj)
        Specified by:
        initialize in interface OnmsDao<T,​K extends java.io.Serializable>
      • flush

        public void flush()
        Specified by:
        flush in interface OnmsDao<T,​K extends java.io.Serializable>
      • clear

        public void clear()
        Specified by:
        clear in interface OnmsDao<T,​K extends java.io.Serializable>
      • countAll

        public int countAll()
        Specified by:
        countAll in interface OnmsDao<T,​K extends java.io.Serializable>
      • delete

        public void delete​(T entity)
        Specified by:
        delete in interface OnmsDao<T,​K extends java.io.Serializable>
      • delete

        public void delete​(K key)
        Specified by:
        delete in interface OnmsDao<T,​K extends java.io.Serializable>
      • findAll

        public java.util.List<T> findAll()
        Specified by:
        findAll in interface OnmsDao<T,​K extends java.io.Serializable>
      • findMatching

        public java.util.List<T> findMatching​(Criteria criteria)
        Specified by:
        findMatching in interface OnmsDao<T,​K extends java.io.Serializable>
      • countMatching

        public int countMatching​(Criteria onmsCrit)
        Specified by:
        countMatching in interface OnmsDao<T,​K extends java.io.Serializable>
      • get

        public T get​(K id)
        Specified by:
        get in interface OnmsDao<T,​K extends java.io.Serializable>
      • load

        public T load​(K id)
        Specified by:
        load in interface OnmsDao<T,​K extends java.io.Serializable>
      • save

        public K save​(T entity)
        Specified by:
        save in interface OnmsDao<T,​K extends java.io.Serializable>
      • saveOrUpdate

        public void saveOrUpdate​(T entity)
        Specified by:
        saveOrUpdate in interface OnmsDao<T,​K extends java.io.Serializable>
      • update

        public void update​(T entity)
        Specified by:
        update in interface OnmsDao<T,​K extends java.io.Serializable>
      • getCategoryDao

        protected CategoryDao getCategoryDao()
      • getEventDao

        protected EventDao getEventDao()
      • getAlarmDao

        protected AlarmDao getAlarmDao()
      • getNodeDao

        protected NodeDao getNodeDao()