Code cleanup

This commit is contained in:
James Agnew 2018-07-16 08:16:40 -04:00
parent 401a4cd738
commit 4b3287c6a9
2 changed files with 21 additions and 9 deletions

View File

@ -63,6 +63,7 @@ public abstract class BaseHasResource implements IBaseResourceEntity {
public abstract BaseTag addTag(TagDefinition theDef); public abstract BaseTag addTag(TagDefinition theDef);
@Override
public Date getDeleted() { public Date getDeleted() {
return myDeleted; return myDeleted;
} }
@ -72,6 +73,7 @@ public abstract class BaseHasResource implements IBaseResourceEntity {
} }
@Override
public FhirVersionEnum getFhirVersion() { public FhirVersionEnum getFhirVersion() {
return myFhirVersion; return myFhirVersion;
} }
@ -88,10 +90,13 @@ public abstract class BaseHasResource implements IBaseResourceEntity {
myForcedId = theForcedId; myForcedId = theForcedId;
} }
@Override
public abstract Long getId(); public abstract Long getId();
@Override
public abstract IdDt getIdDt(); public abstract IdDt getIdDt();
@Override
public InstantDt getPublished() { public InstantDt getPublished() {
if (myPublished != null) { if (myPublished != null) {
return new InstantDt(myPublished); return new InstantDt(myPublished);
@ -104,12 +109,15 @@ public abstract class BaseHasResource implements IBaseResourceEntity {
myPublished = thePublished; myPublished = thePublished;
} }
@Override
public abstract Long getResourceId(); public abstract Long getResourceId();
@Override
public abstract String getResourceType(); public abstract String getResourceType();
public abstract Collection<? extends BaseTag> getTags(); public abstract Collection<? extends BaseTag> getTags();
@Override
public InstantDt getUpdated() { public InstantDt getUpdated() {
return new InstantDt(myUpdated); return new InstantDt(myUpdated);
} }
@ -118,12 +126,15 @@ public abstract class BaseHasResource implements IBaseResourceEntity {
myUpdated = theUpdated; myUpdated = theUpdated;
} }
@Override
public Date getUpdatedDate() { public Date getUpdatedDate() {
return myUpdated; return myUpdated;
} }
@Override
public abstract long getVersion(); public abstract long getVersion();
@Override
public boolean isHasTags() { public boolean isHasTags() {
return myHasTags; return myHasTags;
} }

View File

@ -62,7 +62,8 @@ public class ResourceIndexedSearchParamToken extends BaseResourceIndexedSearchPa
public String mySystem; public String mySystem;
@Field() @Field()
@Column(name = "SP_VALUE", nullable = true, length = MAX_LENGTH) @Column(name = "SP_VALUE", nullable = true, length = MAX_LENGTH)
public String myValue; private String myValue;
@SuppressWarnings("unused")
@Id @Id
@SequenceGenerator(name = "SEQ_SPIDX_TOKEN", sequenceName = "SEQ_SPIDX_TOKEN") @SequenceGenerator(name = "SEQ_SPIDX_TOKEN", sequenceName = "SEQ_SPIDX_TOKEN")
@GeneratedValue(strategy = GenerationType.AUTO, generator = "SEQ_SPIDX_TOKEN") @GeneratedValue(strategy = GenerationType.AUTO, generator = "SEQ_SPIDX_TOKEN")
@ -152,40 +153,40 @@ public class ResourceIndexedSearchParamToken extends BaseResourceIndexedSearchPa
return b.isEquals(); return b.isEquals();
} }
public Long getHashSystem() { Long getHashSystem() {
calculateHashes(); calculateHashes();
return myHashSystem; return myHashSystem;
} }
public Long getHashIdentity() { private Long getHashIdentity() {
calculateHashes(); calculateHashes();
return myHashIdentity; return myHashIdentity;
} }
public void setHashIdentity(Long theHashIdentity) { private void setHashIdentity(Long theHashIdentity) {
myHashIdentity = theHashIdentity; myHashIdentity = theHashIdentity;
} }
public void setHashSystem(Long theHashSystem) { private void setHashSystem(Long theHashSystem) {
myHashSystem = theHashSystem; myHashSystem = theHashSystem;
} }
public Long getHashSystemAndValue() { Long getHashSystemAndValue() {
calculateHashes(); calculateHashes();
return myHashSystemAndValue; return myHashSystemAndValue;
} }
public void setHashSystemAndValue(Long theHashSystemAndValue) { private void setHashSystemAndValue(Long theHashSystemAndValue) {
calculateHashes(); calculateHashes();
myHashSystemAndValue = theHashSystemAndValue; myHashSystemAndValue = theHashSystemAndValue;
} }
public Long getHashValue() { Long getHashValue() {
calculateHashes(); calculateHashes();
return myHashValue; return myHashValue;
} }
public void setHashValue(Long theHashValue) { private void setHashValue(Long theHashValue) {
myHashValue = theHashValue; myHashValue = theHashValue;
} }