Class Facets
java.lang.Object
org.apache.olingo.odata2.api.edm.provider.Facets
- All Implemented Interfaces:
EdmFacets
Objects of this class represent the facets an entity type, property or function import can have
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the sorting sequence to be used.Get the information if the value of the type in use should be used for optimistic concurrency checks.Get the default value of the type in useGet the maximum length of the type in useGet the precision of the type in usegetScale()Get the scale of the type in useGet the information if the type in has a fixed lengthGet the information if the type in use is nullableGet the information if UNICODE or ASCII characters are used.setCollation(String collation) Sets the collation of thisFacetssetConcurrencyMode(EdmConcurrencyMode concurrencyMode) Sets theEdmConcurrencyModeof thisFacetssetDefaultValue(String defaultValue) Sets the default value of thisFacetssetFixedLength(Boolean fixedLength) Sets the fixed length of thisFacetssetMaxLength(Integer maxLength) Sets the maximum length of thisFacetssetNullable(Boolean nullable) Sets if thisFacetsis nullablesetPrecision(Integer precision) Sets the precision of thisFacetsSets the scale of thisFacetssetUnicode(Boolean unicode) Sets if thisFacetsis in UnicodetoString()
-
Constructor Details
-
Facets
public Facets()
-
-
Method Details
-
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
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
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
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
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
Description copied from interface:EdmFacetsGet the scale of the type in use -
isUnicode
Description copied from interface:EdmFacetsGet the information if UNICODE or ASCII characters are used. Default is UNICODE. -
getCollation
Description copied from interface:EdmFacetsGet the sorting sequence to be used.- Specified by:
getCollationin interfaceEdmFacets- Returns:
- the sorting sequence as String
-
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
Sets if thisFacetsis nullable- Parameters:
nullable-- Returns:
Facetsfor method chaining
-
setFixedLength
Sets the fixed length of thisFacets- Parameters:
fixedLength-- Returns:
Facetsfor method chaining
-
setUnicode
Sets if thisFacetsis in Unicode- Parameters:
unicode-- Returns:
Facetsfor method chaining
-
setDefaultValue
Sets the default value of thisFacets- Parameters:
defaultValue-- Returns:
Facetsfor method chaining
-
setMaxLength
Sets the maximum length of thisFacets- Parameters:
maxLength-- Returns:
Facetsfor method chaining
-
setPrecision
Sets the precision of thisFacets- Parameters:
precision-- Returns:
Facetsfor method chaining
-
setScale
Sets the scale of thisFacets- Parameters:
scale-- Returns:
Facetsfor method chaining
-
setCollation
Sets the collation of thisFacets- Parameters:
collation-- Returns:
Facetsfor method chaining
-
setConcurrencyMode
Sets theEdmConcurrencyModeof thisFacets- Parameters:
concurrencyMode-- Returns:
Facetsfor method chaining
-
toString
-