public class OhResult extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_CREATE_ERROR_ALREADY_EXISTING |
static int |
STATUS_CREATE_SUCCESS |
static int |
STATUS_DELETE_SUCCESS |
static int |
STATUS_ERROR_EXISTING |
static int |
STATUS_ERROR_NOT_FOUND |
static int |
STATUS_READ_SUCCESS |
static int |
STATUS_SEVERE_ERROR |
static int |
STATUS_UPDATE_NOT_EXISTING |
static int |
STATUS_UPDATE_SUCCESS |
| Constructor and Description |
|---|
OhResult(boolean success,
int statusCode) |
OhResult(boolean success,
int statusCode,
org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) |
OhResult(boolean success,
int statusCode,
org.apache.olingo.odata2.api.ep.feed.ODataFeed feed) |
OhResult(boolean success,
org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) |
OhResult(boolean success,
String error) |
public static final int STATUS_ERROR_NOT_FOUND
public static final int STATUS_DELETE_SUCCESS
public static final int STATUS_READ_SUCCESS
public static final int STATUS_CREATE_SUCCESS
public static final int STATUS_CREATE_ERROR_ALREADY_EXISTING
public static final int STATUS_ERROR_EXISTING
public static final int STATUS_UPDATE_SUCCESS
public static final int STATUS_UPDATE_NOT_EXISTING
public static final int STATUS_SEVERE_ERROR
public OhResult(boolean success,
org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)
public OhResult(boolean success,
String error)
public OhResult(boolean success,
int statusCode)
public OhResult(boolean success,
int statusCode,
org.apache.olingo.odata2.api.ep.feed.ODataFeed feed)
public OhResult(boolean success,
int statusCode,
org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)
public boolean isSuccess()
public String getError()
public org.apache.olingo.odata2.api.ep.entry.ODataEntry getEntry()
public org.apache.olingo.odata2.api.ep.feed.ODataFeed getFeed()
public int getStatusCode()
Copyright © 2017 Peter Helmich. All rights reserved.