org.sonar.batch.indexer
Class LibraryPersister

java.lang.Object
  extended by org.sonar.batch.indexer.ResourcePersister<Library>
      extended by org.sonar.batch.indexer.LibraryPersister

public class LibraryPersister
extends ResourcePersister<Library>


Constructor Summary
LibraryPersister(DatabaseSession session)
           
 
Method Summary
protected  Snapshot createSnapshot(Bucket<Library> bucket, ResourceModel resourceModel)
           
protected  String generateEffectiveKey(Bucket<Library> bucket)
           
protected  void prepareResourceModel(ResourceModel resourceModel, Bucket<Library> bucket)
           
 
Methods inherited from class org.sonar.batch.indexer.ResourcePersister
getSession, persist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibraryPersister

public LibraryPersister(DatabaseSession session)
Method Detail

generateEffectiveKey

protected String generateEffectiveKey(Bucket<Library> bucket)
Specified by:
generateEffectiveKey in class ResourcePersister<Library>

prepareResourceModel

protected void prepareResourceModel(ResourceModel resourceModel,
                                    Bucket<Library> bucket)
Specified by:
prepareResourceModel in class ResourcePersister<Library>

createSnapshot

protected Snapshot createSnapshot(Bucket<Library> bucket,
                                  ResourceModel resourceModel)
Specified by:
createSnapshot in class ResourcePersister<Library>


Copyright © 2009-2010 SonarSource SA. All Rights Reserved.