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

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

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

Data access object for MissedTeeTimesAmountEntity

You can report about problems to: Martynas StakÄ—

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

Field Summary
static java.lang.String BEAN_NAME
           
 
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)
           
 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 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

update

java.util.List<MissedTeeTimesAmountEntity> update()

Creates MissedTeeTimesAmountEntitys by existing TeeTimes data.

Returns:
updated or created entities or Collections.emptyList() on failure;

update

MissedTeeTimesAmountEntity update(MissedTeeTimesAmountEntity entity)

Updates or creates entity in data source;

Parameters:
entity - to create or update, not null;
Returns:
update or created entity or null on failure;

update

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;

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

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;

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;

findById

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

findAll

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

findAllByUnion

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

findAllByMember

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

findAllByUnionAndMember

MissedTeeTimesAmountEntity findAllByUnionAndMember(java.lang.Long unionId,
                                                   java.lang.Long memberId)
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

void remove(java.lang.Long id)

Removes entity from data source

Parameters:
id - to remove entity by, not null;


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