Skip to main content

%BI.BlogPost

persistent class %BI.BlogPost extends %Library.Persistent, %BI.Adaptor, %XML.Adaptor

SQL Table Name: %BI.BlogPost

Property Inventory

Properties

relationship Blog as %BI.Blog [ Required , Inverse = Post , Cardinality = parent ];
Property methods: BlogGet(), BlogGetObject(), BlogGetObjectId(), BlogGetStored(), BlogGetSwizzled(), BlogIsValid(), BlogNewObject(), BlogOnDelete(), BlogRClose(), BlogRExec(), BlogRFetch(), BlogRelate(), BlogSQLCompute(), BlogSet(), BlogSetObject(), BlogSetObjectId(), BlogUnRelate(), BlogUnSwizzle()
property Category as %String (TRUNCATE = 1);
Property methods: CategoryDisplayToLogical(), CategoryGet(), CategoryGetStored(), CategoryIsValid(), CategoryLogicalToDisplay(), CategoryLogicalToOdbc(), CategoryNormalize(), CategorySet()
relationship Comment as array of %BI.BlogComment [ InitialExpression = $listbuild("%BI.BlogComment","Post",+$this,"children",1,1) , Transient , Inverse = Post , Cardinality = children ];
Property methods: CommentGet(), CommentGetObject(), CommentGetObjectId(), CommentGetSwizzled(), CommentIsEmpty(), CommentIsValid(), CommentNewObject(), CommentRClose(), CommentRExec(), CommentRFetch(), CommentRelate(), CommentSQLCompute(), CommentSet(), CommentUnRelate()
property DateTime as %String (MAXLEN = 100, TRUNCATE = 1);
Property methods: DateTimeDisplayToLogical(), DateTimeGet(), DateTimeGetStored(), DateTimeIsValid(), DateTimeLogicalToDisplay(), DateTimeLogicalToOdbc(), DateTimeNormalize(), DateTimeSet()
property PostMessage as %String (MAXLEN = 25000, TRUNCATE = 1);
Property methods: PostMessageDisplayToLogical(), PostMessageGet(), PostMessageGetStored(), PostMessageIsValid(), PostMessageLogicalToDisplay(), PostMessageLogicalToOdbc(), PostMessageNormalize(), PostMessageSet()
property PostUser as %String (MAXLEN = 250, TRUNCATE = 1);
Property methods: PostUserDisplayToLogical(), PostUserGet(), PostUserGetStored(), PostUserIsValid(), PostUserLogicalToDisplay(), PostUserLogicalToOdbc(), PostUserNormalize(), PostUserSet()
property SubCategory as %String (TRUNCATE = 1);
Property methods: SubCategoryDisplayToLogical(), SubCategoryGet(), SubCategoryGetStored(), SubCategoryIsValid(), SubCategoryLogicalToDisplay(), SubCategoryLogicalToOdbc(), SubCategoryNormalize(), SubCategorySet()
property Title as %String (MAXLEN = 250, TRUNCATE = 1);
Property methods: TitleDisplayToLogical(), TitleGet(), TitleGetStored(), TitleIsValid(), TitleLogicalToDisplay(), TitleLogicalToOdbc(), TitleNormalize(), TitleSet()

Queries

query ByBlogId(BlogID)
SQL Query:
SELECT ID,PostUser,DateTime,Title,PostMessage,Category FROM BlogPost WHERE Blog->ID=:BlogID
query ListAll()
SQL Query:
SELECT Category FROM BlogPost

Indexes

index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods

Storage

Storage Model: CacheStorage (%BI.BlogPost)

{%%PARENT}("P")(ID)
=
%%CLASSNAME
Category
DateTime
Post
PostUser
SubCategory
Title
PostMessage
FeedbackOpens in a new tab