com.google.code.ssm.test.entity
Class AppUser

java.lang.Object
  extended by com.google.code.ssm.test.entity.AppUser
All Implemented Interfaces:
Externalizable, Serializable

public class AppUser
extends Object
implements Externalizable

Author:
Jakub BiaƂek
See Also:
Serialized Form

Constructor Summary
AppUser()
           
AppUser(AppUserPK pk)
           
AppUser(int userId, int applicationId)
           
 
Method Summary
 String cacheKey()
           
 boolean equals(Object obj)
           
 int getApplicationId()
           
 AppUserPK getPK()
           
 int getUserId()
           
 int getVersion()
           
 int hashCode()
           
 boolean isEnabled()
           
 void readExternal(ObjectInput in)
           
 void setApplicationId(int applicationId)
           
 void setEnabled(boolean enabled)
           
 void setUserId(int userId)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppUser

public AppUser()

AppUser

public AppUser(int userId,
               int applicationId)

AppUser

public AppUser(AppUserPK pk)
Method Detail

getUserId

public int getUserId()

setUserId

public void setUserId(int userId)

getApplicationId

public int getApplicationId()

setApplicationId

public void setApplicationId(int applicationId)

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getVersion

public int getVersion()

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

cacheKey

public String cacheKey()

getPK

public AppUserPK getPK()


Copyright © 2014. All rights reserved.