This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > ENSLIB namespace > %BI.BlogPost

%BI.BlogPost

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

SQL Table Name: %BI.BlogPost

Property Inventory (Including Private)

Properties (Including Private)

relationship Blog as %BI.Blog [ Required , Inverse = Post , Cardinality = parent ];
Property methods: BlogCheck(), BlogDelete(), 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

Inherited Members

Inherited Methods (Including Private)

Storage

Storage Model: CacheStorage (%BI.BlogPost)

{%%PARENT}("P")(ID)
=
%%CLASSNAME
Category
DateTime
Post
PostUser
SubCategory
Title
PostMessage