add floating property facet type

This commit is contained in:
dsoni 2019-08-13 18:20:22 -07:00
parent e365059900
commit 8dc08e8c57
7 changed files with 14 additions and 7 deletions

View File

@ -67,7 +67,8 @@ class ClientCsdlParameter extends CsdlParameter implements Serializable {
parameter.setPrecision(Integer.valueOf(jp.nextTextValue()));
} else if ("Scale".equals(jp.getCurrentName())) {
final String scale = jp.nextTextValue();
parameter.setScale("variable".equalsIgnoreCase(scale) ? 0 : Integer.valueOf(scale));
parameter.setScale("variable".equalsIgnoreCase(scale) || "floating".equalsIgnoreCase(scale) ?
0 : Integer.valueOf(scale));
} else if ("SRID".equals(jp.getCurrentName())) {
final String srid = jp.nextTextValue();
if (srid != null) {

View File

@ -69,7 +69,8 @@ class ClientCsdlProperty extends CsdlProperty implements Serializable {
property.setPrecision(Integer.valueOf(jp.nextTextValue()));
} else if ("Scale".equals(jp.getCurrentName())) {
final String scale = jp.nextTextValue();
property.setScale("variable".equalsIgnoreCase(scale) ? 0 : Integer.valueOf(scale));
property.setScale("variable".equalsIgnoreCase(scale) || "floating".equalsIgnoreCase(scale) ?
0 : Integer.valueOf(scale));
} else if ("Unicode".equals(jp.getCurrentName())) {
property.setUnicode(BooleanUtils.toBoolean(jp.nextTextValue()));
} else if ("SRID".equals(jp.getCurrentName())) {

View File

@ -64,7 +64,8 @@ class ClientCsdlReturnType extends CsdlReturnType implements Serializable {
returnType.setPrecision(Integer.valueOf(jp.nextTextValue()));
} else if ("Scale".equals(jp.getCurrentName())) {
final String scale = jp.nextTextValue();
returnType.setScale("variable".equalsIgnoreCase(scale) ? 0 : Integer.valueOf(scale));
returnType.setScale("variable".equalsIgnoreCase(scale) || "floating".equalsIgnoreCase(scale) ?
0 : Integer.valueOf(scale));
} else if ("SRID".equals(jp.getCurrentName())) {
final String srid = jp.nextTextValue();
if (srid != null) {

View File

@ -64,7 +64,8 @@ class ClientCsdlTerm extends CsdlTerm implements Serializable {
term.setPrecision(Integer.valueOf(jp.nextTextValue()));
} else if ("Scale".equals(jp.getCurrentName())) {
final String scale = jp.nextTextValue();
term.setScale("variable".equalsIgnoreCase(scale) ? 0 : Integer.valueOf(scale));
term.setScale("variable".equalsIgnoreCase(scale) || "floating".equalsIgnoreCase(scale) ?
0 : Integer.valueOf(scale));
} else if ("SRID".equals(jp.getCurrentName())) {
final String srid = jp.nextTextValue();
if (srid != null) {

View File

@ -57,7 +57,8 @@ class ClientCsdlTypeDefinition extends CsdlTypeDefinition implements Serializabl
typeDefinition.setPrecision(jp.nextIntValue(0));
} else if ("Scale".equals(jp.getCurrentName())) {
final String scale = jp.nextTextValue();
typeDefinition.setScale("variable".equalsIgnoreCase(scale) ? 0 : Integer.valueOf(scale));
typeDefinition.setScale("variable".equalsIgnoreCase(scale) || "floating".equalsIgnoreCase(scale) ?
0 : Integer.valueOf(scale));
} else if ("SRID".equals(jp.getCurrentName())) {
final String srid = jp.nextTextValue();
if (srid != null) {

View File

@ -56,7 +56,8 @@ class ClientCsdlCast extends CsdlCast implements Serializable {
cast.setPrecision(Integer.valueOf(jp.nextTextValue()));
} else if ("Scale".equals(jp.getCurrentName())) {
final String scale = jp.nextTextValue();
cast.setScale("variable".equalsIgnoreCase(scale) ? 0 : Integer.valueOf(scale));
cast.setScale("variable".equalsIgnoreCase(scale) || "floating".equalsIgnoreCase(scale) ?
0 : Integer.valueOf(scale));
} else if ("SRID".equals(jp.getCurrentName())) {
final String srid = jp.nextTextValue();
if (srid != null) {

View File

@ -55,7 +55,8 @@ class ClientCsdlIsOf extends CsdlIsOf implements Serializable {
isof.setPrecision(Integer.valueOf(jp.nextTextValue()));
} else if ("Scale".equals(jp.getCurrentName())) {
final String scale = jp.nextTextValue();
isof.setScale("variable".equalsIgnoreCase(scale) ? 0 : Integer.valueOf(scale));
isof.setScale("variable".equalsIgnoreCase(scale) || "floating".equalsIgnoreCase(scale) ?
0 : Integer.valueOf(scale));
} else if ("SRID".equals(jp.getCurrentName())) {
final String srid = jp.nextTextValue();
if (srid != null) {