Package io.manebot.database.model
Class UserAssociation
- java.lang.Object
-
- io.manebot.database.model.TimedRow
-
- io.manebot.database.model.UserAssociation
-
- All Implemented Interfaces:
UserAssociation
@Entity public class UserAssociation extends TimedRow implements UserAssociation
-
-
Constructor Summary
Constructors Constructor Description UserAssociation(Database database)
UserAssociation(Database database, Platform platform, java.lang.String id, User user)
-
Method Summary
Modifier and Type Method Description java.lang.String
getId()
Platform
getPlatform()
Gets the platform connected with this association.java.lang.String
getPlatformId()
Gets the ID associated with this connection.User
getUser()
Gets the user in this platform connection.int
getUserAssociationId()
int
hashCode()
void
remove()
Removes this User association fromm the Platform.void
setId(java.lang.String id)
void
setPlatform(Platform platform)
void
setUser(User user)
-
Methods inherited from class io.manebot.database.model.TimedRow
getCreated, getCreatedDate, getUpdated, getUpdatedDate, setCreated, setCreated, setCreatedDate, setUpdated, setUpdated, setUpdatedDate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.manebot.user.UserAssociation
getPlatformUser
-
-
-
-
Method Detail
-
getUserAssociationId
public int getUserAssociationId()
-
getUser
public User getUser()
Description copied from interface:UserAssociation
Gets the user in this platform connection.- Specified by:
getUser
in interfaceUserAssociation
- Returns:
- User instance.
-
getPlatformId
public java.lang.String getPlatformId()
Description copied from interface:UserAssociation
Gets the ID associated with this connection.- Specified by:
getPlatformId
in interfaceUserAssociation
- Returns:
- ID.
-
remove
public void remove()
Description copied from interface:UserAssociation
Removes this User association fromm the Platform.- Specified by:
remove
in interfaceUserAssociation
-
setUser
public void setUser(User user)
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String id)
-
getPlatform
public Platform getPlatform()
Description copied from interface:UserAssociation
Gets the platform connected with this association.- Specified by:
getPlatform
in interfaceUserAssociation
- Returns:
- Platform instance.
-
setPlatform
public void setPlatform(Platform platform)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-