get Singleton
Lookup a singleton by name.
Panic if the singleton does not exist.
Note: OData singleton entities are represented by {@link com.sap.cloud.mobile.kotlin.odata.EntitySet} objects where {@link com.sap.cloud.mobile.kotlin.odata.EntitySet#isSingleton EntitySet.isSingleton} is true.
- See Also:
-
{@link com.sap.cloud.mobile.kotlin.odata.DataServiceAsync#metadata DataServiceAsync.metadata}.
singletons, for looking up singletons that might not exist.
Return
The requested singleton.
Parameters
name
Name of the singleton to be returned.