接口 MemberDTO
public interface MemberDTO
Interface representing a Member Data Transfer Object (DTO).
-
方法概要
修饰符和类型方法说明getDomID()Gets the ID of the dominion to which the member belongs.Gets all flag values for the member.@NotNull BooleangetFlagValue(PriFlag flag) Gets the value of a specific flag for the member.Gets the ID of the group to which the member belongs.getId()Gets the member ID.@NotNull PlayerDTOGets the player object associated with the member.Gets the member UUID.@Nullable MemberDTOsetFlagValue(@NotNull PriFlag flag, @NotNull Boolean value) Sets the value of a specific flag for the member.
-
方法详细资料
-
getId
Integer getId()Gets the member ID.- 返回:
- the member ID
-
getPlayerUUID
UUID getPlayerUUID()Gets the member UUID.- 返回:
- the member UUID
-
getDomID
Integer getDomID()Gets the ID of the dominion to which the member belongs.- 返回:
- the dominion ID
-
getGroupId
Integer getGroupId()Gets the ID of the group to which the member belongs.- 返回:
- the group ID, or -1 if the member does not belong to any group
-
getFlagValue
Gets the value of a specific flag for the member.- 参数:
flag- the flag- 返回:
- the value of the flag, or the default value if the flag does not exist
-
getFlagsValue
Gets all flag values for the member.- 返回:
- a map of flag values
-
setFlagValue
@Nullable @Nullable MemberDTO setFlagValue(@NotNull @NotNull PriFlag flag, @NotNull @NotNull Boolean value) throws SQLException Sets the value of a specific flag for the member. Returns the member object if successful, otherwise returns null.- 参数:
flag- the flagvalue- the value of the flag- 返回:
- the member object, or null if the operation fails
- 抛出:
SQLException- if a database access error occurs
-
getPlayer
Gets the player object associated with the member.- 返回:
- the player object
-