Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sql;
- import java.sql.Connection;
- import java.sql.DriverManager;
- import java.sql.PreparedStatement;
- import java.sql.ResultSet;
- import java.sql.SQLException;
- import java.util.ArrayList;
- import fileManagement.IniFileReader;
- import rankingSystem.Rank;
- public class RankingDB {
- private static int userlist_id = 0;
- private static long user_id = 0;
- private static long fk_guild_id = 0;
- private static int level = 0;
- private static int currentExperience = 0;
- private static int rankUpExperience = 0;
- private static long experience = 0;
- private static long currency = 0;
- private static long guild_id = 0;
- private static int fk_rankingSystem = 0;
- private static long [] role = new long [10];
- private static int rankingSystem = 0;
- private static int maxRank = 0;
- private static int roleAssignLevel = 0;
- private static String description = null;
- private static int numberOfRankingSystems = 0;
- private static ArrayList<Rank> ranking = new ArrayList<Rank>();
- private static String username = IniFileReader.getSQLUsername2();
- private static String password = IniFileReader.getSQLPassword2();
- public static void SQLconnection(){
- try {
- Class.forName("com.mysql.jdbc.Driver");
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- }
- }
- //UserList table
- public static void SQLgetUserList(long _user_id, long _guild_id){
- Connection myConn = null;
- PreparedStatement stmt = null;
- ResultSet rs = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("SELECT * FROM UserList WHERE User_ID = ? && FKGuild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _user_id);
- stmt.setLong(2, _guild_id);
- rs = stmt.executeQuery();
- if(rs.next()){
- setUserList_id(rs.getInt(1));
- setUser_id(rs.getLong(2));
- setFK_Guild_id(rs.getLong(3));
- setLevel(rs.getInt(4));
- setCurrentExperience(rs.getInt(5));
- setRankUpExperience(rs.getInt(6));
- setExperience(rs.getLong(7));
- setCurrency(rs.getLong(8));
- }
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { rs.close(); } catch (Exception e) { /* ignored */ }
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLfillUserList(long _user_id, long _fk_guild_id, int _level, int _currentExperience, int _rankUpExperience, long _experience, long _currency){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("INSERT INTO UserList (UserList_ID, User_ID, FKGuild_ID, Level, CurrentExperience, RankUpExperience, Experience, currency, flag) VALUES (NULL, ?, ?, ?, ?, ?, ?, ?, 0)");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _user_id);
- stmt.setLong(2, _fk_guild_id);
- stmt.setInt(3, _level);
- stmt.setInt(4, _currentExperience);
- stmt.setInt(5, _rankUpExperience);
- stmt.setLong(6, _experience);
- stmt.setLong(7, _currency);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLsetLevelUp(long _user_id, long _fk_guild_id, int _level, int _currentExperience, int _rankUpExperience, long _experience, long _currency){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE UserList SET Level = ?, CurrentExperience = ?, RankUpExperience = ?, Experience = ?, currency = ? WHERE User_ID = ? && FKGuild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setInt(1, _level);
- stmt.setInt(2, _currentExperience);
- stmt.setInt(3, _rankUpExperience);
- stmt.setLong(4, _experience);
- stmt.setLong(5, _currency);
- stmt.setLong(6, _user_id);
- stmt.setLong(7, _fk_guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLupdateExperience(long _user_id, long _fk_guild_id, int _currentExperience, long _experience){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE UserList SET Experience = ?, CurrentExperience = ? WHERE User_ID = ? && FKGuild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _experience);
- stmt.setInt(2, _currentExperience);
- stmt.setLong(3, _user_id);
- stmt.setLong(4, _fk_guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLRanking(){
- Connection myConn = null;
- PreparedStatement stmt = null;
- ResultSet rs = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("SELECT `User_ID`, `Level`, `Experience`, @curRank := @curRank + 1 AS Rank FROM `UserList`, (SELECT @curRank := 0) r WHERE FKGuild_id = 296264651057135617 && flag = 0 ORDER BY `Experience` DESC");
- stmt = myConn.prepareStatement(sql);
- rs = stmt.executeQuery();
- while(rs.next()){
- Rank rank = new Rank();
- rank.setMember_id(rs.getLong(1));
- rank.setLevel(rs.getInt(2));
- rank.setExperience(rs.getLong(3));
- rank.setRank(rs.getInt(4));
- ranking.add(rank);
- }
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { rs.close(); } catch (Exception e) { /* ignored */ }
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLTopRanking(){
- Connection myConn = null;
- PreparedStatement stmt = null;
- ResultSet rs = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("SELECT `User_ID`, `Level`, `Experience`, @curRank := @curRank + 1 AS Rank FROM `UserList`, (SELECT @curRank := 0) r WHERE FKGuild_id = 296264651057135617 && flag = 0 ORDER BY `Experience` DESC LIMIT 10");
- stmt = myConn.prepareStatement(sql);
- rs = stmt.executeQuery();
- while(rs.next()){
- Rank rank = new Rank();
- rank.setMember_id(rs.getLong(1));
- rank.setLevel(rs.getInt(2));
- rank.setExperience(rs.getLong(3));
- rank.setRank(rs.getInt(4));
- ranking.add(rank);
- }
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { rs.close(); } catch (Exception e) { /* ignored */ }
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- //Server table
- public static void SQLgetServer(long _guild_id){
- Connection myConn = null;
- PreparedStatement stmt = null;
- ResultSet rs = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("SELECT * FROM Server WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _guild_id);
- rs = stmt.executeQuery();
- if(rs.next()){
- setFK_RankingSystem(rs.getInt(3));
- setRole(rs.getLong(4), 0);
- setRole(rs.getLong(5), 1);
- setRole(rs.getLong(6), 2);
- setRole(rs.getLong(7), 3);
- setRole(rs.getLong(8), 4);
- setRole(rs.getLong(9), 5);
- setRole(rs.getLong(10), 6);
- setRole(rs.getLong(11), 7);
- setRole(rs.getLong(12), 8);
- setRole(rs.getLong(13), 9);
- }
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { rs.close(); } catch (Exception e) { /* ignored */ }
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLgetGuild_ID(long _guild_id){
- Connection myConn = null;
- PreparedStatement stmt = null;
- ResultSet rs = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("SELECT Guild_ID FROM Server WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _guild_id);
- rs = stmt.executeQuery();
- if(rs.next()){
- setGuild_id(rs.getLong(1));
- }
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { rs.close(); } catch (Exception e) { /* ignored */ }
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLgetRankingSystem(long _guild_id){
- Connection myConn = null;
- PreparedStatement stmt = null;
- ResultSet rs = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("SELECT LvSetting FROM Server WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _guild_id);
- rs = stmt.executeQuery();
- if(rs.next()){
- setFK_RankingSystem(rs.getInt(1));
- }
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { rs.close(); } catch (Exception e) { /* ignored */ }
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLsetRole1(long _guild_id, long _role){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE Server SET role1 = ? WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _role);
- stmt.setLong(2, _guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLsetRole2(long _guild_id, long _role){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE Server SET role2 = ? WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _role);
- stmt.setLong(2, _guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLsetRole3(long _guild_id, long _role){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE Server SET role3 = ? WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _role);
- stmt.setLong(2, _guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLsetRole4(long _guild_id, long _role){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE Server SET role4 = ? WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _role);
- stmt.setLong(2, _guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLsetRole5(long _guild_id, long _role){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE Server SET role5 = ? WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _role);
- stmt.setLong(2, _guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLsetRole6(long _guild_id, long _role){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE Server SET role6 = ? WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _role);
- stmt.setLong(2, _guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLsetRole7(long _guild_id, long _role){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE Server SET role7 = ? WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _role);
- stmt.setLong(2, _guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLsetRole8(long _guild_id, long _role){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE Server SET role8 = ? WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _role);
- stmt.setLong(2, _guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLsetRole9(long _guild_id, long _role){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE Server SET role9 = ? WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _role);
- stmt.setLong(2, _guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLsetRole10(long _guild_id, long _role){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE Server SET role10 = ? WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _role);
- stmt.setLong(2, _guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLsetEmptyRoles(long _guild_id){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE Server SET role1 = null, role2 = null, role3 = null, role4 = null, role5 = null, role6 = null, role7 = null, role8 = null, role9 = null, role10 = null WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLfillServer(long _guild_id, int _rankingSystem){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("INSERT INTO Server (Server_ID, Guild_ID, LvSetting, role1, role2, role3, role4, role5, role6, role7, role8, role9, role10) VALUES (null, ?, ?, null, null, null, null, null, null, null, null, null, null)");
- stmt = myConn.prepareStatement(sql);
- stmt.setLong(1, _guild_id);
- stmt.setInt(2, _rankingSystem);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLupdateRankingSystem(long _guild_id, int _rankingSystem){
- Connection myConn = null;
- PreparedStatement stmt = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("UPDATE Server SET LvSetting = ? WHERE Guild_ID = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setInt(1, _rankingSystem);
- stmt.setLong(2, _guild_id);
- stmt.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- //Template table
- public static void SQLgetTemplate(int _rankingSystem){
- Connection myConn = null;
- PreparedStatement stmt = null;
- ResultSet rs = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("SELECT MaxRank, RoleLevel, description FROM Template WHERE LvSetting = ?");
- stmt = myConn.prepareStatement(sql);
- stmt.setInt(1, _rankingSystem);
- rs = stmt.executeQuery();
- if(rs.next()){
- setMaxRank(rs.getInt(1));
- setRoleAssignLevel(rs.getInt(2));
- setDescription(rs.getString(3));
- }
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { rs.close(); } catch (Exception e) { /* ignored */ }
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void SQLgetNumberOfRankingSystems(){
- Connection myConn = null;
- PreparedStatement stmt = null;
- ResultSet rs = null;
- try {
- myConn = DriverManager.getConnection("jdbc:mysql://localhost:3306/RankingSystem", username, password);
- String sql = ("SELECT MAX(LvSetting) FROM Template");
- stmt = myConn.prepareStatement(sql);
- rs = stmt.executeQuery();
- if(rs.next()){
- setNumberOfRankingSystems(rs.getInt(1));
- }
- } catch (SQLException e) {
- e.printStackTrace();
- } finally {
- try { rs.close(); } catch (Exception e) { /* ignored */ }
- try { stmt.close(); } catch (Exception e) { /* ignored */ }
- try { myConn.close(); } catch (Exception e) { /* ignored */ }
- }
- }
- public static void setUserList_id(Integer _userlist_id){
- userlist_id = _userlist_id;
- }
- public static void setUser_id(long _user_id){
- user_id = _user_id;
- }
- public static void setFK_Guild_id(long _fk_guild_id){
- fk_guild_id = _fk_guild_id;
- }
- public static void setLevel(Integer _level){
- level = _level;
- }
- public static void setCurrentExperience(Integer _currentExperience){
- currentExperience = _currentExperience;
- }
- public static void setRankUpExperience(Integer _rankUpExperience){
- rankUpExperience = _rankUpExperience;
- }
- public static void setExperience(long _experience){
- experience = _experience;
- }
- public static void setGuild_id(long _guild_id){
- guild_id = _guild_id;
- }
- public static void setFK_RankingSystem(Integer _fk_rankingSystem){
- fk_rankingSystem = _fk_rankingSystem;
- }
- public static void setRole(long _role, int index){
- role[index] = _role;
- }
- public static void setCurrency(long _currency){
- currency = _currency;
- }
- public static void setRankingSystem(Integer _rankingSystem){
- rankingSystem = _rankingSystem;
- }
- public static void setMaxRank(Integer _maxRank){
- maxRank = _maxRank;
- }
- public static void setRoleAssignLevel(Integer _roleAssignLevel){
- roleAssignLevel = _roleAssignLevel;
- }
- public static void setDescription(String _description){
- description = _description;
- }
- public static void setNumberOfRankingSystems(Integer _numberOfRankingSystems){
- numberOfRankingSystems = _numberOfRankingSystems;
- }
- public static Integer getUserList_id(){
- return userlist_id;
- }
- public static long getUser_id(){
- return user_id;
- }
- public static long getFK_Guild_id(){
- return fk_guild_id;
- }
- public static Integer getLevel(){
- return level;
- }
- public static Integer getCurrentExperience(){
- return currentExperience;
- }
- public static Integer getRankUpExperience(){
- return rankUpExperience;
- }
- public static long getExperience(){
- return experience;
- }
- public static long getGuild_id(){
- return guild_id;
- }
- public static Integer getFK_RankingSystem(){
- return fk_rankingSystem;
- }
- public static long getRole(int index){
- return role[index];
- }
- public static long getCurrency(){
- return currency;
- }
- public static Integer getRankingSystem(){
- return rankingSystem;
- }
- public static Integer getMaxRank(){
- return maxRank;
- }
- public static Integer getRoleAssignLevel(){
- return roleAssignLevel;
- }
- public static String getDescription(){
- return description;
- }
- public static Integer getNumberOfRankingSystems(){
- return numberOfRankingSystems;
- }
- public static ArrayList<Rank> getRanking(){
- return ranking;
- }
- public static void clearArrayList(){
- ranking.clear();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement