public class ServiceResult extends Object
| Constructor and Description |
|---|
ServiceResult(Class<ObjectType> objectTypeClass,
List<ObjectType> object,
String result) |
ServiceResult(Class<ObjectType> objectTypeClass,
ObjectType object,
String result) |
ServiceResult(String result) |
| Modifier and Type | Method and Description |
|---|---|
<ObjectType> |
getObject(Class<ObjectType> objectTypeClass) |
<ObjectType> |
getObjectList(Class<ObjectType> objectTypeClass) |
Map<Class<?>,Object> |
getObjects() |
String |
getResult() |
boolean |
isFail() |
boolean |
isOk() |
<ObjectType> |
putObject(Class<ObjectType> objectTypeClass,
List<ObjectType> object) |
<ObjectType> |
putObject(Class<ObjectType> objectTypeClass,
ObjectType object) |
public ServiceResult(String result)
public ServiceResult(Class<ObjectType> objectTypeClass, ObjectType object, String result)
objectTypeClass - typ vytvořeného (získaného) objektuobject - vytvořený (získaný) objektresult - výsledek vytvoření (získáná)public <ObjectType> ObjectType getObject(Class<ObjectType> objectTypeClass)
public <ObjectType> List<ObjectType> getObjectList(Class<ObjectType> objectTypeClass)
public <ObjectType> void putObject(Class<ObjectType> objectTypeClass, ObjectType object)
objectTypeClass - typ vytvořeného (získaného) objektuobject - vytvořený (získaný) objektpublic <ObjectType> void putObject(Class<ObjectType> objectTypeClass, List<ObjectType> object)
objectTypeClass - typ vytvořeného (získaného) objektuobject - vytvořený (získaný) objektpublic String getResult()
public boolean isOk()
public boolean isFail()
Copyright © 2017 DataLite. All rights reserved.