is.idega.idegaweb.golf.entity
Class TournamentBMPBean

java.lang.Object
  extended by com.idega.data.GenericEntity
      extended by is.idega.idegaweb.golf.entity.TournamentBMPBean
All Implemented Interfaces:
com.idega.data.EntityRepresentation, com.idega.data.IDOEntity, com.idega.data.IDOEntityBean, com.idega.data.IDOLegacyEntity, com.idega.data.MetaDataCapable, Tournament, java.io.Serializable, java.lang.Comparable<com.idega.data.IDOEntity>, javax.ejb.EJBLocalObject, javax.ejb.EnterpriseBean, javax.ejb.EntityBean

public class TournamentBMPBean
extends com.idega.data.GenericEntity
implements Tournament

Version:
1.2
Author:
Tryggvi Larusson
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.idega.data.GenericEntity
com.idega.data.GenericEntity.ResultHelper
 
Field Summary
static java.lang.String COLUMN_NAME_START_TIME
           
static java.lang.String COLUMN_NAME_UNION_ID
           
static int ONLINE_PAYMENT_DISABLED
           
static int ONLINE_PAYMENT_OPTIONAL
           
static int ONLINE_PAYMENT_REQUIRED
           
 
Fields inherited from class com.idega.data.GenericEntity
_lobColumnName, COLUMN_VALUE_FALSE, COLUMN_VALUE_TRUE, MANY_TO_MANY, MANY_TO_ONE, ONE_TO_MANY, ONE_TO_ONE, UNIQUE_ID_COLUMN_NAME
 
Fields inherited from interface com.idega.data.IDOLegacyEntity
STATE_DELETED, STATE_IN_SYNCH_WITH_DATASTORE, STATE_NEW, STATE_NEW_AND_NOT_IN_SYNCH_WITH_DATASTORE, STATE_NOT_IN_SYNCH_WITH_DATASTORE
 
Constructor Summary
TournamentBMPBean()
           
 
Method Summary
 void delete()
          Delete the tournament if there is no registered data to it - Throws an SQLException if there is data (scorecards) registered to it
 void deleteAllData()
          Deletes all data including scorecards,registrations etc.
 void deleteWithAllData()
          Deletes the tournament with all data including scorecards,registrations etc.
 java.util.Collection<java.lang.Object> ejbFindAll(java.sql.Date startingDateFrom, java.sql.Date startingDateTo, java.util.Collection<java.lang.String> unionIds, java.lang.Integer indexFrom, java.lang.Integer entitiesAmount)
           
 int ejbFindAmount(java.sql.Date startingDateFrom, java.sql.Date startingDateTo, java.util.Collection<java.lang.String> unionIds)
           
 java.util.Collection ejbFindByUnionIdAndView(int unionID, java.lang.String view, com.idega.util.IWTimestamp start, com.idega.util.IWTimestamp end)
           
 Field getChildField()
           
 java.sql.Timestamp getClosedDate()
           
 java.sql.Timestamp getCreationDate()
           
 int getDismissal(int member_id)
           
 int getDismissal(Member member)
           
 java.sql.Timestamp getEndTime()
           
 java.lang.String getEntityName()
           
 java.lang.String getExtraText()
           
 float getFemaleMaxHandicap()
           
 Field getField()
           
 int getFieldId()
           
 java.sql.Timestamp getFirstRegistrationDate()
           
 Tournament[] getForthcomingTournaments()
           
 boolean getIfGroupTournament()
           
 boolean getIfOpenTournament()
           
 boolean getIfRegistrationOnline()
           
 int getInterval()
           
 boolean getIsClosed()
           
 java.sql.Timestamp getLastRegistrationDate()
           
 float getMaxHandicap()
           
 int getMinHandicap()
           
 Tournament[] getMostRecentTournaments(int number)
           
 java.lang.String getName()
           
 int getNumberInGroup()
           
 int getNumberInTournamentGroup()
           
 int getNumberOfDays()
           
 int getNumberOfHoles()
           
 int getNumberOfRounds()
           
 int getOnlinePayment()
           
 int getPosition(int member_id)
           
 int getPosition(Member member)
           
protected  com.idega.data.IDOQuery getQuery(boolean amount, java.sql.Date startingDateFrom, java.sql.Date startingDateTo, java.util.Collection<java.lang.String> unionIds)
           
 java.lang.String getReferee()
           
 int getRegistrationFee()
           
 java.lang.String getRegistrationForm()
           
 java.lang.String getRegistrationType()
           
 java.sql.Timestamp getStartTime()
           
 TeeColor[] getTeeColors()
           
 TournamentForm getTournamentForm()
           
 int getTournamentFormId()
           
 int getTournamentGroupId(int member_id)
           
 int getTournamentGroupId(Member member)
           
 TournamentGroup[] getTournamentGroups()
           
 int getTournamentMemberUnionId(java.sql.Connection conn, int member_id)
           
 int getTournamentMemberUnionId(int member_id)
          Deprecated.  
 int getTournamentMemberUnionId(Member member)
           
 TournamentRound[] getTournamentRounds()
           
 TournamentType getTournamentType()
           
 int getTournamentTypeId()
           
 Union getUnion()
           
 int getUnionId()
           
 void initializeAttributes()
           
 void insert()
           
 boolean isCBACorrected()
           
 boolean isDirectRegistration()
           
 boolean isOnlinePaymentDisabled()
           
 boolean isOnlinePaymentOtional()
           
 boolean isOnlinePaymentRequired()
           
 boolean isTournamentFinished()
           
 boolean isTournamentOngoing()
           
 boolean isUnionTournament()
           
 void setCBACorrected(boolean CBACorrected)
           
 void setChildField(Field field)
           
 void setChildFieldId(java.lang.Integer id)
           
 void setClosedDate(java.sql.Timestamp closedDate)
           
 void setCreationDate(java.sql.Timestamp creationDate)
           
 void setDefaultValues()
           
 void setDismissal(int member_id, int dismissalID)
           
 void setDismissal(Member member, int dismissalID)
           
 void setEndTime(java.sql.Timestamp endTime)
           
 void setExtraText(java.lang.String text)
           
 void setField(Field field)
           
 void setFieldId(java.lang.Integer field_id)
           
 void setFirstRegistrationDate(java.sql.Timestamp firstRegistrationDate)
           
 void setGroupTournament(boolean ifGroupTournament)
           
 void setInterval(int interval)
           
 void setIsClosed(boolean isClosed)
           
 void setIsDirectRegistration(boolean is_direct)
           
 void setLastRegistrationDate(java.sql.Timestamp registrationDate)
           
 void setMaxFemaleHandicap(float maxFemaleHandicap)
           
 void setMaxHandicap(float maxHandicap)
           
 void setMinHandicap(int minHandicap)
           
 void setName(java.lang.String name)
           
 void setNumberInGroup(int number_in_group)
           
 void setNumberInTournamentGroup(int number)
           
 void setNumberOfDays(int number)
           
 void setNumberOfHoles(int holes)
           
 void setNumberOfRounds(int number)
           
 void setOnlinePayment(int onlinePayment)
           
 void setOpenTournament(boolean ifOpenTournament)
           
 void setPosition(int member_id, int position)
           
 void setPosition(Member member, int position)
           
 void setReferee(java.lang.String referee)
           
 void setRegistrationFee(int fee)
           
 void setRegistrationForm(java.lang.String form)
           
 void setRegistrationOnline(boolean registration_online)
           
 void setRegistrationType(java.lang.String type)
           
 void setStartTime(java.sql.Timestamp startTime)
           
 void setTournamentForm(TournamentForm form)
           
 void setTournamentFormID(int form_id)
           
 void setTournamentType(TournamentType type)
           
 void setTournamentTypeID(int type_id)
           
 void setUnion(Union union)
           
 void setUnionId(int unionID)
           
 void setUnionId(java.lang.Integer unionID)
           
 void setUnionTournament(boolean unionTournament)
           
 
Methods inherited from class com.idega.data.GenericEntity
addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addColumnName, addColumnName, addColumnName, addIndex, addIndex, addIndex, addLanguageAttribute, addManyToManyRelationShip, addManyToManyRelationShip, addManyToManyRelationShip, addManyToManyRelationShip, addManyToManyRelationShip, addManyToOneRelationship, addManyToOneRelationship, addMetaData, addMetaData, addMetaDataRelationship, addOneToOneRelationship, addOneToOneRelationship, addRelationship, addTo, addTo, addTo, addTo, addTo, addTo, addTo, addTo, addToTree, addTreeRelationShip, addUniqueIDColumn, afterInitializeAttributes, beforeInitializeAttributes, clear, clearMetaDataVectors, columnsHaveChanged, compareTo, constructArray, debug, decode, decode, delete, deleteMetaData, deleteMultiple, deleteMultiple, doInsertInCreate, ejbActivate, ejbCreate, ejbCreateIDO, ejbFindByPrimaryKey, ejbFindByPrimaryKeyCollection, ejbFindByPrimaryKeyIDO, ejbHomeCreateIDO, ejbLoad, ejbPassivate, ejbPostCreate, ejbPostCreateIDO, ejbRemove, ejbStore, empty, equals, equals, executeUpdate, fillColumn, findAll, findAll, findAll, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumnDescendingOrdered, findAllByColumnDescendingOrdered, findAllByColumnEquals, findAllByColumnEquals, findAllByColumnEquals, findAllByColumnEquals, findAllByColumnEqualsOrdered, findAllByColumnEqualsOrdered, findAllByColumnEqualsOrdered, findAllByColumnOrdered, findAllByColumnOrdered, findAllByColumnOrdered, findAllByColumnOrdered, findAllDescendingOrdered, findAllOrdered, findAssociated, findAssociatedOrdered, findByPrimaryKey, findRelated, findRelated, findRelated, findRelatedIDs, findRelatedIDs, findRelatedIDs, findReverseRelated, freeConnection, freeConnection, generateAndSetUniqueIDForIDO, getAttribute, getAttributes, getAverage, getBeanCache, getBlobColumnValue, getBooleanColumnValue, getBooleanColumnValue, getCachedEntities, getChanges, getCharColumnValue, getCharColumnValue, getColumn, getColumnNames, getColumnOutputStream, getColumnValue, getConnection, getConnection, getDatasource, getDateColumnValue, getDateTableValue, getDebugLogLevel, getDefaultLogLevel, getDoubleColumnValue, getDoubleColumnValue, getDoubleTableValue, getEditableColumnNames, getEJBLocalHome, getEJBLocalHome, getEmptyBlob, getEntityDefinition, getEntityInstance, getEntityInstance, getEntityState, getErrorLogLevel, getFieldValue, getFindReverseRelatedSQLQuery, getFloatColumnValue, getFloatColumnValue, getGenericEntityDefinition, getHandle, getID, getIDColumnName, getIDInteger, getIDOContainer, getIDOHome, getIDOUtil, getIfAutoIncrement, getIfEditable, getIfInsertStartData, getIfNullable, getIfUnique, getIfVisible, getInputStreamColumnValue, getIntColumnValue, getIntColumnValue, getIntegerColumnValue, getInterfaceClass, getIntTableValue, getIntTableValue, getIWMainApplication, getKeyValueSQLString, getLanguageIDColumnName, getLoadedEntityBeans, getLobColumnName, getLogger, getLongName, getMaxColumnValue, getMaxColumnValue, getMaxLength, getMetaData, getMetaDataAttributes, getMetaDataDelete, getMetaDataIds, getMetaDataInsert, getMetaDataTypes, getMetaDataUpdate, getNameOfMiddleTable, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecordsForStringColumn, getNumberOfRecordsRelated, getNumberOfRecordsReverseRelated, getPK, getPrimaryKey, getPrimaryKeyClass, getPrimaryKeyValue, getPrimaryKeyValueSQLString, getRealValue, getRealValue, getRelationShipClass, getRelationShipType, getSimpleExplicitlySynchronizedEntityEntity, getStaticInstance, getStaticInstance, getStaticInstanceIDO, getStaticInstanceIDO, getStorageClass, getStorageClassName, getStorageClassType, getStringColumnValue, getTableName, getTimeColumnValue, getTimestampColumnValue, getUniqueId, getUniqueIdColumnName, getValue, getVisibleColumnNames, hasAutoIncrement, hasBeenSetNull, hashCode, hasLobColumn, hasMetaDataRelationship, hasUniqueIDColumn, idoAddTo, idoAddTo, idoAddTo, idoAddTo, idoAddTo, idoExecuteGlobalUpdate, idoExecuteTableUpdate, idoFindAllIDsByColumnBySQL, idoFindAllIDsByColumnOrderedBySQL, idoFindAllIDsByColumnOrderedBySQL, idoFindAllIDsByColumnOrderedBySQL, idoFindAllIDsByColumnOrderedBySQL, idoFindAllIDsByColumnsBySQL, idoFindAllIDsByColumnsBySQL, idoFindAllIDsByColumnsBySQL, idoFindAllIDsBySQL, idoFindAllIDsOrderedBySQL, idoFindByPrimaryKeyCollection, idoFindIDsBySQL, idoFindIDsBySQL, idoFindOnePKByColumnBySQL, idoFindOnePKByQuery, idoFindOnePKByQuery, idoFindOnePKBySQL, idoFindOnePKByUniqueId, idoFindPKsByMetaData, idoFindPKsByQuery, idoFindPKsByQuery, idoFindPKsByQuery, idoFindPKsByQuery, idoFindPKsByQuery, idoFindPKsByQuery, idoFindPKsByQueryIgnoringCacheAndUsingLoadBalance, idoFindPKsByQueryIgnoringCacheAndUsingLoadBalance, idoFindPKsByQueryUsingLoadBalance, idoFindPKsBySQL, idoFindPKsBySQL, idoFindPKsBySQL, idoFindPKsBySQL, idoFindPKsBySQLIgnoringCache, idoFindPKsBySQLIgnoringCache, idoGetAverage, idoGetNumberOfRecords, idoGetNumberOfRecords, idoGetNumberOfRecords, idoGetNumberOfRecords, idoGetRelatedEntities, idoGetRelatedEntities, idoGetRelatedEntities, idoGetRelatedEntities, idoGetRelatedEntitiesBySQL, idoGetRelatedEntitiesOrderedByColumn, idoGetRelatedEntityPKs, idoGetRelatedEntityPKs, idoGetRelatedEntityPKs, idoGetReverseRelatedEntities, idoGetValueFromSingleValueResultSet, idoGetValueFromSingleValueResultSet, idoQuery, idoQuery, idoQueryGetSelect, idoQueryGetSelectCount, idoQueryTable, idoRemoveFrom, idoRemoveFrom, idoRemoveFrom, idoRemoveFrom, idoRemoveRelationsTo, idoRemoveRelationTo, idoSelectPKQuery, idoSelectQuery, initializeColumnValue, insert, insertForCreate, insertMetaData, insertStartData, isColumnValueNotEmpty, isDebugActive, isIdColumnValueNotEmpty, isIdentical, isIdentical, isInSynchWithDatastore, isNull, isPrimaryKey, isPrimaryKeyColumn, isStoredValueNull, log, log, log, logConfig, logDebug, logError, logSevere, logSQL, logWarning, metaDataHasChanged, metaDataHasChanged, moveChildrenToCurrent, preEjbLoad, remove, removeAllMetaData, removeFrom, removeFrom, removeFrom, removeFrom, removeFrom, removeFrom, removeFrom, removeFromColumn, removeMetaData, renameMetaData, renameMetaData, reverseRemoveFrom, setAsPrimaryKey, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumnAsNull, setDatasource, setDatasource, setEditable, setEJBLocalHome, setEntityContext, setEntityState, setGenericEntityDefinition, setID, setID, setLongName, setMaxLength, setMetaData, setMetaData, setMetaDataAttributes, setNullable, setPrimaryKey, setPrimaryKey, setRelationShipClassName, setRelationShipType, setStorageClass, setStorageClassName, setStorageClassType, setStringColumn, setToInsertStartData, setUnique, setUniqueId, setValue, setValue, setVisible, store, toString, unsetEntityContext, update, update, updateMetaData
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.idega.data.IDOLegacyEntity
addMetaData, addMetaData, addTo, addTo, addTo, addTo, addTo, addTo, addTo, addTreeRelationShip, clear, columnsHaveChanged, constructArray, delete, deleteMetaData, deleteMultiple, deleteMultiple, empty, fillColumn, findAll, findAll, findAll, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumn, findAllByColumnDescendingOrdered, findAllByColumnDescendingOrdered, findAllByColumnEquals, findAllByColumnEquals, findAllByColumnEquals, findAllByColumnEquals, findAllByColumnEqualsOrdered, findAllByColumnEqualsOrdered, findAllByColumnEqualsOrdered, findAllByColumnOrdered, findAllByColumnOrdered, findAllByColumnOrdered, findAllByColumnOrdered, findAllDescendingOrdered, findAllOrdered, findAssociated, findAssociatedOrdered, findByPrimaryKey, findRelated, findRelated, findRelatedIDs, findRelatedIDs, findReverseRelated, freeConnection, freeConnection, getBlobColumnValue, getBooleanColumnValue, getCharColumnValue, getColumn, getColumnNames, getColumnOutputStream, getColumnValue, getConnection, getConnection, getDatasource, getDoubleColumnValue, getEditableColumnNames, getEmptyBlob, getEntityState, getFloatColumnValue, getID, getIDColumnName, getIDInteger, getIfEditable, getIfInsertStartData, getIfNullable, getIfUnique, getIfVisible, getInputStreamColumnValue, getIntColumnValue, getIntegerColumnValue, getIntTableValue, getLobColumnName, getLongName, getMaxColumnValue, getMaxColumnValue, getMaxLength, getMetaDataDelete, getMetaDataIds, getMetaDataInsert, getMetaDataUpdate, getNameOfMiddleTable, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecords, getNumberOfRecordsRelated, getNumberOfRecordsReverseRelated, getPrimaryKeyValue, getRelationShipClass, getRelationShipType, getStorageClassName, getStorageClassType, getStringColumnValue, getTableName, getVisibleColumnNames, hasBeenSetNull, hasLobColumn, hasMetaDataRelationship, insert, insertMetaData, isInSynchWithDatastore, isNull, isPrimaryKey, metaDataHasChanged, metaDataHasChanged, removeFrom, removeFrom, removeFrom, removeFrom, removeFrom, removeFromColumn, removeMetaData, reverseRemoveFrom, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setColumn, setDatasource, setEntityState, setID, setID, setLongName, setMaxLength, setNullable, setRelationShipClassName, setRelationShipType, setStorageClassName, setStorageClassType, setStringColumn, setToInsertStartData, setUnique, setVisible, toString, update, update, updateMetaData
 
Methods inherited from interface com.idega.data.IDOEntity
decode, decode, getEntityDefinition, store
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.idega.data.MetaDataCapable
getMetaData, getMetaDataAttributes, getMetaDataTypes, renameMetaData, renameMetaData, setMetaData, setMetaData, setMetaDataAttributes
 

Field Detail

ONLINE_PAYMENT_REQUIRED

public static final int ONLINE_PAYMENT_REQUIRED
See Also:
Constant Field Values

ONLINE_PAYMENT_OPTIONAL

public static final int ONLINE_PAYMENT_OPTIONAL
See Also:
Constant Field Values

ONLINE_PAYMENT_DISABLED

public static final int ONLINE_PAYMENT_DISABLED
See Also:
Constant Field Values

COLUMN_NAME_START_TIME

public static final java.lang.String COLUMN_NAME_START_TIME
See Also:
Constant Field Values

COLUMN_NAME_UNION_ID

public static final java.lang.String COLUMN_NAME_UNION_ID
See Also:
Constant Field Values
Constructor Detail

TournamentBMPBean

public TournamentBMPBean()
Method Detail

initializeAttributes

public void initializeAttributes()
Specified by:
initializeAttributes in class com.idega.data.GenericEntity

setDefaultValues

public void setDefaultValues()
Specified by:
setDefaultValues in interface com.idega.data.IDOLegacyEntity
Overrides:
setDefaultValues in class com.idega.data.GenericEntity

getEntityName

public java.lang.String getEntityName()
Specified by:
getEntityName in interface com.idega.data.IDOLegacyEntity
Specified by:
getEntityName in class com.idega.data.GenericEntity

setName

public void setName(java.lang.String name)
Specified by:
setName in interface com.idega.data.IDOLegacyEntity
Specified by:
setName in interface Tournament
Overrides:
setName in class com.idega.data.GenericEntity
See Also:
setName(java.lang.String)

getName

public java.lang.String getName()
Specified by:
getName in interface com.idega.data.IDOLegacyEntity
Specified by:
getName in interface Tournament
Overrides:
getName in class com.idega.data.GenericEntity
See Also:
getName()

setMinHandicap

public void setMinHandicap(int minHandicap)
Specified by:
setMinHandicap in interface Tournament
See Also:
setMinHandicap(int)

getMinHandicap

public int getMinHandicap()
Specified by:
getMinHandicap in interface Tournament
See Also:
getMinHandicap()

setMaxHandicap

public void setMaxHandicap(float maxHandicap)
Specified by:
setMaxHandicap in interface Tournament
See Also:
setMaxHandicap(float)

getMaxHandicap

public float getMaxHandicap()
Specified by:
getMaxHandicap in interface Tournament
See Also:
getMaxHandicap()

setMaxFemaleHandicap

public void setMaxFemaleHandicap(float maxFemaleHandicap)
Specified by:
setMaxFemaleHandicap in interface Tournament
See Also:
setMaxFemaleHandicap(float)

getFemaleMaxHandicap

public float getFemaleMaxHandicap()
Specified by:
getFemaleMaxHandicap in interface Tournament
See Also:
getFemaleMaxHandicap()

setRegistrationForm

public void setRegistrationForm(java.lang.String form)
Specified by:
setRegistrationForm in interface Tournament
See Also:
setRegistrationForm(java.lang.String)

getRegistrationForm

public java.lang.String getRegistrationForm()
Specified by:
getRegistrationForm in interface Tournament
See Also:
getRegistrationForm()

setRegistrationType

public void setRegistrationType(java.lang.String type)
Specified by:
setRegistrationType in interface Tournament
See Also:
setRegistrationType(java.lang.String)

getRegistrationType

public java.lang.String getRegistrationType()
Specified by:
getRegistrationType in interface Tournament
See Also:
getRegistrationType()

setTournamentTypeID

public void setTournamentTypeID(int type_id)
Specified by:
setTournamentTypeID in interface Tournament
See Also:
setTournamentTypeID(int)

setTournamentType

public void setTournamentType(TournamentType type)
Specified by:
setTournamentType in interface Tournament
See Also:
setTournamentType(is.idega.idegaweb.golf.entity.TournamentType)

getTournamentType

public TournamentType getTournamentType()
                                 throws java.sql.SQLException
Specified by:
getTournamentType in interface Tournament
Throws:
java.sql.SQLException
See Also:
getTournamentType()

getTournamentTypeId

public int getTournamentTypeId()
Specified by:
getTournamentTypeId in interface Tournament
See Also:
getTournamentTypeId()

setTournamentFormID

public void setTournamentFormID(int form_id)
Specified by:
setTournamentFormID in interface Tournament
See Also:
setTournamentFormID(int)

setRegistrationOnline

public void setRegistrationOnline(boolean registration_online)
Specified by:
setRegistrationOnline in interface Tournament
See Also:
setRegistrationOnline(boolean)

getIfRegistrationOnline

public boolean getIfRegistrationOnline()
Specified by:
getIfRegistrationOnline in interface Tournament
See Also:
getIfRegistrationOnline()

setTournamentForm

public void setTournamentForm(TournamentForm form)
Specified by:
setTournamentForm in interface Tournament
See Also:
setTournamentForm(is.idega.idegaweb.golf.entity.TournamentForm)

getTournamentForm

public TournamentForm getTournamentForm()
                                 throws java.sql.SQLException
Specified by:
getTournamentForm in interface Tournament
Throws:
java.sql.SQLException
See Also:
getTournamentForm()

getTournamentFormId

public int getTournamentFormId()
Specified by:
getTournamentFormId in interface Tournament
See Also:
getTournamentFormId()

setUnion

public void setUnion(Union union)
Specified by:
setUnion in interface Tournament
See Also:
setUnion(is.idega.idegaweb.golf.entity.Union)

getUnion

public Union getUnion()
               throws java.sql.SQLException
Specified by:
getUnion in interface Tournament
Throws:
java.sql.SQLException
See Also:
getUnion()

setUnionId

public void setUnionId(java.lang.Integer unionID)
Specified by:
setUnionId in interface Tournament
See Also:
setUnionId(java.lang.Integer)

setUnionId

public void setUnionId(int unionID)
Specified by:
setUnionId in interface Tournament
See Also:
setUnionId(java.lang.Integer)

getUnionId

public int getUnionId()
Specified by:
getUnionId in interface Tournament
See Also:
getUnionId()

setFieldId

public void setFieldId(java.lang.Integer field_id)
Specified by:
setFieldId in interface Tournament
See Also:
setFieldId(java.lang.Integer)

getFieldId

public int getFieldId()
Specified by:
getFieldId in interface Tournament
See Also:
getFieldId()

setField

public void setField(Field field)
Specified by:
setField in interface Tournament
See Also:
setField(is.idega.idegaweb.golf.entity.Field)

setChildField

public void setChildField(Field field)
Specified by:
setChildField in interface Tournament
See Also:
setChildField(is.idega.idegaweb.golf.entity.Field)

setChildFieldId

public void setChildFieldId(java.lang.Integer id)
Specified by:
setChildFieldId in interface Tournament
See Also:
setChildFieldId(java.lang.Integer)

getField

public Field getField()
Specified by:
getField in interface Tournament
See Also:
getField()

getChildField

public Field getChildField()
Specified by:
getChildField in interface Tournament
See Also:
getChildField()

setCreationDate

public void setCreationDate(java.sql.Timestamp creationDate)
Specified by:
setCreationDate in interface Tournament
See Also:
setCreationDate(java.sql.Timestamp)

getCreationDate

public java.sql.Timestamp getCreationDate()
Specified by:
getCreationDate in interface Tournament
See Also:
getCreationDate()

setLastRegistrationDate

public void setLastRegistrationDate(java.sql.Timestamp registrationDate)
Specified by:
setLastRegistrationDate in interface Tournament
See Also:
setLastRegistrationDate(java.sql.Timestamp)

getLastRegistrationDate

public java.sql.Timestamp getLastRegistrationDate()
Specified by:
getLastRegistrationDate in interface Tournament
See Also:
getLastRegistrationDate()

setFirstRegistrationDate

public void setFirstRegistrationDate(java.sql.Timestamp firstRegistrationDate)
Specified by:
setFirstRegistrationDate in interface Tournament
See Also:
setFirstRegistrationDate(java.sql.Timestamp)

getFirstRegistrationDate

public java.sql.Timestamp getFirstRegistrationDate()
Specified by:
getFirstRegistrationDate in interface Tournament
See Also:
getFirstRegistrationDate()

setStartTime

public void setStartTime(java.sql.Timestamp startTime)
Specified by:
setStartTime in interface Tournament
See Also:
setStartTime(java.sql.Timestamp)

getStartTime

public java.sql.Timestamp getStartTime()
Specified by:
getStartTime in interface Tournament
See Also:
getStartTime()

setEndTime

public void setEndTime(java.sql.Timestamp endTime)
Specified by:
setEndTime in interface Tournament
See Also:
setEndTime(java.sql.Timestamp)

getEndTime

public java.sql.Timestamp getEndTime()
Specified by:
getEndTime in interface Tournament
See Also:
getEndTime()

setNumberOfRounds

public void setNumberOfRounds(int number)
Specified by:
setNumberOfRounds in interface Tournament
See Also:
setNumberOfRounds(int)

getNumberOfRounds

public int getNumberOfRounds()
Specified by:
getNumberOfRounds in interface Tournament
See Also:
getNumberOfRounds()

setNumberOfDays

public void setNumberOfDays(int number)
Specified by:
setNumberOfDays in interface Tournament
See Also:
setNumberOfDays(int)

getNumberOfDays

public int getNumberOfDays()
Specified by:
getNumberOfDays in interface Tournament
See Also:
getNumberOfDays()

setRegistrationFee

public void setRegistrationFee(int fee)
Specified by:
setRegistrationFee in interface Tournament
See Also:
setRegistrationFee(int)

getRegistrationFee

public int getRegistrationFee()
Specified by:
getRegistrationFee in interface Tournament
See Also:
getRegistrationFee()

setGroupTournament

public void setGroupTournament(boolean ifGroupTournament)
Specified by:
setGroupTournament in interface Tournament
See Also:
setGroupTournament(boolean)

getIfGroupTournament

public boolean getIfGroupTournament()
Specified by:
getIfGroupTournament in interface Tournament
See Also:
getIfGroupTournament()

setOpenTournament

public void setOpenTournament(boolean ifOpenTournament)
Specified by:
setOpenTournament in interface Tournament
See Also:
setOpenTournament(boolean)

getIfOpenTournament

public boolean getIfOpenTournament()
Specified by:
getIfOpenTournament in interface Tournament
See Also:
getIfOpenTournament()

getTournamentRounds

public TournamentRound[] getTournamentRounds()
                                      throws java.sql.SQLException
Specified by:
getTournamentRounds in interface Tournament
Throws:
java.sql.SQLException
See Also:
getTournamentRounds()

getTournamentGroups

public TournamentGroup[] getTournamentGroups()
                                      throws java.sql.SQLException
Specified by:
getTournamentGroups in interface Tournament
Throws:
java.sql.SQLException
See Also:
getTournamentGroups()

setNumberOfHoles

public void setNumberOfHoles(int holes)
Specified by:
setNumberOfHoles in interface Tournament
See Also:
setNumberOfHoles(int)

getNumberOfHoles

public int getNumberOfHoles()
Specified by:
getNumberOfHoles in interface Tournament
See Also:
getNumberOfHoles()

setExtraText

public void setExtraText(java.lang.String text)
Specified by:
setExtraText in interface Tournament
See Also:
setExtraText(java.lang.String)

getExtraText

public java.lang.String getExtraText()
Specified by:
getExtraText in interface Tournament
See Also:
getExtraText()

setReferee

public void setReferee(java.lang.String referee)
Specified by:
setReferee in interface Tournament
See Also:
setReferee(java.lang.String)

getReferee

public java.lang.String getReferee()
Specified by:
getReferee in interface Tournament
See Also:
getReferee()

getMostRecentTournaments

public Tournament[] getMostRecentTournaments(int number)
                                      throws java.sql.SQLException
Specified by:
getMostRecentTournaments in interface Tournament
Throws:
java.sql.SQLException
See Also:
getMostRecentTournaments(int)

getForthcomingTournaments

public Tournament[] getForthcomingTournaments()
                                       throws java.sql.SQLException
Specified by:
getForthcomingTournaments in interface Tournament
Throws:
java.sql.SQLException
See Also:
getForthcomingTournaments()

isTournamentFinished

public boolean isTournamentFinished()
Specified by:
isTournamentFinished in interface Tournament
See Also:
isTournamentFinished()

isTournamentOngoing

public boolean isTournamentOngoing()
Specified by:
isTournamentOngoing in interface Tournament
See Also:
isTournamentOngoing()

getTeeColors

public TeeColor[] getTeeColors()
                        throws java.sql.SQLException
Specified by:
getTeeColors in interface Tournament
Throws:
java.sql.SQLException
See Also:
getTeeColors()

insert

public void insert()
            throws java.sql.SQLException
Specified by:
insert in interface com.idega.data.IDOLegacyEntity
Overrides:
insert in class com.idega.data.GenericEntity
Throws:
java.sql.SQLException

delete

public void delete()
            throws java.sql.SQLException
Delete the tournament if there is no registered data to it - Throws an SQLException if there is data (scorecards) registered to it

Specified by:
delete in interface com.idega.data.IDOLegacyEntity
Overrides:
delete in class com.idega.data.GenericEntity
Throws:
java.sql.SQLException

deleteAllData

public void deleteAllData()
                   throws java.sql.SQLException
Deletes all data including scorecards,registrations etc.

Specified by:
deleteAllData in interface Tournament
Throws:
java.sql.SQLException
See Also:
deleteAllData()

deleteWithAllData

public void deleteWithAllData()
                       throws java.sql.SQLException
Deletes the tournament with all data including scorecards,registrations etc.

Specified by:
deleteWithAllData in interface Tournament
Throws:
java.sql.SQLException
See Also:
deleteWithAllData()

getTournamentGroupId

public int getTournamentGroupId(Member member)
                         throws java.sql.SQLException
Specified by:
getTournamentGroupId in interface Tournament
Throws:
java.sql.SQLException
See Also:
getTournamentGroupId(is.idega.idegaweb.golf.entity.Member)

getTournamentGroupId

public int getTournamentGroupId(int member_id)
                         throws java.sql.SQLException
Specified by:
getTournamentGroupId in interface Tournament
Throws:
java.sql.SQLException
See Also:
getTournamentGroupId(is.idega.idegaweb.golf.entity.Member)

getPosition

public int getPosition(Member member)
                throws java.sql.SQLException
Specified by:
getPosition in interface Tournament
Throws:
java.sql.SQLException
See Also:
getPosition(is.idega.idegaweb.golf.entity.Member)

getPosition

public int getPosition(int member_id)
                throws java.sql.SQLException
Specified by:
getPosition in interface Tournament
Throws:
java.sql.SQLException
See Also:
getPosition(is.idega.idegaweb.golf.entity.Member)

getDismissal

public int getDismissal(Member member)
                 throws java.sql.SQLException
Specified by:
getDismissal in interface Tournament
Throws:
java.sql.SQLException
See Also:
getDismissal(is.idega.idegaweb.golf.entity.Member)

getDismissal

public int getDismissal(int member_id)
                 throws java.sql.SQLException
Specified by:
getDismissal in interface Tournament
Throws:
java.sql.SQLException
See Also:
getDismissal(is.idega.idegaweb.golf.entity.Member)

setPosition

public void setPosition(Member member,
                        int position)
                 throws java.sql.SQLException
Specified by:
setPosition in interface Tournament
Throws:
java.sql.SQLException
See Also:
setPosition(is.idega.idegaweb.golf.entity.Member, int)

setPosition

public void setPosition(int member_id,
                        int position)
                 throws java.sql.SQLException
Specified by:
setPosition in interface Tournament
Throws:
java.sql.SQLException
See Also:
setPosition(is.idega.idegaweb.golf.entity.Member, int)

setDismissal

public void setDismissal(Member member,
                         int dismissalID)
                  throws java.sql.SQLException
Specified by:
setDismissal in interface Tournament
Throws:
java.sql.SQLException
See Also:
setDismissal(is.idega.idegaweb.golf.entity.Member, int)

setDismissal

public void setDismissal(int member_id,
                         int dismissalID)
                  throws java.sql.SQLException
Specified by:
setDismissal in interface Tournament
Throws:
java.sql.SQLException
See Also:
setDismissal(is.idega.idegaweb.golf.entity.Member, int)

getTournamentMemberUnionId

public int getTournamentMemberUnionId(Member member)
                               throws java.sql.SQLException
Specified by:
getTournamentMemberUnionId in interface Tournament
Throws:
java.sql.SQLException
See Also:
getTournamentMemberUnionId(is.idega.idegaweb.golf.entity.Member)

getTournamentMemberUnionId

public int getTournamentMemberUnionId(int member_id)
                               throws java.sql.SQLException
Deprecated. 

Specified by:
getTournamentMemberUnionId in interface Tournament
Throws:
java.sql.SQLException
See Also:
getTournamentMemberUnionId(is.idega.idegaweb.golf.entity.Member)

getTournamentMemberUnionId

public int getTournamentMemberUnionId(java.sql.Connection conn,
                                      int member_id)
                               throws java.sql.SQLException
Specified by:
getTournamentMemberUnionId in interface Tournament
Throws:
java.sql.SQLException
See Also:
getTournamentMemberUnionId(is.idega.idegaweb.golf.entity.Member)

isDirectRegistration

public boolean isDirectRegistration()
Specified by:
isDirectRegistration in interface Tournament
See Also:
isDirectRegistration()

setIsDirectRegistration

public void setIsDirectRegistration(boolean is_direct)
Specified by:
setIsDirectRegistration in interface Tournament
See Also:
setIsDirectRegistration(boolean)

getNumberInGroup

public int getNumberInGroup()
Specified by:
getNumberInGroup in interface Tournament
See Also:
getNumberInGroup()

setNumberInGroup

public void setNumberInGroup(int number_in_group)
Specified by:
setNumberInGroup in interface Tournament
See Also:
setNumberInGroup(int)

getInterval

public int getInterval()
Specified by:
getInterval in interface Tournament
See Also:
getInterval()

setInterval

public void setInterval(int interval)
Specified by:
setInterval in interface Tournament
See Also:
setInterval(int)

setCBACorrected

public void setCBACorrected(boolean CBACorrected)
Specified by:
setCBACorrected in interface Tournament
See Also:
setCBACorrected(boolean)

isCBACorrected

public boolean isCBACorrected()
Specified by:
isCBACorrected in interface Tournament
See Also:
isCBACorrected()

setIsClosed

public void setIsClosed(boolean isClosed)
Specified by:
setIsClosed in interface Tournament
See Also:
setIsClosed(boolean)

getIsClosed

public boolean getIsClosed()
Specified by:
getIsClosed in interface Tournament
See Also:
getIsClosed()

setClosedDate

public void setClosedDate(java.sql.Timestamp closedDate)
Specified by:
setClosedDate in interface Tournament
See Also:
setClosedDate(java.sql.Timestamp)

getClosedDate

public java.sql.Timestamp getClosedDate()
Specified by:
getClosedDate in interface Tournament
See Also:
getClosedDate()

setNumberInTournamentGroup

public void setNumberInTournamentGroup(int number)
Specified by:
setNumberInTournamentGroup in interface Tournament
See Also:
setNumberInTournamentGroup(int)

getNumberInTournamentGroup

public int getNumberInTournamentGroup()
Specified by:
getNumberInTournamentGroup in interface Tournament
See Also:
getNumberInTournamentGroup()

ejbFindByUnionIdAndView

public java.util.Collection ejbFindByUnionIdAndView(int unionID,
                                                    java.lang.String view,
                                                    com.idega.util.IWTimestamp start,
                                                    com.idega.util.IWTimestamp end)
                                             throws javax.ejb.FinderException
Throws:
javax.ejb.FinderException

isOnlinePaymentRequired

public boolean isOnlinePaymentRequired()
Specified by:
isOnlinePaymentRequired in interface Tournament
See Also:
isOnlinePaymentRequired()

isOnlinePaymentOtional

public boolean isOnlinePaymentOtional()
Specified by:
isOnlinePaymentOtional in interface Tournament
See Also:
isOnlinePaymentOtional()

isOnlinePaymentDisabled

public boolean isOnlinePaymentDisabled()
Specified by:
isOnlinePaymentDisabled in interface Tournament
See Also:
isOnlinePaymentDisabled()

setOnlinePayment

public void setOnlinePayment(int onlinePayment)
Specified by:
setOnlinePayment in interface Tournament
See Also:
setOnlinePayment(int)

getOnlinePayment

public int getOnlinePayment()
Specified by:
getOnlinePayment in interface Tournament
See Also:
getOnlinePayment()

isUnionTournament

public boolean isUnionTournament()
Specified by:
isUnionTournament in interface Tournament
See Also:
isUnionTournament()

setUnionTournament

public void setUnionTournament(boolean unionTournament)
Specified by:
setUnionTournament in interface Tournament
See Also:
setUnionTournament(boolean)

ejbFindAll

public java.util.Collection<java.lang.Object> ejbFindAll(java.sql.Date startingDateFrom,
                                                         java.sql.Date startingDateTo,
                                                         java.util.Collection<java.lang.String> unionIds,
                                                         java.lang.Integer indexFrom,
                                                         java.lang.Integer entitiesAmount)
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;

ejbFindAmount

public int ejbFindAmount(java.sql.Date startingDateFrom,
                         java.sql.Date startingDateTo,
                         java.util.Collection<java.lang.String> unionIds)
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 primary keys by query or 0 on failure;

getQuery

protected com.idega.data.IDOQuery getQuery(boolean amount,
                                           java.sql.Date startingDateFrom,
                                           java.sql.Date startingDateTo,
                                           java.util.Collection<java.lang.String> unionIds)
Parameters:
amount - true if SQL COUNT is required, false otherwise;
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:
query;


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