Interface ClassPKRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<ClassPK,​Long>, org.springframework.data.jpa.repository.JpaRepository<ClassPK,​Long>, org.springframework.data.repository.PagingAndSortingRepository<ClassPK,​Long>, org.springframework.data.repository.query.QueryByExampleExecutor<ClassPK>, org.springframework.data.repository.Repository<ClassPK,​Long>

    @Repository
    public interface ClassPKRepository
    extends org.springframework.data.jpa.repository.JpaRepository<ClassPK,​Long>
    The Interface ClassPKRepository.
    Author:
    Matija Obreza
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ClassPK findByShortName​(String shortName)
      Find by short name.
      ClassPK getByClassname​(String classname)
      Gets the ClassPK by classname.
      Long getClassPkId​(String classname)
      Gets the class pk id.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findBy, findOne
    • Method Detail

      • getByClassname

        ClassPK getByClassname​(String classname)
        Gets the ClassPK by classname.
        Parameters:
        classname - the fully qualified class name
        Returns:
        the ClassPK
      • findByShortName

        ClassPK findByShortName​(String shortName)
        Find by short name.
        Parameters:
        shortName - the short name
        Returns:
        the class PK
      • getClassPkId

        @Query("select cpk.id from ClassPK cpk where cpk.classname = ?1")
        Long getClassPkId​(String classname)
        Gets the class pk id.
        Parameters:
        classname - the classname
        Returns:
        the class pk id