class Lutaml::Qea::Models::EaDocument
Stores documentation style templates and artifacts
Represents a document from the t_document table in EA database
def self.from_db_row(row)
-
(EaDocument, nil)- New instance or nil if row is nil
Parameters:
-
row(Hash) -- Database row with string keys
def self.from_db_row(row) return nil if row.nil? new( doc_id: row["DocID"], doc_name: row["DocName"], doc_type: row["DocType"], str_content: row["StrContent"], bin_content: row["BinContent"], element_id: row["ElementID"], ) end
def self.primary_key_column
def self.primary_key_column :doc_id end
def self.table_name
def self.table_name "t_document" end
def has_binary_content?
-
(Boolean)-
def has_binary_content? !bin_content.nil? && !bin_content.empty? end
def has_content?
-
(Boolean)-
def has_content? !str_content.nil? && !str_content.empty? end
def style_document?
-
(Boolean)-
def style_document? doc_type == "SSDOCSTYLE" end