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

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

@Repository(value="blacklistLogDao")
@Transactional(readOnly=false)
@Scope(value="singleton")
public class BlacklistLogDaoImpl
extends com.idega.core.persistence.impl.GenericDaoImpl
implements BlacklistLogDao

Implementation for BlacklistLogDao.

You can report about problems to: Martynas StakÄ—

Version:
1.0.0 Jun 9, 2014
Author:
Martynas StakÄ—

Field Summary
 
Fields inherited from interface is.idega.idegaweb.golf.data.dao.BlacklistLogDao
BEAN_NAME
 
Constructor Summary
BlacklistLogDaoImpl()
           
 
Method Summary
 java.util.List<MemberHistory> findAll(int memberId, int unionId)
           
 MemberHistory findById(int id)
           
 MemberHistory findLatest(int memberId, int unionId)
           
protected  MemberHome getMemberHome()
           
protected  UnionHome getUnionHome()
           
 MemberHistory update(MemberHistory entity)
          Updates or creates entity in data source;
 MemberHistory update(java.lang.String message, int memberId, int unionId)
          Updates or creates entity in data source;
 MemberHistory update(java.lang.String message, java.lang.String personalId, int unionId)
          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

BlacklistLogDaoImpl

public BlacklistLogDaoImpl()
Method Detail

update

public MemberHistory update(MemberHistory entity)
Description copied from interface: BlacklistLogDao

Updates or creates entity in data source;

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

update

public MemberHistory update(java.lang.String message,
                            int memberId,
                            int unionId)
Description copied from interface: BlacklistLogDao

Updates or creates entity in data source;

Specified by:
update in interface BlacklistLogDao
Parameters:
message - a random string with reason why Member is added or removed to blacklist, skipped if null;
memberId - is primary of Member which is added or removed from blacklist, not null;
Returns:
created/updated entity or null on failure;

update

public MemberHistory update(java.lang.String message,
                            java.lang.String personalId,
                            int unionId)
Description copied from interface: BlacklistLogDao

Updates or creates entity in data source;

Specified by:
update in interface BlacklistLogDao
Parameters:
message - a random string with reason why Member is added or removed to blacklist, skipped if null;
personalId - is Member.getSSN() of Member who should be added or removed from blacklist, not null;
Returns:
created/updated entity or null on failure;

findById

public MemberHistory findById(int id)
Specified by:
findById in interface BlacklistLogDao
Parameters:
id - is MemberHistory.getId() to search by, not null;
Returns:
entity by id or null on failure;

findAll

public java.util.List<MemberHistory> findAll(int memberId,
                                             int unionId)
Specified by:
findAll in interface BlacklistLogDao
Parameters:
memberId - is EJBLocalObject.getPrimaryKey() to get entities for, not null;
Returns:
entities by criteria or Collections.emptyList() on failure;

findLatest

public MemberHistory findLatest(int memberId,
                                int unionId)
Specified by:
findLatest in interface BlacklistLogDao
Parameters:
memberId - is EJBLocalObject.getPrimaryKey() to get entities for, not null;
Returns:
entities by criteria or null on failure;

getUnionHome

protected UnionHome getUnionHome()

getMemberHome

protected MemberHome getMemberHome()


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