com.fuse.storage.sql.data_objects
Class SQLFUSEUser

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

public class SQLFUSEUser
extends FUSEUser
implements SQLDataObject

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

See Also:
Serialized Form

Field Summary
static java.text.SimpleDateFormat sdf
           
 
Constructor Summary
SQLFUSEUser()
           
 
Method Summary
 void delete(java.sql.Connection con)
           
 java.lang.String getAddress()
           
 int getAge()
           
 java.lang.String getCustomData()
           
 java.lang.String getEmail()
           
 java.lang.String getFigure()
           
 long getId()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 java.lang.String getPhoneNumber()
           
 java.lang.String getPostLocation()
           
 java.lang.String getProperty(java.lang.String type)
           
 java.lang.String getRealFirstName()
           
 java.lang.String getRealLastName()
           
 java.lang.String getSex()
           
 FUSEUser getUserById(long searchId)
           
 FUSEUser getUserWithName(java.lang.String name)
           
 java.lang.String getZipCode()
           
 void insert(java.sql.Connection con)
           
 boolean isFemale()
           
 boolean isMale()
           
 boolean loadById(java.sql.Connection con, long searchId)
           
 void removeProperty(java.lang.String type)
           
 void setAddress(java.lang.String s)
           
 void setAge(int age)
           
 void setCustomData(java.lang.String s)
           
 void setEmail(java.lang.String s)
           
 void setFigure(java.lang.String s)
           
 void setName(java.lang.String name)
           
 void setPassword(java.lang.String s)
           
 void setPhoneNumber(java.lang.String s)
           
 void setPostLocation(java.lang.String s)
           
 void setProperty(java.lang.String type, java.lang.String value)
           
 void setRealFirstName(java.lang.String s)
           
 void setRealLastName(java.lang.String s)
           
 void setRealName(java.lang.String firstName, java.lang.String lastName)
           
 void setSex(boolean male)
           
 void setZipCode(java.lang.String s)
           
 java.lang.String toFusePString()
           
 void update(java.sql.Connection con)
           
 
Methods inherited from class com.fuse.storage.data_objects.FUSEUser
getCacheKey, getRealName, getType, handleFusePRegistration, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.fuse.storage.FUSEDataObject
getCacheKey, getType
 

Field Detail

sdf

public static final java.text.SimpleDateFormat sdf
Constructor Detail

SQLFUSEUser

public SQLFUSEUser()
Method Detail

insert

public void insert(java.sql.Connection con)
            throws DatabaseException
Specified by:
insert in interface SQLDataObject
Throws:
DatabaseException

update

public void update(java.sql.Connection con)
            throws DatabaseException
Specified by:
update in interface SQLDataObject
Throws:
DatabaseException

delete

public void delete(java.sql.Connection con)
            throws DatabaseException
Specified by:
delete in interface SQLDataObject
Throws:
DatabaseException

loadById

public boolean loadById(java.sql.Connection con,
                        long searchId)
                 throws DatabaseException
Throws:
DatabaseException

getId

public long getId()
Specified by:
getId in class FUSEUser

setName

public void setName(java.lang.String name)
Specified by:
setName in class FUSEUser

getName

public java.lang.String getName()
Specified by:
getName in class FUSEUser

setPassword

public void setPassword(java.lang.String s)
Specified by:
setPassword in class FUSEUser

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in class FUSEUser

setFigure

public void setFigure(java.lang.String s)
Specified by:
setFigure in class FUSEUser

getFigure

public java.lang.String getFigure()
Specified by:
getFigure in class FUSEUser

getSex

public java.lang.String getSex()
Specified by:
getSex in class FUSEUser

setSex

public void setSex(boolean male)
Specified by:
setSex in class FUSEUser

isMale

public boolean isMale()
Specified by:
isMale in class FUSEUser

isFemale

public boolean isFemale()
Specified by:
isFemale in class FUSEUser

setRealName

public void setRealName(java.lang.String firstName,
                        java.lang.String lastName)
Specified by:
setRealName in class FUSEUser

setRealFirstName

public void setRealFirstName(java.lang.String s)
Specified by:
setRealFirstName in class FUSEUser

setRealLastName

public void setRealLastName(java.lang.String s)
Specified by:
setRealLastName in class FUSEUser

getRealLastName

public java.lang.String getRealLastName()
Specified by:
getRealLastName in class FUSEUser

getRealFirstName

public java.lang.String getRealFirstName()
Specified by:
getRealFirstName in class FUSEUser

setPhoneNumber

public void setPhoneNumber(java.lang.String s)
Specified by:
setPhoneNumber in class FUSEUser

getPhoneNumber

public java.lang.String getPhoneNumber()
Specified by:
getPhoneNumber in class FUSEUser

setAddress

public void setAddress(java.lang.String s)
Specified by:
setAddress in class FUSEUser

getAddress

public java.lang.String getAddress()
Specified by:
getAddress in class FUSEUser

setZipCode

public void setZipCode(java.lang.String s)
Specified by:
setZipCode in class FUSEUser

getZipCode

public java.lang.String getZipCode()
Specified by:
getZipCode in class FUSEUser

setPostLocation

public void setPostLocation(java.lang.String s)
Specified by:
setPostLocation in class FUSEUser

getPostLocation

public java.lang.String getPostLocation()
Specified by:
getPostLocation in class FUSEUser

setEmail

public void setEmail(java.lang.String s)
Specified by:
setEmail in class FUSEUser

getEmail

public java.lang.String getEmail()
Specified by:
getEmail in class FUSEUser

setAge

public void setAge(int age)
Specified by:
setAge in class FUSEUser

getAge

public int getAge()
Specified by:
getAge in class FUSEUser

setCustomData

public void setCustomData(java.lang.String s)
Specified by:
setCustomData in class FUSEUser

getCustomData

public java.lang.String getCustomData()
Specified by:
getCustomData in class FUSEUser

setProperty

public void setProperty(java.lang.String type,
                        java.lang.String value)
Specified by:
setProperty in class FUSEUser

getProperty

public java.lang.String getProperty(java.lang.String type)
Specified by:
getProperty in class FUSEUser

removeProperty

public void removeProperty(java.lang.String type)
Specified by:
removeProperty in class FUSEUser

toFusePString

public java.lang.String toFusePString()
Overrides:
toFusePString in class FUSEUser

getUserWithName

public FUSEUser getUserWithName(java.lang.String name)
                         throws DatabaseException
Specified by:
getUserWithName in class FUSEUser
Throws:
DatabaseException

getUserById

public FUSEUser getUserById(long searchId)
                     throws DatabaseException
Specified by:
getUserById in class FUSEUser
Throws:
DatabaseException