/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL") (collectively, the "License"). You
* may not use this file except in compliance with the License. You can
* obtain a copy of the License at
* or packager/legal/LICENSE.txt. See the License for the specific
* language governing permissions and limitations under the License.
*
* When distributing the software, include this License Header Notice in each
* file and include the License file at packager/legal/LICENSE.txt.
*
* GPL Classpath Exception:
* Oracle designates this particular file as subject to the "Classpath"
* exception as provided by Oracle in the GPL Version 2 section of the License
* file that accompanied this code.
*
* Modifications:
* If applicable, add the following below the License Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyright [year] [name of copyright owner]"
*
* Contributor(s):
* If you wish your version of this file to be governed by only the CDDL or
* only the GPL Version 2, indicate your decision by adding "[Contributor]
* elects to include this software in this distribution under the [CDDL or GPL
* Version 2] license." If you don't indicate a single choice of license, a
* recipient has the option to distribute your version of this file under
* either the CDDL, the GPL Version 2 or to extend the choice of license to
* its licensees as provided above. However, if you add GPL Version 2 code
* and therefore, elected the GPL Version 2 license, then the option applies
* only if the new code is made subject to such option by the copyright
* holder.
*/
package roster;
import util.*;
import team.*;
// Player business methods
try {
}
return copyPlayersToDetails(players);
}
try {
}
}
try {
}
}
try {
}
}
try {
}
}
try {
}
return playerDetails;
} // getPlayer
try {
}
return copyPlayersToDetails(players);
} // getPlayersOfTeam
try {
}
return playersList;
} // getPlayersOfTeamCopy
try {
}
while (i.hasNext()) {
}
return detailsList;
} // getTeamsOfLeague
try {
}
return copyPlayersToDetails(players);
} // getPlayersByPosition
try {
}
return copyPlayersToDetails(players);
} // getPlayersByHigherSalary
try {
}
return copyPlayersToDetails(players);
} // getPlayersBySalaryRange
try {
}
return copyPlayersToDetails(players);
} // getPlayersByLeagueId
try {
}
return copyPlayersToDetails(players);
} // getPlayersBySport
try {
}
return copyPlayersToDetails(players);
} // getPlayersByCity
try {
}
return copyPlayersToDetails(players);
} // getAllPlayers
try {
}
return copyPlayersToDetails(players);
} // getPlayersNotOnTeam
try {
}
return copyPlayersToDetails(players);
} // getPlayersByPositionAndName
try {
}
while (i.hasNext()) {
}
return detailsList;
} // getLeaguesOfPlayer
try {
}
while (i.hasNext()) {
}
return sportsList;
} // getSportsOfPlayer
// Team business methods
try {
}
}
try {
}
}
try {
}
return teamDetails;
}
// League business methods
try {
}
}
try {
}
}
try {
}
return leagueDetails;
}
// SessionBean methods
try {
playerHome = lookupPlayer();
teamHome = lookupTeam();
leagueHome = lookupLeague();
} catch (NamingException ex) {
}
}
public void ejbActivate() {
try {
playerHome = lookupPlayer();
teamHome = lookupTeam();
leagueHome = lookupLeague();
} catch (NamingException ex) {
}
}
public void ejbPassivate() {
playerHome = null;
leagueHome = null;
}
public RosterBean() {}
public void ejbRemove() {}
// Private methods
return (LocalPlayerHome) objref;
}
return (LocalTeamHome) objref;
}
return (LocalLeagueHome) objref;
}
while (i.hasNext()) {
}
return detailsList;
} // copyPlayersToDetails
/**
* dirty cleanUp method only EJBs with hardcoded PK will be removed
*/
public void cleanUp() {
try {
//removing the player EJBs
}
// removing the team EJBs
}
// removing the league EJBs
}
}
}
/**
*
* @param name
* @return
*/
try {
}
return leagueDetails;
}
// getLeagueByName()
/**
*
* @param playerKey
* @param leagueKey
* @return
*/
try {
}
}
}
return detailsList;
}
/**
*
* @param city
* @return
*/
try {
}
}
return cities;
}// getCitiesOfLeague()
/**
*
* @param leagueKey
* @param city
* @return
*/
try {
}
}
}// getTeamOfLeagueByCity()
/**
*
* @param leagueKey
* @param city
* @return
*/
try {
}
}
return teamName;
}// getTeamsNameOfLeagueByCity()
/**
*
* @param teamID
* @param playerName
* @return
*/
double salary;
try {
}
}
return salary;
}// getSalaryOfPlayerFromTeam()
/**
*
* @param leagueId
* @return
*/
try {
}
}
return copyPlayersToDetails(players);
}// getPlayersOfLeague()
/**
*
* @return
*/
try {
}
}
return copyPlayersToDetails(players);
}// getPlayersWithPositionsGoalkeeperOrDefender()
/**
*
* @return
*/
try {
}
}
return copyPlayersToDetails(players);
}// getPlayersWithNameEndingWithON()
/**
*
* @return
*/
try {
}
}
return copyPlayersToDetails(players);
}// getPlayersWithNullName()
/**
*
* @param teamId
* @return
*/
try {
}
}
return copyPlayersToDetails(players);
}// getPlayersWithTeam()
/**
*
* @param teamId
* @return
*/
try {
}
}
}// getTeamNameVariations()
/**
*
* @param salary
* @return
*/
try {
}
}
return copyPlayersToDetails(players);
}// getPlayersWithSalaryUsingABS()
/**
*
* @param salary
* @return
*/
try {
}
}
return copyPlayersToDetails(players);
}// getPlayersWithSalaryUsingSQRT()
try {
}
return copyPlayersToDetails(players);
} // getPlayersByLeagueId
} // RosterBean