Skip to content
Snippets Groups Projects
Commit 37c8b85e authored by Adam Laskowski's avatar Adam Laskowski
Browse files

BIS-723: Renaming of the api methods - java

parent 047864f0
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -46,14 +46,6 @@ public abstract class AbstractEntityPropertyHolder implements Serializable, IPro ...@@ -46,14 +46,6 @@ public abstract class AbstractEntityPropertyHolder implements Serializable, IPro
@JsonIgnore @JsonIgnore
public abstract void setProperties(Map<String, Serializable> properties); public abstract void setProperties(Map<String, Serializable> properties);
@Override
public String getPropertyAsString(String propertyName)
{
return getProperties() != null ?
PropertiesDeserializer.getPropertyAsString(getProperties().get(propertyName)) :
null;
}
@Override @Override
public Serializable getProperty(String propertyName) public Serializable getProperty(String propertyName)
{ {
...@@ -73,7 +65,7 @@ public abstract class AbstractEntityPropertyHolder implements Serializable, IPro ...@@ -73,7 +65,7 @@ public abstract class AbstractEntityPropertyHolder implements Serializable, IPro
@Override @Override
public Long getIntegerProperty(String propertyName) public Long getIntegerProperty(String propertyName)
{ {
String propertyValue = getPropertyAsString(propertyName); String propertyValue = (String) getProperty(propertyName);
return (propertyValue == null || propertyValue.trim().isEmpty()) ? return (propertyValue == null || propertyValue.trim().isEmpty()) ?
null : null :
Long.parseLong(propertyValue); Long.parseLong(propertyValue);
...@@ -86,25 +78,13 @@ public abstract class AbstractEntityPropertyHolder implements Serializable, IPro ...@@ -86,25 +78,13 @@ public abstract class AbstractEntityPropertyHolder implements Serializable, IPro
} }
@Override @Override
public String getVarcharProperty(String propertyName) public String getStringProperty(String propertyName)
{
return (String) getProperty(propertyName);
}
@Override
public void setVarcharProperty(String propertyName, String propertyValue)
{
setProperty(propertyName, propertyValue);
}
@Override
public String getMultilineVarcharProperty(String propertyName)
{ {
return (String) getProperty(propertyName); return (String) getProperty(propertyName);
} }
@Override @Override
public void setMultilineVarcharProperty(String propertyName, String propertyValue) public void setStringProperty(String propertyName, String propertyValue)
{ {
setProperty(propertyName, propertyValue); setProperty(propertyName, propertyValue);
} }
...@@ -343,14 +323,14 @@ public abstract class AbstractEntityPropertyHolder implements Serializable, IPro ...@@ -343,14 +323,14 @@ public abstract class AbstractEntityPropertyHolder implements Serializable, IPro
} }
@Override @Override
public List<String> getMultiValueVarcharProperty(String propertyName) public List<String> getMultiValueStringProperty(String propertyName)
{ {
Serializable propertyValue = getProperty(propertyName); Serializable propertyValue = getProperty(propertyName);
return getListOfValues(propertyValue, (x) -> (String) x); return getListOfValues(propertyValue, (x) -> (String) x);
} }
@Override @Override
public void setMultiValueVarcharProperty(String propertyName, List<String> propertyValues) public void setMultiValueStringProperty(String propertyName, List<String> propertyValues)
{ {
if (propertyValues != null) if (propertyValues != null)
{ {
...@@ -419,26 +399,6 @@ public abstract class AbstractEntityPropertyHolder implements Serializable, IPro ...@@ -419,26 +399,6 @@ public abstract class AbstractEntityPropertyHolder implements Serializable, IPro
.toArray(String[]::new)); .toArray(String[]::new));
} }
@Override
public List<String> getMultiValueMultilineVarcharProperty(String propertyName)
{
Serializable propertyValue = getProperty(propertyName);
return getListOfValues(propertyValue, (x) -> (String) x);
}
@Override
public void setMultiValueMultilineVarcharProperty(String propertyName,
List<String> propertyValue)
{
if (propertyValue != null)
{
setProperty(propertyName, propertyValue.toArray(String[]::new));
} else
{
setProperty(propertyName, null);
}
}
@Override @Override
public List<Double> getMultiValueRealProperty(String propertyName) public List<Double> getMultiValueRealProperty(String propertyName)
{ {
......
...@@ -34,8 +34,6 @@ public interface IPropertiesHolder ...@@ -34,8 +34,6 @@ public interface IPropertiesHolder
void setProperties(Map<String, Serializable> properties); void setProperties(Map<String, Serializable> properties);
String getPropertyAsString(String propertyName);
Serializable getProperty(String propertyName); Serializable getProperty(String propertyName);
void setProperty(String propertyName, Serializable propertyValue); void setProperty(String propertyName, Serializable propertyValue);
...@@ -44,13 +42,9 @@ public interface IPropertiesHolder ...@@ -44,13 +42,9 @@ public interface IPropertiesHolder
void setIntegerProperty(String propertyName, Long propertyValue); void setIntegerProperty(String propertyName, Long propertyValue);
String getVarcharProperty(String propertyName); String getStringProperty(String propertyName);
void setVarcharProperty(String propertyName, String propertyValue);
String getMultilineVarcharProperty(String propertyName);
void setMultilineVarcharProperty(String propertyName, String propertyValue); void setStringProperty(String propertyName, String propertyValue);
Double getRealProperty(String propertyName); Double getRealProperty(String propertyName);
...@@ -106,13 +100,9 @@ public interface IPropertiesHolder ...@@ -106,13 +100,9 @@ public interface IPropertiesHolder
void setMultiValueIntegerProperty(String propertyName, List<Long> propertyValues); void setMultiValueIntegerProperty(String propertyName, List<Long> propertyValues);
List<String> getMultiValueVarcharProperty(String propertyName); List<String> getMultiValueStringProperty(String propertyName);
void setMultiValueVarcharProperty(String propertyName, List<String> propertyValues);
List<String> getMultiValueMultilineVarcharProperty(String propertyName);
void setMultiValueMultilineVarcharProperty(String propertyName, List<String> propertyValue); void setMultiValueStringProperty(String propertyName, List<String> propertyValues);
List<Double> getMultiValueRealProperty(String propertyName); List<Double> getMultiValueRealProperty(String propertyName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment