Class SessionsTable.Row
java.lang.Object
com.djrapitops.plan.storage.database.sql.tables.SessionsTable.Row
- All Implemented Interfaces:
JoinAddressIdentifiable,ServerIdentifiable,UserIdentifiable
- Enclosing class:
SessionsTable
public static class SessionsTable.Row
extends Object
implements ServerIdentifiable, UserIdentifiable, JoinAddressIdentifiable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Patchstatic SessionsTable.Row@Nullable Integerintintvoidinsert(PreparedStatement statement, boolean withOldId) static PatchvoidsetJoinAddressId(Integer joinAddressId) voidsetServerId(int serverId) voidsetUserId(int userId)
-
Field Details
-
OLD_ID
- See Also:
-
INSERT_STATEMENT_WITH_OLD_ID
-
id
public int id -
userId
public int userId -
serverId
public int serverId -
sessionStart
public long sessionStart -
sessionEnd
public long sessionEnd -
mobKills
public int mobKills -
deaths
public int deaths -
afkTime
public long afkTime -
joinAddressId
-
-
Constructor Details
-
Row
public Row()
-
-
Method Details
-
extract
- Throws:
SQLException
-
addOldIdPatch
-
removeOldIdPatch
-
insert
- Throws:
SQLException
-
getServerId
public int getServerId()- Specified by:
getServerIdin interfaceServerIdentifiable
-
setServerId
public void setServerId(int serverId) - Specified by:
setServerIdin interfaceServerIdentifiable
-
getUserId
public int getUserId()- Specified by:
getUserIdin interfaceUserIdentifiable
-
setUserId
public void setUserId(int userId) - Specified by:
setUserIdin interfaceUserIdentifiable
-
getJoinAddressId
- Specified by:
getJoinAddressIdin interfaceJoinAddressIdentifiable
-
setJoinAddressId
- Specified by:
setJoinAddressIdin interfaceJoinAddressIdentifiable
-