Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Store\Sql\Terms\DatabaseItemTermStoreWriter Class Reference

ItemTermStoreWriter implementation for the 2019 SQL based secondary item term storage. More...

+ Inheritance diagram for Wikibase\Lib\Store\Sql\Terms\DatabaseItemTermStoreWriter:
+ Collaboration diagram for Wikibase\Lib\Store\Sql\Terms\DatabaseItemTermStoreWriter:

Public Member Functions

 storeTerms (ItemId $itemId, Fingerprint $fingerprint)
 Updates the stored terms for the specified item.
 
 deleteTerms (ItemId $itemId)
 
- Public Member Functions inherited from Wikibase\Lib\Store\Sql\Terms\DatabaseTermStoreWriterBase
 __construct (RepoDomainDb $repoDb, JobQueueGroup $jobQueueGroup, TermInLangIdsAcquirer $termInLangIdsAcquirer, TermInLangIdsResolver $termInLangIdsResolver, StringNormalizer $stringNormalizer)
 

Protected Member Functions

 makeMapping ()
 
- Protected Member Functions inherited from Wikibase\Lib\Store\Sql\Terms\DatabaseTermStoreWriterBase
 delete (Int32EntityId $entityId)
 
 store (Int32EntityId $entityId, Fingerprint $fingerprint)
 

Detailed Description

ItemTermStoreWriter implementation for the 2019 SQL based secondary item term storage.

This can only be used to write to Item term stores on the local database.

See also
Item & Property Terms

Member Function Documentation

◆ deleteTerms()

Wikibase\Lib\Store\Sql\Terms\DatabaseItemTermStoreWriter::deleteTerms ( ItemId $itemId)
Exceptions
TermStoreException

Implements Wikibase\DataModel\Services\Term\ItemTermStoreWriter.

◆ makeMapping()

Wikibase\Lib\Store\Sql\Terms\DatabaseItemTermStoreWriter::makeMapping ( )
protected

◆ storeTerms()

Wikibase\Lib\Store\Sql\Terms\DatabaseItemTermStoreWriter::storeTerms ( ItemId $itemId,
Fingerprint $terms )

Updates the stored terms for the specified item.

Exceptions
TermStoreException

Implements Wikibase\DataModel\Services\Term\ItemTermStoreWriter.


The documentation for this class was generated from the following file: