is.idega.idegaweb.golf.handicap.business
Interface HandicapService
- All Superinterfaces:
- javax.ejb.EJBObject, com.idega.business.IBOService, java.rmi.Remote
- All Known Implementing Classes:
- HandicapServiceBean
public interface HandicapService
- extends com.idega.business.IBOService
Method Summary |
java.util.Collection<Field> |
getChildFields(Field field)
|
float |
getCourseRating(Field field,
TeeColor teeColor)
|
Field |
getField(java.lang.Object fieldPK)
|
Field |
getField(Union union)
|
java.util.Collection |
getFields()
|
java.util.Collection |
getFields(Union union)
|
java.util.Collection |
getFields(Union union,
boolean showChildFields)
|
java.util.Collection<Field> |
getFieldsPlayed(Member member)
|
float |
getHandicap(Member member)
|
float |
getHandicapBeforeDate(Member member,
java.sql.Date date)
|
float |
getHandicapDWR(float handicapBefore,
int totalPoints,
int numberOfHoles)
|
int |
getHandicapGroup(float handicap)
|
int |
getHandicapGroupLowerGrayValue(int group)
|
int |
getLength(Field field,
TeeColor teeColor)
|
int |
getPar(Field field,
TeeColor teeColor)
|
int |
getPointsDWR(int courseHandicap,
int par,
int holeHandicap,
int strokes)
|
int |
getPointsForPar(int holeHandicap,
int holePar,
int courseHandicap)
|
int |
getRealPoints(Scorecard scorecard,
float handicapBefore)
|
int |
getRealPoints(Scorecard scorecard,
Scorecard previousScorecard)
|
java.util.Collection<Scorecard> |
getScorecards(Member member,
java.sql.Date fromDate,
java.sql.Date toDate)
|
int |
getSlope(Field field,
TeeColor teeColor)
|
TeeColor |
getTeeColor(java.lang.Object teeColorPK)
|
TeeColor |
getTeeColor(java.lang.String memberId)
|
java.util.Map |
getTeeColorDWR(int fieldID,
java.lang.String gender)
|
java.lang.String |
getTeeColorId(java.lang.String memberId)
|
java.lang.String |
getTeeColorIdByPersonalId(java.lang.String memberId)
|
java.util.Collection<java.lang.String> |
getTeeColorIds(java.lang.String fieldPrimaryKey,
java.lang.String gender)
|
java.util.Collection<java.lang.String> |
getTeeColorIdsByMemberSSN(java.lang.String fieldPrimaryKey,
java.lang.String memberSSN)
|
java.lang.String |
getTeeColorName(TeeColor teeColor)
|
java.lang.String |
getTeeColorRGB(TeeColor teeColor)
|
java.util.Collection<TeeColor> |
getTeeColors(Field field,
java.lang.String gender)
|
java.util.Collection<TeeColor> |
getTeeColors(java.lang.String fieldPrimaryKey,
java.lang.String gender)
|
java.util.Collection |
getTees(Field field,
TeeColor teeColor,
int startHole,
int endHole)
|
java.util.Collection<TeeColor> |
getTeesPlayed(Member member)
|
boolean |
hasLegitimateHandicap(int memberID,
java.sql.Date date)
|
boolean |
hasLegitimateHandicap(Member member,
java.sql.Date date)
|
void |
storeFirstHandicap(Member member,
float handicap)
|
void |
storeHandicapCorrection(Member member,
java.sql.Timestamp timestamp,
float handicap)
|
void |
storeHandicapCorrection(Member member,
java.sql.Timestamp timestamp,
float handicap,
boolean yearlyUpdate)
|
void |
updateAllHandicaps()
|
void |
updateAllHandicaps(com.idega.util.IWTimestamp fromDate)
|
Methods inherited from interface com.idega.business.IBOService |
addActionListener, getIWApplicationContext, getLocalizedServiceDescription, getServiceDescription, initializeBean |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
updateAllHandicaps
void updateAllHandicaps()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.updateAllHandicaps()
updateAllHandicaps
void updateAllHandicaps(com.idega.util.IWTimestamp fromDate)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.updateAllHandicaps()
getScorecards
java.util.Collection<Scorecard> getScorecards(Member member,
java.sql.Date fromDate,
java.sql.Date toDate)
- Parameters:
memberID
- is EJBLocalObject.getPrimaryKey()
to filter by,
not null
;dateFrom
- is floor of Scorecard.getScorecardDate()
,
skipped if null
;dateTo
- is ceiling of Scorecard.getScorecardDate()
,
skipped if null
;
- Returns:
- entities by criteria or
Collections.emptyList()
on failure;
getFields
java.util.Collection getFields()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getFields()
getChildFields
java.util.Collection<Field> getChildFields(Field field)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getChildFields(is.idega.idegaweb.golf.entity.Field)
getFields
java.util.Collection getFields(Union union)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getFields()
getFields
java.util.Collection getFields(Union union,
boolean showChildFields)
- See Also:
HandicapServiceBean.getFields()
getField
Field getField(Union union)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getField(is.idega.idegaweb.golf.entity.Union)
getField
Field getField(java.lang.Object fieldPK)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getField(is.idega.idegaweb.golf.entity.Union)
getTeeColors
java.util.Collection<TeeColor> getTeeColors(Field field,
java.lang.String gender)
- Parameters:
field
- to search by, not null
;gender
- is one of 'M', 'F' or 'B', skipped if null
;
- Returns:
- entities by criteria or
Collections.emptyList()
on failure;
getTeeColorDWR
java.util.Map getTeeColorDWR(int fieldID,
java.lang.String gender)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getTeeColorDWR(int, java.lang.String)
getTees
java.util.Collection getTees(Field field,
TeeColor teeColor,
int startHole,
int endHole)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getTees(is.idega.idegaweb.golf.entity.Field, is.idega.idegaweb.golf.entity.TeeColor, int, int)
getSlope
int getSlope(Field field,
TeeColor teeColor)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getSlope(is.idega.idegaweb.golf.entity.Field, is.idega.idegaweb.golf.entity.TeeColor)
getCourseRating
float getCourseRating(Field field,
TeeColor teeColor)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getCourseRating(is.idega.idegaweb.golf.entity.Field, is.idega.idegaweb.golf.entity.TeeColor)
getPar
int getPar(Field field,
TeeColor teeColor)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getPar(is.idega.idegaweb.golf.entity.Field, is.idega.idegaweb.golf.entity.TeeColor)
getLength
int getLength(Field field,
TeeColor teeColor)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getLength(is.idega.idegaweb.golf.entity.Field, is.idega.idegaweb.golf.entity.TeeColor)
hasLegitimateHandicap
boolean hasLegitimateHandicap(Member member,
java.sql.Date date)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.hasLegitimateHandicap(is.idega.idegaweb.golf.entity.Member, java.sql.Date)
hasLegitimateHandicap
boolean hasLegitimateHandicap(int memberID,
java.sql.Date date)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.hasLegitimateHandicap(is.idega.idegaweb.golf.entity.Member, java.sql.Date)
getHandicapBeforeDate
float getHandicapBeforeDate(Member member,
java.sql.Date date)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getHandicapBeforeDate(is.idega.idegaweb.golf.entity.Member, java.sql.Date)
getHandicap
float getHandicap(Member member)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getHandicap(is.idega.idegaweb.golf.entity.Member)
getTeeColorRGB
java.lang.String getTeeColorRGB(TeeColor teeColor)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getTeeColorRGB(is.idega.idegaweb.golf.entity.TeeColor)
getTeeColorName
java.lang.String getTeeColorName(TeeColor teeColor)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getTeeColorName(is.idega.idegaweb.golf.entity.TeeColor)
getTeeColor
TeeColor getTeeColor(java.lang.Object teeColorPK)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getTeeColor(java.lang.Object)
storeFirstHandicap
void storeFirstHandicap(Member member,
float handicap)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.storeFirstHandicap(is.idega.idegaweb.golf.entity.Member, float)
storeHandicapCorrection
void storeHandicapCorrection(Member member,
java.sql.Timestamp timestamp,
float handicap)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.storeHandicapCorrection(is.idega.idegaweb.golf.entity.Member, java.sql.Timestamp, float)
storeHandicapCorrection
void storeHandicapCorrection(Member member,
java.sql.Timestamp timestamp,
float handicap,
boolean yearlyUpdate)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.storeHandicapCorrection(is.idega.idegaweb.golf.entity.Member, java.sql.Timestamp, float)
getRealPoints
int getRealPoints(Scorecard scorecard,
Scorecard previousScorecard)
throws java.sql.SQLException,
javax.ejb.FinderException,
java.rmi.RemoteException
- Throws:
java.sql.SQLException
javax.ejb.FinderException
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getRealPoints(is.idega.idegaweb.golf.entity.Scorecard, is.idega.idegaweb.golf.entity.Scorecard)
getRealPoints
int getRealPoints(Scorecard scorecard,
float handicapBefore)
throws java.sql.SQLException,
javax.ejb.FinderException,
java.rmi.RemoteException
- Throws:
java.sql.SQLException
javax.ejb.FinderException
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getRealPoints(is.idega.idegaweb.golf.entity.Scorecard, is.idega.idegaweb.golf.entity.Scorecard)
getHandicapDWR
float getHandicapDWR(float handicapBefore,
int totalPoints,
int numberOfHoles)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getHandicapDWR(float, int, int)
getPointsDWR
int getPointsDWR(int courseHandicap,
int par,
int holeHandicap,
int strokes)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getPointsDWR(int, int, int, int)
getHandicapGroup
int getHandicapGroup(float handicap)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getHandicapGroup(float)
getHandicapGroupLowerGrayValue
int getHandicapGroupLowerGrayValue(int group)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
- See Also:
HandicapServiceBean.getHandicapGroupLowerGrayValue(int)
getTeesPlayed
java.util.Collection<TeeColor> getTeesPlayed(Member member)
- See Also:
HandicapServiceBean.getTeesPlayed(is.idega.idegaweb.golf.entity.Member)
getTeeColor
TeeColor getTeeColor(java.lang.String memberId)
- Parameters:
memberId
- is EJBLocalObject.getPrimaryKey()
to search highest TeeColor
for,
not null
;
- Returns:
TeeColor
of highest result for given Member
or null
on failure;
getTeeColorId
java.lang.String getTeeColorId(java.lang.String memberId)
- Parameters:
memberId
- is EJBLocalObject.getPrimaryKey()
to search by, not
null
;
- Returns:
EJBLocalObject.getPrimaryKey()
or CoreConstants.EMPTY
on failure;
getTeeColorIdByPersonalId
java.lang.String getTeeColorIdByPersonalId(java.lang.String memberId)
- Parameters:
memberId
- is EJBLocalObject.getPrimaryKey()
to search by, not
null
;
- Returns:
EJBLocalObject.getPrimaryKey()
or CoreConstants.EMPTY
on failure;
getFieldsPlayed
java.util.Collection<Field> getFieldsPlayed(Member member)
- See Also:
HandicapServiceBean.getFieldsPlayed(is.idega.idegaweb.golf.entity.Member)
getPointsForPar
int getPointsForPar(int holeHandicap,
int holePar,
int courseHandicap)
- See Also:
HandicapServiceBean.getPointsForPar(int, int, int)
getTeeColors
java.util.Collection<TeeColor> getTeeColors(java.lang.String fieldPrimaryKey,
java.lang.String gender)
- Parameters:
fieldPrimaryKey
- is EJBLocalObject.getPrimaryKey()
to search by,
skipped if null
;gender
- is Member.getGender()
, skipped if null
;
- Returns:
- entities by criteria or
Collections.emptyList()
on failure;
getTeeColorIds
java.util.Collection<java.lang.String> getTeeColorIds(java.lang.String fieldPrimaryKey,
java.lang.String gender)
- Parameters:
fieldPrimaryKey
- is EJBLocalObject.getPrimaryKey()
to search by,
skipped if null
;gender
- is Member.getGender()
, skipped if null
;
- Returns:
- is
Collection
of EJBLocalObject.getPrimaryKey()
selected by criteria or Collections.emptyList()
on failure;
getTeeColorIdsByMemberSSN
java.util.Collection<java.lang.String> getTeeColorIdsByMemberSSN(java.lang.String fieldPrimaryKey,
java.lang.String memberSSN)
- Parameters:
fieldPrimaryKey
- is EJBLocalObject.getPrimaryKey()
to search by,
skipped if null
;memberSSN
- is Member.getSSN()
(a social security number
which is also a personal id), not null
;
- Returns:
- is
Collection
of EJBLocalObject.getPrimaryKey()
selected by criteria or Collections.emptyList()
on failure;
Copyright © 2000-2014 idega software. All Rights Reserved.