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

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

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

Data access object for WarningMessageEntity

You can report about problems to: Martynas StakÄ—

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

Field Summary
static java.lang.String BEAN_NAME
           
 
Method Summary
 WarningMessageEntity find(java.lang.Long severty, java.lang.Long unionId)
           
 WarningMessageEntity find(java.lang.Long severty, java.lang.String unionId)
           
 java.util.List<WarningMessageEntity> findAll()
           
 java.util.List<WarningMessageEntity> findAll(java.lang.Long unionId)
           
 WarningMessageEntity findById(java.lang.Long id)
           
 WarningMessageEntity getWarningMessageWithGreatestSeverity(Union union)
           
 void remove(java.lang.Long id)
          Removes entity from data source
 WarningMessageEntity update(java.lang.Long id, java.lang.String message, java.lang.Long severty, java.lang.Long unionId)
          Updates or creates entity in data source;
 WarningMessageEntity update(java.lang.Long id, java.lang.String message, java.lang.Long severty, java.lang.String unionId)
          Updates or creates entity in data source;
 WarningMessageEntity update(WarningMessageEntity entity)
          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

WarningMessageEntity update(WarningMessageEntity 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

WarningMessageEntity update(java.lang.Long id,
                            java.lang.String message,
                            java.lang.Long severty,
                            java.lang.String unionId)

Updates or creates entity in data source;

Parameters:
id - is WarningMessageEntity.getId(), new entity is created if null;
message - is WarningMessageEntity.getMessage(), skipped if null;
severty - is WarningMessageEntity.getSeverity() is number of message importance, not null;
unionId - is EJBLocalObject.getPrimaryKey() of Union this message is intended for, not null;
Returns:
update or created entity or null on failure;

update

WarningMessageEntity update(java.lang.Long id,
                            java.lang.String message,
                            java.lang.Long severty,
                            java.lang.Long unionId)

Updates or creates entity in data source;

Parameters:
id - is WarningMessageEntity.getId(), new entity is created if null;
message - is WarningMessageEntity.getMessage(), skipped if null;
severty - is WarningMessageEntity.getSeverity() is number of message importance, not null;
unionId - is EJBLocalObject.getPrimaryKey() of Union this message is intended for, not null;
Returns:
update or created entity or null on failure;

findById

WarningMessageEntity 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<WarningMessageEntity> findAll()
Returns:
all entities in data source or Collections.emptyList() on failure;

findAll

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

find

WarningMessageEntity find(java.lang.Long severty,
                          java.lang.Long unionId)
Parameters:
severty - is WarningMessageEntity.getSeverity() or it is importance of the WarningMessageEntity, not null;
unionId - is EJBLocalObject.getPrimaryKey() to which WarningMessageEntity is connected;
Returns:
unique WarningMessageEntity or null on failure;

find

WarningMessageEntity find(java.lang.Long severty,
                          java.lang.String unionId)
Parameters:
severty - is WarningMessageEntity.getSeverity() or it is importance of the WarningMessageEntity, not null;
unionId - is EJBLocalObject.getPrimaryKey() to which WarningMessageEntity is connected;
Returns:
unique WarningMessageEntity or null on failure;

remove

void remove(java.lang.Long id)

Removes entity from data source

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

getWarningMessageWithGreatestSeverity

WarningMessageEntity getWarningMessageWithGreatestSeverity(Union union)
Parameters:
union - to get all WarningMessageEntitys for, not null;
Returns:
WarningMessageEntity with greatest WarningMessageEntity.getSeverity() or null on failure;


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