is.idega.idegaweb.golf.entity
Class TournamentHomeImpl

java.lang.Object
  extended by com.idega.data.IDOFactory
      extended by is.idega.idegaweb.golf.entity.TournamentHomeImpl
All Implemented Interfaces:
com.idega.data.IDOHome, TournamentHome, java.io.Serializable, javax.ejb.EJBLocalHome

public class TournamentHomeImpl
extends com.idega.data.IDOFactory
implements TournamentHome

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.idega.data.IDOFactory
dataSource
 
Constructor Summary
TournamentHomeImpl()
           
 
Method Summary
 Tournament create()
           
 Tournament createLegacy()
           
 java.util.Collection<Tournament> findAll(java.sql.Date startingDateFrom, java.sql.Date startingDateTo, java.util.Collection<java.lang.String> unionIds, java.lang.Integer indexFrom, java.lang.Integer entitiesAmount)
           
 java.util.Collection<Tournament> findAll(java.util.Date startingDateFrom, java.util.Date startingDateTo, java.util.Collection<java.lang.String> unionIds, java.lang.Integer indexFrom, java.lang.Integer entitiesAmount)
           
 int findAmount(java.sql.Date startingDateFrom, java.sql.Date startingDateTo, java.util.Collection<java.lang.String> unionIds)
           
 int findAmount(java.util.Date startingDateFrom, java.util.Date startingDateTo, java.util.Collection<java.lang.String> unionIds)
           
 Tournament findByPrimaryKey(int id)
           
 Tournament findByPrimaryKey(java.lang.Object pk)
           
 Tournament findByPrimaryKeyLegacy(int id)
           
 java.util.Collection<Tournament> findByPrimaryKeys(java.util.Collection<?> primaryKeys)
           
 java.util.Collection findByUnionIdAndView(int unionID, java.lang.String view, com.idega.util.IWTimestamp start, com.idega.util.IWTimestamp end)
           
 java.lang.Class getEntityInterfaceClass()
           
 
Methods inherited from class com.idega.data.IDOFactory
createEntity, createIDO, decode, decode, findByPrimaryKeyCollection, findByPrimaryKeyIDO, findByPrimaryKeyIDO, findSubTypeByPrimaryKeyIDO, findSubTypesByPrimaryKeysIDO, getDatasource, getEntityBeanClass, getEntityCollectionForPrimaryKeys, getEntitySetForPrimaryKeys, getHomesForSubtypes, getHomesForSubtypes, idoCheckInPooledEntity, idoCheckOutPooledEntity, idoCreate, idoCreate, idoFindByPrimaryKey, idoFindByPrimaryKey, idoFindByPrimaryKey, idoFindByPrimaryKey, idoFindByPrimaryKey, idoFindByPrimaryKey, remove, setDatasource, setDatasource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.idega.data.IDOHome
createIDO, decode, decode, findByPrimaryKeyCollection, findByPrimaryKeyIDO, getDatasource, getEntityCollectionForPrimaryKeys, setDatasource, setDatasource
 
Methods inherited from interface javax.ejb.EJBLocalHome
remove
 

Constructor Detail

TournamentHomeImpl

public TournamentHomeImpl()
Method Detail

getEntityInterfaceClass

public java.lang.Class getEntityInterfaceClass()
Specified by:
getEntityInterfaceClass in class com.idega.data.IDOFactory

create

public Tournament create()
                  throws javax.ejb.CreateException
Specified by:
create in interface TournamentHome
Throws:
javax.ejb.CreateException

findByPrimaryKey

public Tournament findByPrimaryKey(java.lang.Object pk)
Specified by:
findByPrimaryKey in interface TournamentHome
Parameters:
pk - is EJBLocalObject.getPrimaryKey(), not null;
Returns:
entity or null on failure;

createLegacy

public Tournament createLegacy()
Specified by:
createLegacy in interface TournamentHome

findByPrimaryKey

public Tournament findByPrimaryKey(int id)
                            throws javax.ejb.FinderException
Specified by:
findByPrimaryKey in interface TournamentHome
Throws:
javax.ejb.FinderException

findByPrimaryKeyLegacy

public Tournament findByPrimaryKeyLegacy(int id)
                                  throws java.sql.SQLException
Specified by:
findByPrimaryKeyLegacy in interface TournamentHome
Throws:
java.sql.SQLException

findByPrimaryKeys

public java.util.Collection<Tournament> findByPrimaryKeys(java.util.Collection<?> primaryKeys)
Specified by:
findByPrimaryKeys in interface TournamentHome
Parameters:
primaryKeys - is Collection of EJBLocalObject.getPrimaryKey()s, not null;
Returns:
entities by primary keys or Collections.emptyList()

findAll

public java.util.Collection<Tournament> findAll(java.sql.Date startingDateFrom,
                                                java.sql.Date startingDateTo,
                                                java.util.Collection<java.lang.String> unionIds,
                                                java.lang.Integer indexFrom,
                                                java.lang.Integer entitiesAmount)
Specified by:
findAll in interface TournamentHome
Parameters:
startingDateFrom - is floor of Tournament.getStartTime(), skipped if null;
startingDateTo - is ceiling of Tournament.getStartTime(), skipped if null;
unionIds - is Collection of EJBLocalObject.getPrimaryKey()s to filter by, skipped if null;
indexFrom - is number of record to start fetching entities, skipped in null;
entitiesAmount - is number of entities to fetch from data source, skipped if null;
Returns:
entities by criteria of Collections.emptyList() on failure;

findAmount

public int findAmount(java.sql.Date startingDateFrom,
                      java.sql.Date startingDateTo,
                      java.util.Collection<java.lang.String> unionIds)
Specified by:
findAmount in interface TournamentHome
Parameters:
startingDateFrom - is floor of Tournament.getStartTime(), skipped if null;
startingDateTo - is ceiling of Tournament.getStartTime(), skipped if null;
unionIds - is Collection of EJBLocalObject.getPrimaryKey()s to filter by, skipped if null;
Returns:
number of entities or 0 on failure;

findAmount

public int findAmount(java.util.Date startingDateFrom,
                      java.util.Date startingDateTo,
                      java.util.Collection<java.lang.String> unionIds)
Specified by:
findAmount in interface TournamentHome
Parameters:
startingDateFrom - is floor of Tournament.getStartTime(), skipped if null;
startingDateTo - is ceiling of Tournament.getStartTime(), skipped if null;
unionIds - is Collection of EJBLocalObject.getPrimaryKey()s to filter by, skipped if null;
Returns:
number of entities or 0 on failure;

findAll

public java.util.Collection<Tournament> findAll(java.util.Date startingDateFrom,
                                                java.util.Date startingDateTo,
                                                java.util.Collection<java.lang.String> unionIds,
                                                java.lang.Integer indexFrom,
                                                java.lang.Integer entitiesAmount)
Specified by:
findAll in interface TournamentHome
Parameters:
startingDateFrom - is floor of Tournament.getStartTime(), skipped if null;
startingDateTo - is ceiling of Tournament.getStartTime(), skipped if null;
unionIds - is Collection of EJBLocalObject.getPrimaryKey()s to filter by, skipped if null;
indexFrom - is number of record to start fetching entities, skipped in null;
entitiesAmount - is number of entities to fetch from data source, skipped if null;
Returns:
entities by criteria of Collections.emptyList() on failure;

findByUnionIdAndView

public java.util.Collection findByUnionIdAndView(int unionID,
                                                 java.lang.String view,
                                                 com.idega.util.IWTimestamp start,
                                                 com.idega.util.IWTimestamp end)
                                          throws javax.ejb.FinderException
Specified by:
findByUnionIdAndView in interface TournamentHome
Throws:
javax.ejb.FinderException


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