Cinema.Film
persistent class Cinema.Film extends %Library.Persistent
SQL Table Name: Cinema.Film
Information about filmsProperty Inventory
Properties
property Category as Cinema.FilmCategory;
Property methods: CategoryGet(), CategoryGetObject(), CategoryGetObjectId(), CategoryGetStored(), CategoryGetSwizzled(), CategoryIsValid(), CategoryNewObject(), CategorySet(), CategorySetObject(), CategorySetObjectId(), CategoryUnSwizzle()
property Description as %Library.String (MAXLEN = 300);
Property methods: DescriptionDisplayToLogical(), DescriptionGet(), DescriptionGetStored(), DescriptionIsValid(), DescriptionLogicalToDisplay(), DescriptionLogicalToOdbc(), DescriptionNormalize(), DescriptionSet()
property Length as Cinema.Duration;
Property methods: LengthDisplayToLogical(), LengthGet(), LengthGetStored(), LengthIsValid(), LengthLogicalToDisplay(), LengthNormalize(), LengthSet()
property PlayingNow as %Library.Boolean [ InitialExpression = 1 ];
Property methods: PlayingNowDisplayToLogical(), PlayingNowGet(), PlayingNowGetStored(), PlayingNowIsValid(), PlayingNowLogicalToDisplay(), PlayingNowNormalize(), PlayingNowSet()
property Rating as %Library.String (VALUELIST = ",G,PG,PG-13,R");
Property methods: RatingDisplayToLogical(), RatingGet(), RatingGetStored(), RatingIsValid(), RatingLogicalToDisplay(), RatingLogicalToOdbc(), RatingNormalize(), RatingSet()
property TicketsSold as %Library.Integer [ InitialExpression = 0 ];
Property methods: TicketsSoldDisplayToLogical(), TicketsSoldGet(), TicketsSoldGetStored(), TicketsSoldIsValid(), TicketsSoldLogicalToDisplay(), TicketsSoldNormalize(), TicketsSoldSet()
property Title as %Library.String [ Required ];
Property methods: TitleDisplayToLogical(), TitleGet(), TitleGetStored(), TitleIsValid(), TitleLogicalToDisplay(), TitleLogicalToOdbc(), TitleNormalize(), TitleSet()
Queries
query TopCategory(P1 As %Library.String)
Selects ID, Description As %Library.String, Length As Cinema.Duration, Rating As %Library.String, Title As %Library.String, CategoryName As %Library.String
SQL Query:
SELECT TOP 3 ID, Description, Length, Rating, Title, Category->CategoryName FROM Film WHERE (PlayingNow = 1) AND (Category = :P1) ORDER BY TicketsSold DESC
SELECT TOP 3 ID, Description, Length, Rating, Title, Category->CategoryName FROM Film WHERE (PlayingNow = 1) AND (Category = :P1) ORDER BY TicketsSold DESC
Top films (by tickets sold) in a genre
query TopFilms(P1 As %Library.String)
Selects ID, Description As %Library.String, Length As Cinema.Duration, Rating As %Library.String, Title As %Library.String, CategoryName As %Library.String
SQL Query:
SELECT Top 3 ID, Description, Length, Rating, Title, Category->CategoryName FROM Film WHERE (PlayingNow = 1) ORDER BY TicketsSold DESC
SELECT Top 3 ID, Description, Length, Rating, Title, Category->CategoryName FROM Film WHERE (PlayingNow = 1) ORDER BY TicketsSold DESC
List of most popular films.
Indexes
index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()
index (TicketsSoldIndex on TicketsSold);
Index for property TicketsSold
Index methods: TicketsSoldIndexExists()
index (TitleIndex on Title);
Index for property Title
Index methods: TitleIndexExists()
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
Gray indicates storage defined by superclasses.
Storage Model: CacheStorage (Cinema.Film)
^CinemaooFilmD(ID) | = | Description
PlayingNow
TicketsSold
Title
Category
Length
Rating
%%CLASSNAME
|