# class StorageModel

###

Module | soprano
Namespace | Soprano
Class | StorageModel
Inherits | Soprano::Model

\class StorageModel storagemodel.h Soprano/StorageModel

Base class for all Model implementations that store data (as compared to FilterModel).

The StorageModel implements some of the methods from Model which may be equal for different backends.

See also Backend.createModel()

Author Sebastian Trueg <trueg@kde.org>

### methods

- StorageModel (backend)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  backend | Soprano.Backend |

  backend - The Backend that created this model.

- backend ( )

  returns Soprano.Backend

  Returns The backend that was used to create this model.

- containsAnyStatement (statement)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  statement | Soprano.Statement |

  Default implementation is based on Model.listStatements

- containsStatement (statement)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  statement | Soprano.Statement |

  Default implementation is based on Model.listStatements

- isEmpty ( )

  returns bool

  Default implementation is based on Model.statementCount

- removeAllStatements (statement)

  returns Soprano.Error.ErrorCode

  Argument | Type | Default
  --- | --- | ---
  statement | Soprano.Statement |

  Default implementation is based on listStatements() and removeStatement().