|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscone.netobjects.TableRecord
scone.netobjects.User
public class User
A User represents a Scone user.
One user can be associated to several persons.
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
protected static DBTableAdapter |
dbTable
|
protected Person |
person
|
| Fields inherited from class scone.netobjects.TableRecord |
|---|
ctei, date, fieldValues, hasChanged, hasRecordInDB, persistent |
| Constructor Summary | |
|---|---|
User(long id)
Create a new user object with a name if it doesn't exist in the db yet. |
|
User(long id,
boolean create)
Check if a user to an id exists in the db. |
|
User(java.sql.ResultSet results)
Create User to result of DB query. |
|
User(java.lang.String name)
Create a new user object |
|
User(java.lang.String name,
boolean create)
Check if a user to a name exists in the db yet. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getKey(int KeyNo)
returns the hashkey for this object (to be deprecated!) |
java.lang.String |
getLastLogin()
|
Person |
getPerson()
returns the person data to this user |
java.lang.String |
getPersonId()
returns the personId to the user: One person can have several accounts. |
java.lang.String |
getUserId()
returns the id of that user |
java.lang.String |
getUserName()
returns the name of the user |
java.lang.String |
getUserPass()
returns the password of the user |
void |
setLastLogin(java.lang.String value)
|
void |
setPersonId(java.lang.String value)
sets the personId to the user: One person can have several accounts. |
void |
setUserPass(java.lang.String value)
sets the password of the user |
void |
store()
store object to database. |
| Methods inherited from class scone.netobjects.TableRecord |
|---|
isPersistent, now, setCacheTableEntryInterface, setChanged, setPersistent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COPYRIGHT
protected static DBTableAdapter dbTable
protected Person person
| Constructor Detail |
|---|
public User(java.lang.String name,
boolean create)
name - the name of the usercreate - create in DB if the user does not yet exist. false: check onlypublic User(java.lang.String name)
public User(java.sql.ResultSet results)
results - the resultset returned by the query
public User(long id,
boolean create)
id - the id of the usercreate - create in DB if the user does not yet exist. false: check onlypublic User(long id)
name - the name of the user| Method Detail |
|---|
public java.lang.String getUserId()
public java.lang.String getUserName()
public java.lang.String getPersonId()
public void setPersonId(java.lang.String value)
value - the personIdpublic Person getPerson()
public java.lang.String getUserPass()
public void setUserPass(java.lang.String value)
value - the passwordpublic java.lang.String getLastLogin()
public void setLastLogin(java.lang.String value)
public void store()
public java.lang.Object getKey(int KeyNo)
Cacheable
getKey in interface CacheablegetKey in class TableRecordKeyNo - the number of the key to be generated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||