Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

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.
classmethod addPurchase(id As %String, type As %String) as %Float
Called by CSP page to add a new purchase. Returns amount of purchase.
classmethod authenticate(UserName As %String, Password As %String) as %String
Test if the name/password specifies a valid user. If so, return the user's ID.
method changePassword(pass As %String) as %Integer
Change the password for this user.
classmethod findUser(UserName As %String) as %String
Find the ID of the user with the specified user name.
method testPassword(pass As %String) as %Boolean
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

Storage

Storage Model: CacheStorage (User.LotteryUser)

^User.LotteryUserD(ID)
=
%%CLASSNAME
FirstName
History
LastName
Password
TotalBalance
UserName
VisitCount
FeedbackOpens in a new tab