is.idega.idegaweb.golf.data.dao.impl
Class MissedTeeTimesAmountEntityDaoImpl

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

@Repository(value="missedTeeTimesAmountEntityDao")
@Transactional(readOnly=false)
@Scope(value="singleton")
public class MissedTeeTimesAmountEntityDaoImpl
extends com.idega.core.persistence.impl.GenericDaoImpl
implements MissedTeeTimesAmountEntityDao

Implementation of MissedTeeTimesAmountEntityDao

You can report about problems to: Martynas StakÄ—

Version:
1.0.0 Apr 24, 2014
Author:
Martynas StakÄ—

Field Summary
 
Fields inherited from interface is.idega.idegaweb.golf.data.dao.MissedTeeTimesAmountEntityDao
BEAN_NAME
 
Constructor Summary
MissedTeeTimesAmountEntityDaoImpl()
           
 
Method Summary
 java.util.List<MissedTeeTimesAmountEntity> findAll()
           
 java.util.List<MissedTeeTimesAmountEntity> findAllByMember(java.lang.Long memberId)
           
 java.util.List<MissedTeeTimesAmountEntity> findAllByUnion(java.lang.Long unionId)
           
 MissedTeeTimesAmountEntity findAllByUnionAndMember(java.lang.Long unionId, java.lang.Long memberId)
           
 MissedTeeTimesAmountEntity findById(java.lang.Long id)
           
protected  TeeTimeBusiness getTeeTimeBusiness()
           
protected  TeeTimeHome getTeeTimeHome()
           
 void remove(java.lang.Long id)
          Removes entity from data source
 java.util.List<MissedTeeTimesAmountEntity> update()
          Creates MissedTeeTimesAmountEntitys by existing TeeTimes data.
 MissedTeeTimesAmountEntity update(java.lang.Long id, java.lang.Long unionId, java.lang.Long memberId, java.lang.Long amount)
          Updates or creates entity in data source;
 MissedTeeTimesAmountEntity update(MissedTeeTimesAmountEntity entity)
          Updates or creates entity in data source;
 MissedTeeTimesAmountEntity update(java.lang.String id, java.lang.String unionId, java.lang.String memberId, java.lang.Long amount)
          Updates or creates entity in data source;
 
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

MissedTeeTimesAmountEntityDaoImpl

public MissedTeeTimesAmountEntityDaoImpl()
Method Detail

update

public java.util.List<MissedTeeTimesAmountEntity> update()
Description copied from interface: MissedTeeTimesAmountEntityDao

Creates MissedTeeTimesAmountEntitys by existing TeeTimes data.

Specified by:
update in interface MissedTeeTimesAmountEntityDao
Returns:
updated or created entities or Collections.emptyList() on failure;

update

public MissedTeeTimesAmountEntity update(java.lang.String id,
                                         java.lang.String unionId,
                                         java.lang.String memberId,
                                         java.lang.Long amount)
Description copied from interface: MissedTeeTimesAmountEntityDao

Updates or creates entity in data source;

Specified by:
update in interface MissedTeeTimesAmountEntityDao
Parameters:
id - is MissedTeeTimesAmountEntity.getId(), new entity will be created on null;
unionId - is EJBLocalObject.getPrimaryKey(), not null when new entity is created;
memberId - is EJBLocalObject.getPrimaryKey(), not null when new entity is created;
amount - is number of TeeTimes missed, skipped if null;
Returns:
update or created entity or null on failure;

update

public MissedTeeTimesAmountEntity update(java.lang.Long id,
                                         java.lang.Long unionId,
                                         java.lang.Long memberId,
                                         java.lang.Long amount)
Description copied from interface: MissedTeeTimesAmountEntityDao

Updates or creates entity in data source;

Specified by:
update in interface MissedTeeTimesAmountEntityDao
Parameters:
id - is MissedTeeTimesAmountEntity.getId(), new entity will be created on null;
unionId - is EJBLocalObject.getPrimaryKey(), not null when new entity is created;
memberId - is EJBLocalObject.getPrimaryKey(), not null when new entity is created;
amount - is number of TeeTimes missed, skipped if null;
Returns:
update or created entity or null on failure;

update

public MissedTeeTimesAmountEntity update(MissedTeeTimesAmountEntity entity)
Description copied from interface: MissedTeeTimesAmountEntityDao

Updates or creates entity in data source;

Specified by:
update in interface MissedTeeTimesAmountEntityDao
Parameters:
entity - to create or update, not null;
Returns:
update or created entity or null on failure;

findById

public MissedTeeTimesAmountEntity findById(java.lang.Long id)
Specified by:
findById in interface MissedTeeTimesAmountEntityDao
Parameters:
id - is WarningMessageEntity.getId() to search by, not null;
Returns:
entity by id or null on failure;

findAll

public java.util.List<MissedTeeTimesAmountEntity> findAll()
Specified by:
findAll in interface MissedTeeTimesAmountEntityDao
Returns:
all entities in data source or Collections.emptyList() on failure;

findAllByUnion

public java.util.List<MissedTeeTimesAmountEntity> findAllByUnion(java.lang.Long unionId)
Specified by:
findAllByUnion in interface MissedTeeTimesAmountEntityDao
Parameters:
unionId - is EJBLocalObject.getPrimaryKey() to search by, not null;
Returns:
entities by criteria or Collections.emptyList() on failure;

findAllByMember

public java.util.List<MissedTeeTimesAmountEntity> findAllByMember(java.lang.Long memberId)
Specified by:
findAllByMember in interface MissedTeeTimesAmountEntityDao
Parameters:
memberId - is EJBLocalObject.getPrimaryKey() to search by, not null;
Returns:
entities by criteria or Collections.emptyList() on failure;

findAllByUnionAndMember

public MissedTeeTimesAmountEntity findAllByUnionAndMember(java.lang.Long unionId,
                                                          java.lang.Long memberId)
Specified by:
findAllByUnionAndMember in interface MissedTeeTimesAmountEntityDao
Parameters:
unionId - is EJBLocalObject.getPrimaryKey() to search by, not null;
memberId - is EJBLocalObject.getPrimaryKey() to search by, not null;
Returns:
entities by criteria or Collections.emptyList() on failure;

remove

public void remove(java.lang.Long id)
Description copied from interface: MissedTeeTimesAmountEntityDao

Removes entity from data source

Specified by:
remove in interface MissedTeeTimesAmountEntityDao
Parameters:
id - to remove entity by, not null;

getTeeTimeBusiness

protected TeeTimeBusiness getTeeTimeBusiness()

getTeeTimeHome

protected TeeTimeHome getTeeTimeHome()


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