is.idega.idegaweb.golf.data.dao
Class GolfPageDaoImpl

java.lang.Object
  extended by com.idega.core.persistence.impl.GenericDaoImpl
      extended by is.idega.idegaweb.golf.data.dao.GolfPageDaoImpl
All Implemented Interfaces:
com.idega.core.persistence.GenericDao, GolfPageDao

@Repository(value="golfPageDao")
@Scope(value="singleton")
public class GolfPageDaoImpl
extends com.idega.core.persistence.impl.GenericDaoImpl
implements GolfPageDao


Field Summary
 
Fields inherited from interface is.idega.idegaweb.golf.data.dao.GolfPageDao
BEAN_NAME
 
Constructor Summary
GolfPageDaoImpl()
           
 
Method Summary
 GolfPageEntity getGolfPage(java.lang.Integer pageId)
           
 java.util.List<GolfPageEntity> getGolfPages(java.lang.Integer clubId)
          Returns golf pages having all their fields loaded.
 java.lang.Integer getLastPositionForClubPage(int clubId)
          Returns the last positioned page position, if there is no page for this club returns -1.
 void removeGolfPageEntity(java.lang.Integer pageId)
           
 GolfPageEntity storeGolfPage(java.lang.Integer clubId, java.lang.Integer pageId, java.lang.String headline, java.lang.String body)
           
 
Methods inherited from class com.idega.core.persistence.impl.GenericDaoImpl
contains, createNamedQuery, createNewQueryInline, createNewQueryNamed, createNewQueryNativeInline, find, flush, getDaoFunctions, getEntityManager, getLogger, getQueryInline, getQueryNamed, getQueryNativeInline, getReference, getResultList, getResultListByInlineQuery, getSingleResult, getSingleResultByInlineQuery, merge, mergeRemove, persist, refresh, remove, setEntityManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.idega.core.persistence.GenericDao
contains, createNamedQuery, find, flush, getQueryInline, getQueryNamed, getQueryNativeInline, getReference, getResultList, getResultListByInlineQuery, getSingleResult, getSingleResultByInlineQuery, merge, mergeRemove, persist, refresh, remove
 

Constructor Detail

GolfPageDaoImpl

public GolfPageDaoImpl()
Method Detail

getGolfPages

@Transactional(readOnly=true)
public java.util.List<GolfPageEntity> getGolfPages(java.lang.Integer clubId)
Description copied from interface: GolfPageDao
Returns golf pages having all their fields loaded.

Specified by:
getGolfPages in interface GolfPageDao
Returns:

getGolfPage

@Transactional(readOnly=true)
public GolfPageEntity getGolfPage(java.lang.Integer pageId)
Specified by:
getGolfPage in interface GolfPageDao

getLastPositionForClubPage

@Transactional(readOnly=true)
public java.lang.Integer getLastPositionForClubPage(int clubId)
Description copied from interface: GolfPageDao
Returns the last positioned page position, if there is no page for this club returns -1.

Specified by:
getLastPositionForClubPage in interface GolfPageDao
Returns:

removeGolfPageEntity

@Transactional(readOnly=false)
public void removeGolfPageEntity(java.lang.Integer pageId)
Specified by:
removeGolfPageEntity in interface GolfPageDao

storeGolfPage

@Transactional(readOnly=false)
public GolfPageEntity storeGolfPage(java.lang.Integer clubId,
                                                  java.lang.Integer pageId,
                                                  java.lang.String headline,
                                                  java.lang.String body)
Specified by:
storeGolfPage in interface GolfPageDao


Copyright © 2000-2014 idega software. All Rights Reserved.