DataClass

New in 1.34.0 (BETA)

DataClass

A DataClass can be provided via Scrivito.provideDataClass.

Instance method summary

  • all()
    Returns a new DataScope that includes all items of this class.
  • attributeDefinitions()
    Returns the schema provided via Scrivito.provideDataClass or Scrivito.provideDataItem.
  • create(attributes)
    Creates data and returns a corresponding new DataItem instance. The attributes are provided to the corresponding create callback (see Scrivito.provideDataClass).
  • get(id)
    Returns the DataItem instance with the ID passed in.
  • name()
    Returns the name of the DataClass.