add floating property facet type
This commit is contained in:
parent
e365059900
commit
8dc08e8c57
|
@ -67,7 +67,8 @@ class ClientCsdlParameter extends CsdlParameter implements Serializable {
|
||||||
parameter.setPrecision(Integer.valueOf(jp.nextTextValue()));
|
parameter.setPrecision(Integer.valueOf(jp.nextTextValue()));
|
||||||
} else if ("Scale".equals(jp.getCurrentName())) {
|
} else if ("Scale".equals(jp.getCurrentName())) {
|
||||||
final String scale = jp.nextTextValue();
|
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())) {
|
} else if ("SRID".equals(jp.getCurrentName())) {
|
||||||
final String srid = jp.nextTextValue();
|
final String srid = jp.nextTextValue();
|
||||||
if (srid != null) {
|
if (srid != null) {
|
||||||
|
|
|
@ -69,7 +69,8 @@ class ClientCsdlProperty extends CsdlProperty implements Serializable {
|
||||||
property.setPrecision(Integer.valueOf(jp.nextTextValue()));
|
property.setPrecision(Integer.valueOf(jp.nextTextValue()));
|
||||||
} else if ("Scale".equals(jp.getCurrentName())) {
|
} else if ("Scale".equals(jp.getCurrentName())) {
|
||||||
final String scale = jp.nextTextValue();
|
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())) {
|
} else if ("Unicode".equals(jp.getCurrentName())) {
|
||||||
property.setUnicode(BooleanUtils.toBoolean(jp.nextTextValue()));
|
property.setUnicode(BooleanUtils.toBoolean(jp.nextTextValue()));
|
||||||
} else if ("SRID".equals(jp.getCurrentName())) {
|
} else if ("SRID".equals(jp.getCurrentName())) {
|
||||||
|
|
|
@ -64,7 +64,8 @@ class ClientCsdlReturnType extends CsdlReturnType implements Serializable {
|
||||||
returnType.setPrecision(Integer.valueOf(jp.nextTextValue()));
|
returnType.setPrecision(Integer.valueOf(jp.nextTextValue()));
|
||||||
} else if ("Scale".equals(jp.getCurrentName())) {
|
} else if ("Scale".equals(jp.getCurrentName())) {
|
||||||
final String scale = jp.nextTextValue();
|
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())) {
|
} else if ("SRID".equals(jp.getCurrentName())) {
|
||||||
final String srid = jp.nextTextValue();
|
final String srid = jp.nextTextValue();
|
||||||
if (srid != null) {
|
if (srid != null) {
|
||||||
|
|
|
@ -64,7 +64,8 @@ class ClientCsdlTerm extends CsdlTerm implements Serializable {
|
||||||
term.setPrecision(Integer.valueOf(jp.nextTextValue()));
|
term.setPrecision(Integer.valueOf(jp.nextTextValue()));
|
||||||
} else if ("Scale".equals(jp.getCurrentName())) {
|
} else if ("Scale".equals(jp.getCurrentName())) {
|
||||||
final String scale = jp.nextTextValue();
|
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())) {
|
} else if ("SRID".equals(jp.getCurrentName())) {
|
||||||
final String srid = jp.nextTextValue();
|
final String srid = jp.nextTextValue();
|
||||||
if (srid != null) {
|
if (srid != null) {
|
||||||
|
|
|
@ -57,7 +57,8 @@ class ClientCsdlTypeDefinition extends CsdlTypeDefinition implements Serializabl
|
||||||
typeDefinition.setPrecision(jp.nextIntValue(0));
|
typeDefinition.setPrecision(jp.nextIntValue(0));
|
||||||
} else if ("Scale".equals(jp.getCurrentName())) {
|
} else if ("Scale".equals(jp.getCurrentName())) {
|
||||||
final String scale = jp.nextTextValue();
|
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())) {
|
} else if ("SRID".equals(jp.getCurrentName())) {
|
||||||
final String srid = jp.nextTextValue();
|
final String srid = jp.nextTextValue();
|
||||||
if (srid != null) {
|
if (srid != null) {
|
||||||
|
|
|
@ -56,7 +56,8 @@ class ClientCsdlCast extends CsdlCast implements Serializable {
|
||||||
cast.setPrecision(Integer.valueOf(jp.nextTextValue()));
|
cast.setPrecision(Integer.valueOf(jp.nextTextValue()));
|
||||||
} else if ("Scale".equals(jp.getCurrentName())) {
|
} else if ("Scale".equals(jp.getCurrentName())) {
|
||||||
final String scale = jp.nextTextValue();
|
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())) {
|
} else if ("SRID".equals(jp.getCurrentName())) {
|
||||||
final String srid = jp.nextTextValue();
|
final String srid = jp.nextTextValue();
|
||||||
if (srid != null) {
|
if (srid != null) {
|
||||||
|
|
|
@ -55,7 +55,8 @@ class ClientCsdlIsOf extends CsdlIsOf implements Serializable {
|
||||||
isof.setPrecision(Integer.valueOf(jp.nextTextValue()));
|
isof.setPrecision(Integer.valueOf(jp.nextTextValue()));
|
||||||
} else if ("Scale".equals(jp.getCurrentName())) {
|
} else if ("Scale".equals(jp.getCurrentName())) {
|
||||||
final String scale = jp.nextTextValue();
|
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())) {
|
} else if ("SRID".equals(jp.getCurrentName())) {
|
||||||
final String srid = jp.nextTextValue();
|
final String srid = jp.nextTextValue();
|
||||||
if (srid != null) {
|
if (srid != null) {
|
||||||
|
|
Loading…
Reference in New Issue