contentbox.models.content

Class Stats

lucee.Component
    extended by contentbox.models.BaseEntityMethods
      extended by contentbox.models.BaseEntity
        extended by contentbox.models.content.Stats

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- A class to track stats for content

Class Attributes:
  • entityname : cbStats
  •  
  • cacheuse : read-write
  •  
  • table : cb_stats
  •  
  • synchronized : false
  •  
  • cachename : cbStats
  •  
  • batchsize : 25
  •  
  • accessors : false
  •  
  • persistent : true
  •  
    Property Summary
    type property default serializable required
    date createdDate


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = timestamp
    • update = false
    • index = idx_createDate
    true false
    any hits


    • access = public
    • returntype = any
    • notnull = false
    • ormtype = long
    0 true false
    any isDeleted


    • access = public
    • dbdefault = 0
    • returntype = any
    • notnull = true
    • ormtype = boolean
    • index = idx_deleted
    • sqltype = bit
    false true false
    date modifiedDate


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = timestamp
    • index = idx_modifiedDate
    true false
    any relatedContent


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


    • access = public
    • fieldtype = id
    • returntype = any
    • params = { allocationSize = 1, sequence = 'statsID_seq' }
    • generator = native
    • setter = no
    true false
    Constructor Summary
    init()
          constructor.
    Method Summary
    string getHits()
    any getMemento([any excludes=''])
         Get memento representation.
    string getRelatedContent()
    string getStatsID()
    boolean hasRelatedContent([any relatedContent])
    any setHits(any hits)
    any setRelatedContent(any relatedContent)
     
    Methods inherited from class contentbox.models.BaseEntity
    getCreatedDate, getIsDeleted, getModifiedDate, setCreatedDate, setIsDeleted, setModifiedDate
     
    Methods inherited from class contentbox.models.BaseEntityMethods
    getBaseMemento, getDisplayCreatedDate, getDisplayModifiedDate, isLoaded, preInsert, preUpdate
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    constructor


    Property Detail

    createdDate

    property date createdDate

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    ormtype - timestamp
    update - false
    index - idx_createDate
    serializable - true

    hits

    property any hits = [0]

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - false
    ormtype - long
    serializable - true

    isDeleted

    property any isDeleted = [false]

    Attributes:
    access - public
    required - false
    dbdefault - 0
    returntype - any
    notnull - true
    ormtype - boolean
    index - idx_deleted
    serializable - true
    sqltype - bit

    modifiedDate

    property date modifiedDate

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    ormtype - timestamp
    index - idx_modifiedDate
    serializable - true

    relatedContent

    property any relatedContent

    Attributes:
    access - public
    required - false
    fieldtype - one-to-one
    returntype - any
    fetch - join
    notnull - true
    fkcolumn - FK_contentID
    serializable - true
    cfc - contentbox.models.content.BaseContent
    lazy - true

    statsID

    property any statsID

    Attributes:
    access - public
    required - false
    fieldtype - id
    returntype - any
    params - { allocationSize = 1, sequence = 'statsID_seq' }
    generator - native
    serializable - true
    setter - no

    Method Detail

    getHits

    public string getHits()


    getMemento

    public any getMemento([any excludes=''])

    Get memento representation

    Parameters:
    excludes

    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