is.idega.idegaweb.golf.entity
Class StrokeHomeImpl

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

public class StrokeHomeImpl
extends com.idega.data.IDOFactory
implements StrokeHome

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.idega.data.IDOFactory
dataSource
 
Constructor Summary
StrokeHomeImpl()
           
 
Method Summary
 Stroke create()
           
 Stroke createLegacy()
           
 Stroke findByPrimaryKey(int id)
           
 Stroke findByPrimaryKey(java.lang.Object pk)
           
 Stroke findByPrimaryKeyLegacy(int id)
           
 java.util.Collection findByScorecard(Scorecard scorecard)
           
 Stroke findByScorecardAndTee(Scorecard scorecard, Tee tee)
           
 Stroke findFirstByScorecard(Scorecard scorecard)
           
 int getCountDifferenceByMember(int member, int difference, java.lang.String criteria, java.sql.Date fromDate, java.sql.Date toDate)
           
 int getCountOfHolesPlayedByMember(int member, java.sql.Date fromDate, java.sql.Date toDate)
           
 int getCountOfHolesPlayedByScorecard(Scorecard scorecard)
           
 int getDifference(Scorecard scorecard)
           
 java.lang.Class getEntityInterfaceClass()
           
 double getMemberAverage(int member, int holePar, java.sql.Date fromDate, java.sql.Date toDate)
           
 double getPointsAverage(int holeNumber, Tournament tour, TournamentRound round, float handicapFrom, float handicapTo)
           
 int getRoundPar(Scorecard scorecard)
           
 int getStrokeCount(Scorecard scorecard)
           
 double getStrokesAverage(int holeNumber, Tournament tour, TournamentRound round, float handicapFrom, float handicapTo)
           
 int getSumOfStrokesByMember(int member, java.sql.Date fromDate, java.sql.Date toDate)
           
 
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

StrokeHomeImpl

public StrokeHomeImpl()
Method Detail

getEntityInterfaceClass

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

create

public Stroke create()
              throws javax.ejb.CreateException
Specified by:
create in interface StrokeHome
Throws:
javax.ejb.CreateException

findByPrimaryKey

public Stroke findByPrimaryKey(java.lang.Object pk)
                        throws javax.ejb.FinderException
Specified by:
findByPrimaryKey in interface StrokeHome
Throws:
javax.ejb.FinderException

createLegacy

public Stroke createLegacy()
Specified by:
createLegacy in interface StrokeHome

findByPrimaryKey

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

findByPrimaryKeyLegacy

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

findByScorecard

public java.util.Collection findByScorecard(Scorecard scorecard)
                                     throws javax.ejb.FinderException
Specified by:
findByScorecard in interface StrokeHome
Throws:
javax.ejb.FinderException

getCountDifferenceByMember

public int getCountDifferenceByMember(int member,
                                      int difference,
                                      java.lang.String criteria,
                                      java.sql.Date fromDate,
                                      java.sql.Date toDate)
                               throws com.idega.data.IDOException
Specified by:
getCountDifferenceByMember in interface StrokeHome
Throws:
com.idega.data.IDOException

getDifference

public int getDifference(Scorecard scorecard)
                  throws com.idega.data.IDOException
Specified by:
getDifference in interface StrokeHome
Throws:
com.idega.data.IDOException

getCountOfHolesPlayedByMember

public int getCountOfHolesPlayedByMember(int member,
                                         java.sql.Date fromDate,
                                         java.sql.Date toDate)
                                  throws com.idega.data.IDOException
Specified by:
getCountOfHolesPlayedByMember in interface StrokeHome
Throws:
com.idega.data.IDOException

getCountOfHolesPlayedByScorecard

public int getCountOfHolesPlayedByScorecard(Scorecard scorecard)
                                     throws com.idega.data.IDOException
Specified by:
getCountOfHolesPlayedByScorecard in interface StrokeHome
Throws:
com.idega.data.IDOException

findFirstByScorecard

public Stroke findFirstByScorecard(Scorecard scorecard)
                            throws javax.ejb.FinderException
Specified by:
findFirstByScorecard in interface StrokeHome
Throws:
javax.ejb.FinderException

findByScorecardAndTee

public Stroke findByScorecardAndTee(Scorecard scorecard,
                                    Tee tee)
                             throws javax.ejb.FinderException
Specified by:
findByScorecardAndTee in interface StrokeHome
Throws:
javax.ejb.FinderException

getSumOfStrokesByMember

public int getSumOfStrokesByMember(int member,
                                   java.sql.Date fromDate,
                                   java.sql.Date toDate)
                            throws com.idega.data.IDOException
Specified by:
getSumOfStrokesByMember in interface StrokeHome
Throws:
com.idega.data.IDOException

getRoundPar

public int getRoundPar(Scorecard scorecard)
                throws com.idega.data.IDOException
Specified by:
getRoundPar in interface StrokeHome
Throws:
com.idega.data.IDOException

getStrokeCount

public int getStrokeCount(Scorecard scorecard)
                   throws com.idega.data.IDOException
Specified by:
getStrokeCount in interface StrokeHome
Throws:
com.idega.data.IDOException

getMemberAverage

public double getMemberAverage(int member,
                               int holePar,
                               java.sql.Date fromDate,
                               java.sql.Date toDate)
                        throws com.idega.data.IDOException
Specified by:
getMemberAverage in interface StrokeHome
Throws:
com.idega.data.IDOException

getStrokesAverage

public double getStrokesAverage(int holeNumber,
                                Tournament tour,
                                TournamentRound round,
                                float handicapFrom,
                                float handicapTo)
                         throws com.idega.data.IDOException
Specified by:
getStrokesAverage in interface StrokeHome
Throws:
com.idega.data.IDOException

getPointsAverage

public double getPointsAverage(int holeNumber,
                               Tournament tour,
                               TournamentRound round,
                               float handicapFrom,
                               float handicapTo)
                        throws com.idega.data.IDOException
Specified by:
getPointsAverage in interface StrokeHome
Throws:
com.idega.data.IDOException


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