Class RenderingTemplateRepositoryImpl

java.lang.Object
de.digitalcollections.cudami.server.backend.impl.database.AbstractPagingAndSortingRepositoryImpl
de.digitalcollections.cudami.server.backend.impl.jdbi.view.RenderingTemplateRepositoryImpl
All Implemented Interfaces:
RenderingTemplateRepository

@Repository
public class RenderingTemplateRepositoryImpl
extends AbstractPagingAndSortingRepositoryImpl
implements RenderingTemplateRepository
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String MAPPING_PREFIX  
    static java.lang.String TABLE_ALIAS  
    static java.lang.String TABLE_NAME  
  • Constructor Summary

    Constructors
    Constructor Description
    RenderingTemplateRepositoryImpl​(org.jdbi.v3.core.Jdbi dbi)  
  • Method Summary

    Modifier and Type Method Description
    long count()  
    de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.view.RenderingTemplate> find​(de.digitalcollections.model.api.paging.PageRequest pageRequest)  
    de.digitalcollections.model.impl.view.RenderingTemplate findOne​(java.util.UUID uuid)  
    protected java.util.List<java.lang.String> getAllowedOrderByFields()  
    protected java.lang.String getColumnName​(java.lang.String modelProperty)  
    de.digitalcollections.model.impl.view.RenderingTemplate save​(de.digitalcollections.model.impl.view.RenderingTemplate template)  
    de.digitalcollections.model.impl.view.RenderingTemplate update​(de.digitalcollections.model.impl.view.RenderingTemplate template)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • RenderingTemplateRepositoryImpl

      public RenderingTemplateRepositoryImpl​(org.jdbi.v3.core.Jdbi dbi)
  • Method Details

    • count

      public long count()
      Specified by:
      count in interface RenderingTemplateRepository
    • find

      public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.view.RenderingTemplate> find​(de.digitalcollections.model.api.paging.PageRequest pageRequest)
      Specified by:
      find in interface RenderingTemplateRepository
    • findOne

      public de.digitalcollections.model.impl.view.RenderingTemplate findOne​(java.util.UUID uuid)
      Specified by:
      findOne in interface RenderingTemplateRepository
    • getAllowedOrderByFields

      protected java.util.List<java.lang.String> getAllowedOrderByFields()
      Specified by:
      getAllowedOrderByFields in class AbstractPagingAndSortingRepositoryImpl
      Returns:
      model properties names that are applicable for sorting, will be mapped to database column names using @see #getColumnName
    • getColumnName

      protected java.lang.String getColumnName​(java.lang.String modelProperty)
      Specified by:
      getColumnName in class AbstractPagingAndSortingRepositoryImpl
      Parameters:
      modelProperty - name of model property passed as String, e.g. "lastModified"
      Returns:
      full qualified column name as used in sql queries ("last_modified" or e.g. "w.last_modified" if prefix used in queries)
    • save

      public de.digitalcollections.model.impl.view.RenderingTemplate save​(de.digitalcollections.model.impl.view.RenderingTemplate template)
      Specified by:
      save in interface RenderingTemplateRepository
    • update

      public de.digitalcollections.model.impl.view.RenderingTemplate update​(de.digitalcollections.model.impl.view.RenderingTemplate template)
      Specified by:
      update in interface RenderingTemplateRepository