Class Facets
- java.lang.Object
-
- org.apache.olingo.odata2.api.edm.provider.Facets
-
-
Constructor Summary
Constructors Constructor Description Facets()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCollation()Get the sorting sequence to be used.EdmConcurrencyModegetConcurrencyMode()Get the information if the value of the type in use should be used for optimistic concurrency checks.StringgetDefaultValue()Get the default value of the type in useIntegergetMaxLength()Get the maximum length of the type in useIntegergetPrecision()Get the precision of the type in useIntegergetScale()Get the scale of the type in usebooleanisAutoGenerated()BooleanisFixedLength()Get the information if the type in has a fixed lengthBooleanisNullable()Get the information if the type in use is nullableBooleanisUnicode()Get the information if UNICODE or ASCII characters are used.FacetssetAutoGenerated(Boolean autoGenerated)FacetssetCollation(String collation)Sets the collation of thisFacetsFacetssetConcurrencyMode(EdmConcurrencyMode concurrencyMode)Sets theEdmConcurrencyModeof thisFacetsFacetssetDefaultValue(String defaultValue)Sets the default value of thisFacetsFacetssetFixedLength(Boolean fixedLength)Sets the fixed length of thisFacetsFacetssetMaxLength(Integer maxLength)Sets the maximum length of thisFacetsFacetssetNullable(Boolean nullable)Sets if thisFacetsis nullableFacetssetPrecision(Integer precision)Sets the precision of thisFacetsFacetssetScale(Integer scale)Sets the scale of thisFacetsFacetssetUnicode(Boolean unicode)Sets if thisFacetsis in UnicodeStringtoString()
-
-
-
Method Detail
-
isNullable
public Boolean isNullable()
Description copied from interface:EdmFacetsGet the information if the type in use is nullable- Specified by:
isNullablein interfaceEdmFacets- Returns:
trueif the type in use is nullable
-
getDefaultValue
public String getDefaultValue()
Description copied from interface:EdmFacetsGet the default value of the type in use- Specified by:
getDefaultValuein interfaceEdmFacets- Returns:
- a default value of the type in use as String
-
getMaxLength
public Integer getMaxLength()
Description copied from interface:EdmFacetsGet the maximum length of the type in use- Specified by:
getMaxLengthin interfaceEdmFacets- Returns:
- the maximum length of the type in use as Integer
-
isFixedLength
public Boolean isFixedLength()
Description copied from interface:EdmFacetsGet the information if the type in has a fixed length- Specified by:
isFixedLengthin interfaceEdmFacets- Returns:
trueif the type in use has a fixed length
-
getPrecision
public Integer getPrecision()
Description copied from interface:EdmFacetsGet the precision of the type in use- Specified by:
getPrecisionin interfaceEdmFacets- Returns:
- the precision of the type in use as Integer
-
getScale
public Integer getScale()
Description copied from interface:EdmFacetsGet the scale of the type in use
-
isUnicode
public Boolean isUnicode()
Description copied from interface:EdmFacetsGet the information if UNICODE or ASCII characters are used. Default is UNICODE.
-
getCollation
public String getCollation()
Description copied from interface:EdmFacetsGet the sorting sequence to be used.- Specified by:
getCollationin interfaceEdmFacets- Returns:
- the sorting sequence as String
-
isAutoGenerated
public boolean isAutoGenerated()
- Specified by:
isAutoGeneratedin interfaceEdmFacets
-
getConcurrencyMode
public EdmConcurrencyMode getConcurrencyMode()
Description copied from interface:EdmFacetsGet the information if the value of the type in use should be used for optimistic concurrency checks.- Specified by:
getConcurrencyModein interfaceEdmFacets- Returns:
EdmConcurrencyMode
-
setNullable
public Facets setNullable(Boolean nullable)
Sets if thisFacetsis nullable- Parameters:
nullable- Se pode null- Returns:
Facetsfor method chaining
-
setFixedLength
public Facets setFixedLength(Boolean fixedLength)
Sets the fixed length of thisFacets- Parameters:
fixedLength- Se tamanho fixo- Returns:
Facetsfor method chaining
-
setUnicode
public Facets setUnicode(Boolean unicode)
Sets if thisFacetsis in Unicode- Parameters:
unicode- Se unicode- Returns:
Facetsfor method chaining
-
setDefaultValue
public Facets setDefaultValue(String defaultValue)
Sets the default value of thisFacets- Parameters:
defaultValue- Valor padrão- Returns:
Facetsfor method chaining
-
setMaxLength
public Facets setMaxLength(Integer maxLength)
Sets the maximum length of thisFacets- Parameters:
maxLength- Tamanho maximo- Returns:
Facetsfor method chaining
-
setPrecision
public Facets setPrecision(Integer precision)
Sets the precision of thisFacets- Parameters:
precision- Precisão- Returns:
Facetsfor method chaining
-
setScale
public Facets setScale(Integer scale)
Sets the scale of thisFacets- Parameters:
scale- Escala- Returns:
Facetsfor method chaining
-
setCollation
public Facets setCollation(String collation)
Sets the collation of thisFacets- Parameters:
collation- Collation- Returns:
Facetsfor method chaining
-
setConcurrencyMode
public Facets setConcurrencyMode(EdmConcurrencyMode concurrencyMode)
Sets theEdmConcurrencyModeof thisFacets- Parameters:
concurrencyMode- concurrencyMode- Returns:
Facetsfor method chaining
-
-