User.LotteryUser
persistent class User.LotteryUser extends %Library.Persistent
SQL Table Name: SQLUser.LotteryUser
The LotteryUser class represents a user for the CSP Lottery Example application.Property Inventory
Method Inventory
Properties
property FirstName as %String [ Required ];
Property methods: FirstNameDisplayToLogical(), FirstNameGet(), FirstNameGetStored(), FirstNameIsValid(), FirstNameLogicalToDisplay(), FirstNameLogicalToOdbc(), FirstNameNormalize(), FirstNameSet()
property History as list of LotteryActivity;
Property methods: HistoryBuildValueArray(), HistoryCollectionToDisplay(), HistoryCollectionToOdbc(), HistoryDisplayToCollection(), HistoryGet(), HistoryGetObject(), HistoryGetObjectId(), HistoryGetStored(), HistoryGetSwizzled(), HistoryIsValid(), HistoryOdbcToCollection(), HistorySet(), HistorySetObject(), HistorySetObjectId()
property LastName as %String [ Required ];
Property methods: LastNameDisplayToLogical(), LastNameGet(), LastNameGetStored(), LastNameIsValid(), LastNameLogicalToDisplay(), LastNameLogicalToOdbc(), LastNameNormalize(), LastNameSet()
property TotalBalance as %Integer [ InitialExpression = 0 ];
Property methods: TotalBalanceDisplayToLogical(), TotalBalanceGet(), TotalBalanceGetStored(), TotalBalanceIsValid(), TotalBalanceLogicalToDisplay(), TotalBalanceNormalize(), TotalBalanceSet()
property UserName as %String [ Required ];
Property methods: UserNameDisplayToLogical(), UserNameGet(), UserNameGetStored(), UserNameIsValid(), UserNameLogicalToDisplay(), UserNameLogicalToOdbc(), UserNameNormalize(), UserNameSet()
property VisitCount as %Integer [ InitialExpression = 0 ];
Property methods: VisitCountDisplayToLogical(), VisitCountGet(), VisitCountGetStored(), VisitCountIsValid(), VisitCountLogicalToDisplay(), VisitCountNormalize(), VisitCountSet()
Methods
classmethod addNewUser(UserName As %String, FirstName As %String, LastName As %String, pass As %String) as %Integer
Called by CSP page to add a new user.
Called by CSP page to add a new purchase. Returns amount of purchase.
Test if the name/password specifies a valid user. If so, return the user's ID.
Change the password for this user.
Find the ID of the user with the specified user name.
Test if pass is correct password for this user.
Indexes
index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()
index (UserNameIdx on UserName) [Unique];
Index methods: UserNameIdxCheck(), UserNameIdxCheckUnique(), UserNameIdxDelete(), UserNameIdxExists(), UserNameIdxOpen(), UserNameIdxSQLCheckUnique(), UserNameIdxSQLExists(), UserNameIdxSQLFindPKeyByConstraint(), UserNameIdxSQLFindRowIDByConstraint()
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %AddToSyncSet()
- %BMEBuilt()
- %CheckConstraints()
- %CheckConstraintsForExtent()
- %ClassIsLatestVersion()
- %ClassName()
- %ComposeOid()
- %ConstructClone()
- %Delete()
- %DeleteExtent()
- %DeleteId()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Exists()
- %ExistsId()
- %Extends()
- %GUID()
- %GUIDSet()
- %GetLock()
- %GetParameter()
- %GetSwizzleObject()
- %Id()
- %InsertBatch()
- %IsA()
- %IsModified()
- %IsNull()
- %KillExtent()
- %KillExtentData()
- %LoadFromMemory()
- %LockExtent()
- %LockId()
- %New()
- %NormalizeObject()
- %ObjectIsNull()
- %ObjectModified()
- %Oid()
- %OnBeforeAddToSync()
- %OnDetermineClass()
- %Open()
- %OpenId()
- %OriginalNamespace()
- %PackageName()
- %PhysicalAddress()
- %PurgeIndices()
- %Reload()
- %RemoveFromSaveSet()
- %ResolveConcurrencyConflict()
- %RollBack()
- %Save()
- %SaveDirect()
- %SaveIndices()
- %SerializeObject()
- %SetModified()
- %SortBegin()
- %SortEnd()
- %SyncObjectIn()
- %SyncTransport()
- %UnlockExtent()
- %UnlockId()
- %ValidateIndices()
- %ValidateObject()
Storage
Storage Model: CacheStorage (User.LotteryUser)
^User.LotteryUserD(ID) | = | %%CLASSNAME
FirstName
History
LastName
Password
TotalBalance
UserName
VisitCount
|