is.idega.idegaweb.golf.data.dao
Interface GolfPageDao

All Superinterfaces:
com.idega.core.persistence.GenericDao
All Known Implementing Classes:
GolfPageDaoImpl

public interface GolfPageDao
extends com.idega.core.persistence.GenericDao


Field Summary
static java.lang.String BEAN_NAME
           
 
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 interface com.idega.core.persistence.GenericDao
contains, createNamedQuery, find, flush, getQueryInline, getQueryNamed, getQueryNativeInline, getReference, getResultList, getResultListByInlineQuery, getSingleResult, getSingleResultByInlineQuery, merge, mergeRemove, persist, refresh, remove
 

Field Detail

BEAN_NAME

static final java.lang.String BEAN_NAME
See Also:
Constant Field Values
Method Detail

getGolfPages

java.util.List<GolfPageEntity> getGolfPages(java.lang.Integer clubId)
Returns golf pages having all their fields loaded.

Parameters:
clubId -
Returns:

getGolfPage

GolfPageEntity getGolfPage(java.lang.Integer pageId)

getLastPositionForClubPage

java.lang.Integer getLastPositionForClubPage(int clubId)
Returns the last positioned page position, if there is no page for this club returns -1.

Parameters:
clubId -
Returns:

removeGolfPageEntity

void removeGolfPageEntity(java.lang.Integer pageId)

storeGolfPage

GolfPageEntity storeGolfPage(java.lang.Integer clubId,
                             java.lang.Integer pageId,
                             java.lang.String headline,
                             java.lang.String body)


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