Class Struct2JsonOptions
java.lang.Object
com.sap.cds.adapter.odata.v4.serializer.json.options.CdsODataOptions
com.sap.cds.adapter.odata.v4.serializer.json.options.Struct2JsonOptions
Options for the Complex2Json and Entity2Json serializers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder of OData serializer options. -
Field Summary
FieldsFields inherited from class com.sap.cds.adapter.odata.v4.serializer.json.options.CdsODataOptions
contextURL -
Method Summary
Modifier and TypeMethodDescriptionGets theContextURL.booleanonly writes the references of the entitiesbooleanstatic Struct2JsonOptions.Builderwith(ContentType contentType, String odataVersion, CdsRequestGlobals globals) Initializes the options builder.Methods inherited from class com.sap.cds.adapter.odata.v4.serializer.json.options.CdsODataOptions
getConstants, getEdmUtils, getGlobals, getODataVersion, isIEEE754Compatible, isODataMetadataFull, isODataMetadataNone
-
Field Details
-
expand
-
select
-
-
Method Details
-
getExpand
-
getSelect
-
getContextURL
Gets theContextURL.- Overrides:
getContextURLin classCdsODataOptions
-
getWriteOnlyReferences
public boolean getWriteOnlyReferences()only writes the references of the entities -
getDerivedTypeName
-
isAutoExpand
public boolean isAutoExpand() -
with
public static Struct2JsonOptions.Builder with(ContentType contentType, String odataVersion, CdsRequestGlobals globals) Initializes the options builder.
-