com.fuse.storage.data_objects
Class FUSEUser

java.lang.Object
  extended by com.fuse.storage.data_objects.FUSEUser
All Implemented Interfaces:
FUSEDataObject, java.io.Serializable
Direct Known Subclasses:
SQLFUSEUser

public abstract class FUSEUser
extends java.lang.Object
implements FUSEDataObject, java.io.Serializable

FUSEUser represents a registered user of a FUSE-service. Name implementation classes FUSEUser, like SQLFUSEUser

See Also:
Serialized Form

Constructor Summary
FUSEUser()
           
 
Method Summary
abstract  java.lang.String getAddress()
           
abstract  int getAge()
           
 java.lang.String getCacheKey()
          Returns the cache key of this object or null if the object is not cacheable.
abstract  java.lang.String getCustomData()
           
abstract  java.lang.String getEmail()
           
abstract  java.lang.String getFigure()
           
abstract  long getId()
           
abstract  java.lang.String getName()
           
abstract  java.lang.String getPassword()
           
abstract  java.lang.String getPhoneNumber()
           
abstract  java.lang.String getPostLocation()
           
abstract  java.lang.String getProperty(java.lang.String type)
           
abstract  java.lang.String getRealFirstName()
           
abstract  java.lang.String getRealLastName()
           
 java.lang.String getRealName()
           
abstract  java.lang.String getSex()
           
 java.lang.String getType()
          Returns the type of this object
abstract  FUSEUser getUserById(long id)
           
abstract  FUSEUser getUserWithName(java.lang.String name)
           
abstract  java.lang.String getZipCode()
           
 void handleFusePRegistration(java.lang.String data)
           
abstract  boolean isFemale()
           
abstract  boolean isMale()
           
abstract  void removeProperty(java.lang.String type)
           
abstract  void setAddress(java.lang.String s)
           
abstract  void setAge(int age)
           
abstract  void setCustomData(java.lang.String s)
           
abstract  void setEmail(java.lang.String s)
           
abstract  void setFigure(java.lang.String s)
           
abstract  void setName(java.lang.String name)
           
abstract  void setPassword(java.lang.String s)
           
abstract  void setPhoneNumber(java.lang.String s)
           
abstract  void setPostLocation(java.lang.String s)
           
abstract  void setProperty(java.lang.String type, java.lang.String value)
           
abstract  void setRealFirstName(java.lang.String s)
           
abstract  void setRealLastName(java.lang.String s)
           
abstract  void setRealName(java.lang.String firstName, java.lang.String lastname)
           
abstract  void setSex(boolean male)
           
abstract  void setZipCode(java.lang.String s)
           
 java.lang.String toFusePString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FUSEUser

public FUSEUser()
Method Detail

getType

public java.lang.String getType()
Description copied from interface: FUSEDataObject
Returns the type of this object

Specified by:
getType in interface FUSEDataObject

getCacheKey

public java.lang.String getCacheKey()
Returns the cache key of this object or null if the object is not cacheable. NOTE that the cache key must be unique only between objects of same class: the database cache implementation should differ between classes.

Specified by:
getCacheKey in interface FUSEDataObject

getId

public abstract long getId()

setName

public abstract void setName(java.lang.String name)

getName

public abstract java.lang.String getName()

setPassword

public abstract void setPassword(java.lang.String s)

getPassword

public abstract java.lang.String getPassword()

setFigure

public abstract void setFigure(java.lang.String s)

getFigure

public abstract java.lang.String getFigure()

getSex

public abstract java.lang.String getSex()

setSex

public abstract void setSex(boolean male)

isMale

public abstract boolean isMale()

isFemale

public abstract boolean isFemale()

setRealName

public abstract void setRealName(java.lang.String firstName,
                                 java.lang.String lastname)

setRealFirstName

public abstract void setRealFirstName(java.lang.String s)

setRealLastName

public abstract void setRealLastName(java.lang.String s)

getRealName

public java.lang.String getRealName()

getRealLastName

public abstract java.lang.String getRealLastName()

getRealFirstName

public abstract java.lang.String getRealFirstName()

setPhoneNumber

public abstract void setPhoneNumber(java.lang.String s)

getPhoneNumber

public abstract java.lang.String getPhoneNumber()

setAddress

public abstract void setAddress(java.lang.String s)

getAddress

public abstract java.lang.String getAddress()

setZipCode

public abstract void setZipCode(java.lang.String s)

getZipCode

public abstract java.lang.String getZipCode()

setPostLocation

public abstract void setPostLocation(java.lang.String s)

getPostLocation

public abstract java.lang.String getPostLocation()

setEmail

public abstract void setEmail(java.lang.String s)

getEmail

public abstract java.lang.String getEmail()

setAge

public abstract void setAge(int age)

getAge

public abstract int getAge()

setCustomData

public abstract void setCustomData(java.lang.String s)

getCustomData

public abstract java.lang.String getCustomData()

setProperty

public abstract void setProperty(java.lang.String type,
                                 java.lang.String value)

getProperty

public abstract java.lang.String getProperty(java.lang.String type)

removeProperty

public abstract void removeProperty(java.lang.String type)

getUserWithName

public abstract FUSEUser getUserWithName(java.lang.String name)
                                  throws DatabaseException
Throws:
DatabaseException

getUserById

public abstract FUSEUser getUserById(long id)
                              throws DatabaseException
Throws:
DatabaseException

toFusePString

public java.lang.String toFusePString()

handleFusePRegistration

public void handleFusePRegistration(java.lang.String data)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object