Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

Cinema.Film

persistent class Cinema.Film extends %Library.Persistent

SQL Table Name: Cinema.Film

Information about films

Property 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
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
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

Storage

Gray indicates storage defined by superclasses.

Storage Model: CacheStorage (Cinema.Film)

^CinemaooFilmD(ID)
=
Description
PlayingNow
TicketsSold
Title
Category
Length
Rating
%%CLASSNAME
FeedbackOpens in a new tab