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

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

@Repository(value="golfAdDao")
@Scope(value="singleton")
@Transactional(readOnly=true)
public class GolfAdDaoImpl
extends com.idega.core.persistence.impl.GenericDaoImpl
implements GolfAdDao


Field Summary
 
Fields inherited from interface is.idega.idegaweb.golf.data.dao.GolfAdDao
BEAN_NAME
 
Constructor Summary
GolfAdDaoImpl()
           
 
Method Summary
 Ad getAd(java.lang.Long id)
           
 java.util.List<Ad> getAds()
           
 java.util.List<Ad> getAds(java.lang.String category)
           
 AdSpace getAdSpace(java.lang.String name)
           
 java.util.List<AdSpace> getAdSpaces()
           
 java.util.List<AdSpace> getOpenAdSpaces()
           
 void removeAd(java.lang.Long id)
           
 void removeAdSpace(java.lang.String name)
           
 void storeAd(java.lang.Long id, java.lang.String name, java.lang.String url, java.lang.String imageUrl, java.lang.String flashUrl, java.lang.String category, java.util.List<AdSpace> adSpaces)
           
 void storeAdSpace(java.lang.String name, java.lang.String description, int width, int height, boolean clubSpace)
           
 
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

GolfAdDaoImpl

public GolfAdDaoImpl()
Method Detail

getAdSpaces

public java.util.List<AdSpace> getAdSpaces()
Specified by:
getAdSpaces in interface GolfAdDao

getOpenAdSpaces

public java.util.List<AdSpace> getOpenAdSpaces()
Specified by:
getOpenAdSpaces in interface GolfAdDao

getAdSpace

public AdSpace getAdSpace(java.lang.String name)
Specified by:
getAdSpace in interface GolfAdDao

removeAdSpace

@Transactional(readOnly=false)
public void removeAdSpace(java.lang.String name)
Specified by:
removeAdSpace in interface GolfAdDao

storeAdSpace

@Transactional(readOnly=false)
public void storeAdSpace(java.lang.String name,
                                       java.lang.String description,
                                       int width,
                                       int height,
                                       boolean clubSpace)
Specified by:
storeAdSpace in interface GolfAdDao

getAds

public java.util.List<Ad> getAds()
Specified by:
getAds in interface GolfAdDao

getAds

public java.util.List<Ad> getAds(java.lang.String category)
Specified by:
getAds in interface GolfAdDao

getAd

public Ad getAd(java.lang.Long id)
Specified by:
getAd in interface GolfAdDao

removeAd

@Transactional(readOnly=false)
public void removeAd(java.lang.Long id)
Specified by:
removeAd in interface GolfAdDao

storeAd

@Transactional(readOnly=false)
public void storeAd(java.lang.Long id,
                                  java.lang.String name,
                                  java.lang.String url,
                                  java.lang.String imageUrl,
                                  java.lang.String flashUrl,
                                  java.lang.String category,
                                  java.util.List<AdSpace> adSpaces)
Specified by:
storeAd in interface GolfAdDao


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