contentbox.model.content

Class Stats

railo-context.Component
        extended by contentbox.model.content.Stats
Class Attributes:
  • entityname : cbStats
  •  
  • cacheuse : read-write
  •  
  • table : cb_stats
  •  
  • synchronized : false
  •  
  • cachename : cbStats
  •  
  • batchsize : 25
  •  
  • accessors : false
  •  
  • persistent : true
  •  

    A class to track stats for content

    Property Summary
    type property default serializable required
    any hits


    • notnull = false
    • ormtype = long
    0 true false
    any relatedContent


    • fieldtype = one-to-one
    • fetch = join
    • notnull = true
    • fkcolumn = FK_contentID
    • cfc = contentbox.model.content.BaseContent
    • lazy = true
    true false
    any statsID


    • fieldtype = id
    • generator = native
    • setter = no
    true false
    Constructor Summary
    init()
          constructor.
    Method Summary
    string getHits()
    string getRelatedContent()
    string getStatsID()
    boolean hasRelatedContent([any relatedContent])
    any setHits(any hits)
    any setRelatedContent(any relatedContent)
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init()

    constructor


    Property Detail

    hits

    property any hits = [0]

    Attributes:
    required - false
    notnull - false
    ormtype - long
    serializable - true

    relatedContent

    property any relatedContent

    Attributes:
    required - false
    fieldtype - one-to-one
    fetch - join
    notnull - true
    fkcolumn - FK_contentID
    serializable - true
    cfc - contentbox.model.content.BaseContent
    lazy - true

    statsID

    property any statsID

    Attributes:
    required - false
    fieldtype - id
    generator - native
    serializable - true
    setter - no

    Method Detail

    getHits

    public string getHits()


    getRelatedContent

    public string getRelatedContent()


    getStatsID

    public string getStatsID()


    hasRelatedContent

    public boolean hasRelatedContent([any relatedContent])

    Parameters:
    relatedContent

    setHits

    public any setHits(any hits)

    Parameters:
    hits

    setRelatedContent

    public any setRelatedContent(any relatedContent)

    Parameters:
    relatedContent