org.sonar.persistence.model
Class DuplicationUnit

java.lang.Object
  extended by org.sonar.persistence.model.DuplicationUnit

public class DuplicationUnit
extends Object

A simple DTO (Data Transfer Object) class that provides the mapping of data to a table.


Constructor Summary
DuplicationUnit()
           
DuplicationUnit(Integer projectSnapshotId, Integer snapshotId, String hash, Integer indexInFile, Integer startLine, Integer endLine)
           
 
Method Summary
 int getEndLine()
           
 String getHash()
           
 Long getId()
           
 int getIndexInFile()
           
 Integer getProjectSnapshotId()
           
 String getResourceKey()
           
 Integer getSnapshotId()
           
 int getStartLine()
           
 void setEndLine(int endLine)
           
 void setHash(String hash)
           
 void setId(Long id)
           
 void setIndexInFile(int indexInFile)
           
 void setProjectSnapshotId(Integer projectSnapshotId)
           
 void setResourceKey(String resourceKey)
           
 void setSnapshotId(Integer snapshotId)
           
 void setStartLine(int startLine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicationUnit

public DuplicationUnit()

DuplicationUnit

public DuplicationUnit(Integer projectSnapshotId,
                       Integer snapshotId,
                       String hash,
                       Integer indexInFile,
                       Integer startLine,
                       Integer endLine)
Method Detail

getId

public Long getId()

setId

public void setId(Long id)

getSnapshotId

public Integer getSnapshotId()

setSnapshotId

public void setSnapshotId(Integer snapshotId)

getProjectSnapshotId

public Integer getProjectSnapshotId()

setProjectSnapshotId

public void setProjectSnapshotId(Integer projectSnapshotId)

getHash

public String getHash()

setHash

public void setHash(String hash)

getIndexInFile

public int getIndexInFile()

setIndexInFile

public void setIndexInFile(int indexInFile)

getStartLine

public int getStartLine()

setStartLine

public void setStartLine(int startLine)

getEndLine

public int getEndLine()

setEndLine

public void setEndLine(int endLine)

getResourceKey

public String getResourceKey()

setResourceKey

public void setResourceKey(String resourceKey)


Copyright © 2009-2011 SonarSource. All Rights Reserved.