mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-16 09:55:09 +00:00
Remove a few unused methods
This commit is contained in:
parent
55491fd1bf
commit
b5e7e305c1
@ -41,7 +41,7 @@ public class ResourceHistoryTable extends BaseHasResource implements Serializabl
|
||||
/**
|
||||
* @see ResourceEncodingEnum
|
||||
*/
|
||||
public static final int ENCODING_COL_LENGTH = 5;
|
||||
static final int ENCODING_COL_LENGTH = 5;
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Id
|
||||
@SequenceGenerator(name = "SEQ_RESOURCE_HISTORY_ID", sequenceName = "SEQ_RESOURCE_HISTORY_ID")
|
||||
@ -82,19 +82,6 @@ public class ResourceHistoryTable extends BaseHasResource implements Serializabl
|
||||
return myProvenance;
|
||||
}
|
||||
|
||||
public void setProvenance(ResourceHistoryProvenanceEntity theProvenance) {
|
||||
myProvenance = theProvenance;
|
||||
}
|
||||
|
||||
public void addTag(ResourceHistoryTag theTag) {
|
||||
for (ResourceHistoryTag next : getTags()) {
|
||||
if (next.equals(theTag)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
getTags().add(theTag);
|
||||
}
|
||||
|
||||
public void addTag(ResourceTag theTag) {
|
||||
ResourceHistoryTag tag = new ResourceHistoryTag(this, theTag.getTag());
|
||||
tag.setResourceType(theTag.getResourceType());
|
||||
@ -126,10 +113,6 @@ public class ResourceHistoryTable extends BaseHasResource implements Serializabl
|
||||
return myId;
|
||||
}
|
||||
|
||||
public void setId(Long theId) {
|
||||
myId = theId;
|
||||
}
|
||||
|
||||
public byte[] getResource() {
|
||||
return myResource;
|
||||
}
|
||||
@ -159,7 +142,7 @@ public class ResourceHistoryTable extends BaseHasResource implements Serializabl
|
||||
@Override
|
||||
public Collection<ResourceHistoryTag> getTags() {
|
||||
if (myTags == null) {
|
||||
myTags = new ArrayList<ResourceHistoryTag>();
|
||||
myTags = new ArrayList<>();
|
||||
}
|
||||
return myTags;
|
||||
}
|
||||
@ -173,13 +156,4 @@ public class ResourceHistoryTable extends BaseHasResource implements Serializabl
|
||||
myResourceVersion = theVersion;
|
||||
}
|
||||
|
||||
public boolean hasTag(String theTerm, String theScheme) {
|
||||
for (ResourceHistoryTag next : getTags()) {
|
||||
if (next.getTag().getSystem().equals(theScheme) && next.getTag().getCode().equals(theTerm)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user