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.StringgetId()PlatformgetPlatform()Gets the platform connected with this association.java.lang.StringgetPlatformId()Gets the ID associated with this connection.UsergetUser()Gets the user in this platform connection.intgetUserAssociationId()inthashCode()voidremove()Removes this User association fromm the Platform.voidsetId(java.lang.String id)voidsetPlatform(Platform platform)voidsetUser(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:UserAssociationGets the user in this platform connection.- Specified by:
getUserin interfaceUserAssociation- Returns:
- User instance.
-
getPlatformId
public java.lang.String getPlatformId()
Description copied from interface:UserAssociationGets the ID associated with this connection.- Specified by:
getPlatformIdin interfaceUserAssociation- Returns:
- ID.
-
remove
public void remove()
Description copied from interface:UserAssociationRemoves this User association fromm the Platform.- Specified by:
removein 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:UserAssociationGets the platform connected with this association.- Specified by:
getPlatformin interfaceUserAssociation- Returns:
- Platform instance.
-
setPlatform
public void setPlatform(Platform platform)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-