Package zombie.network
Class ServerWorldDatabase
java.lang.Object
zombie.network.ServerWorldDatabase
public class ServerWorldDatabase
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ServerWorldDatabase.LogonResult
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
CommandLineAdminPassword
java.lang.String
CommandLineAdminUsername
DBSchema
dbSchema
boolean
doAdmin
static ServerWorldDatabase
instance
-
Constructor Summary
Constructors Constructor Description ServerWorldDatabase()
-
Method Summary
Modifier and Type Method Description void
addTicket(java.lang.String string, java.lang.String string2, int int1)
java.lang.String
addUser(java.lang.String string, java.lang.String string2)
void
addUserlog(java.lang.String string, Userlog.UserlogType userlogType, java.lang.String string2, java.lang.String string3, int int1)
java.lang.String
addWarningPoint(java.lang.String string, java.lang.String string2, int int1, java.lang.String string3)
ServerWorldDatabase.LogonResult
authClient(long long1)
ServerWorldDatabase.LogonResult
authClient(java.lang.String string, java.lang.String string2, java.lang.String string3, long long1)
ServerWorldDatabase.LogonResult
authOwner(long long1, long long2)
java.lang.String
banIp(java.lang.String string, java.lang.String string2, java.lang.String string3, boolean boolean1)
java.lang.String
banSteamID(java.lang.String string, java.lang.String string2, boolean boolean1)
java.lang.String
banUser(java.lang.String string, boolean boolean1)
java.lang.String
changePwd(java.lang.String string, java.lang.String string2, java.lang.String string3)
java.lang.String
changeUsername(java.lang.String string, java.lang.String string2)
void
close()
boolean
containsCaseinsensitiveUser(java.lang.String string)
boolean
containsUser(java.lang.String string)
void
create()
static java.lang.String
encrypt(java.lang.String string)
void
executeQuery(java.lang.String string, KahluaTable kahluaTable)
DBSchema
getDBSchema()
java.lang.String
getDisplayName(java.lang.String string)
java.util.ArrayList
getTableResult(java.lang.String string)
java.util.ArrayList
getTickets(java.lang.String string)
java.util.ArrayList
getUserlog(java.lang.String string)
java.lang.String
grantAdmin(java.lang.String string, boolean boolean1)
static boolean
isValidUserName(java.lang.String string)
void
removeTicket(int int1)
java.lang.String
removeUser(java.lang.String string)
void
removeUserLog(java.lang.String string, java.lang.String string2, java.lang.String string3)
void
saveAllTransactionsID(java.util.HashMap hashMap)
void
saveTransactionID(java.lang.String string, java.lang.Integer integer)
java.lang.String
setAccessLevel(java.lang.String string, java.lang.String string2)
void
setPassword(java.lang.String string, java.lang.String string2)
java.lang.String
setUserSteamID(java.lang.String string, java.lang.String string2)
void
updateDisplayName(java.lang.String string, java.lang.String string2)
void
updateLastConnectionDate(java.lang.String string, java.lang.String string2)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
CommandLineAdminUsername
public java.lang.String CommandLineAdminUsername -
CommandLineAdminPassword
public java.lang.String CommandLineAdminPassword -
doAdmin
public boolean doAdmin -
dbSchema
-
-
Constructor Details
-
ServerWorldDatabase
public ServerWorldDatabase()
-
-
Method Details
-
getDBSchema
-
executeQuery
public void executeQuery(java.lang.String string, KahluaTable kahluaTable) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getTableResult
public java.util.ArrayList getTableResult(java.lang.String string) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
saveAllTransactionsID
public void saveAllTransactionsID(java.util.HashMap hashMap) -
saveTransactionID
public void saveTransactionID(java.lang.String string, java.lang.Integer integer) -
containsUser
public boolean containsUser(java.lang.String string) -
containsCaseinsensitiveUser
public boolean containsCaseinsensitiveUser(java.lang.String string) -
changeUsername
public java.lang.String changeUsername(java.lang.String string, java.lang.String string2) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
addUser
public java.lang.String addUser(java.lang.String string, java.lang.String string2) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateDisplayName
public void updateDisplayName(java.lang.String string, java.lang.String string2) -
getDisplayName
public java.lang.String getDisplayName(java.lang.String string) -
removeUser
public java.lang.String removeUser(java.lang.String string) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
removeUserLog
public void removeUserLog(java.lang.String string, java.lang.String string2, java.lang.String string3) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
create
public void create() throws java.sql.SQLException, java.lang.ClassNotFoundException- Throws:
java.sql.SQLException
java.lang.ClassNotFoundException
-
close
public void close() -
isValidUserName
public static boolean isValidUserName(java.lang.String string) -
authClient
public ServerWorldDatabase.LogonResult authClient(java.lang.String string, java.lang.String string2, java.lang.String string3, long long1) -
authClient
-
authOwner
-
encrypt
public static java.lang.String encrypt(java.lang.String string) -
changePwd
public java.lang.String changePwd(java.lang.String string, java.lang.String string2, java.lang.String string3) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
grantAdmin
public java.lang.String grantAdmin(java.lang.String string, boolean boolean1) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setAccessLevel
public java.lang.String setAccessLevel(java.lang.String string, java.lang.String string2) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getUserlog
public java.util.ArrayList getUserlog(java.lang.String string) -
addUserlog
public void addUserlog(java.lang.String string, Userlog.UserlogType userlogType, java.lang.String string2, java.lang.String string3, int int1) -
banUser
public java.lang.String banUser(java.lang.String string, boolean boolean1) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
banIp
public java.lang.String banIp(java.lang.String string, java.lang.String string2, java.lang.String string3, boolean boolean1) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
banSteamID
public java.lang.String banSteamID(java.lang.String string, java.lang.String string2, boolean boolean1) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setUserSteamID
public java.lang.String setUserSteamID(java.lang.String string, java.lang.String string2) -
setPassword
public void setPassword(java.lang.String string, java.lang.String string2) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
updateLastConnectionDate
public void updateLastConnectionDate(java.lang.String string, java.lang.String string2) -
addWarningPoint
public java.lang.String addWarningPoint(java.lang.String string, java.lang.String string2, int int1, java.lang.String string3) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
addTicket
public void addTicket(java.lang.String string, java.lang.String string2, int int1) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getTickets
public java.util.ArrayList getTickets(java.lang.String string) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
removeTicket
public void removeTicket(int int1) throws java.sql.SQLException- Throws:
java.sql.SQLException
-