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

For information on migrating to InterSystems IRISOpens in a new window, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions pageOpens in a new window (login required).


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()


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 Model: CacheStorage (%BI.BlogPost)

FeedbackOpens in a new window