public class ClientGetDetail extends Object
Constructor and Description |
---|
ClientGetDetail(int clientId) |
Modifier and Type | Method and Description |
---|---|
void |
addGuid(int guid) |
void |
close() |
Object |
getDetail(int id,
Class masterClass,
OAObjectKey masterObjectKey,
String property,
String[] masterProps,
OAObjectKey[] siblingKeys,
boolean bForHubMerger)
called by OASyncClient.getDetail(..), from an OAClient to the OAServer
|
protected OAObjectSerializer |
getSerializedDetail(long msStart,
OAObject masterObject,
Object detailObject,
String propFromMaster,
String[] masterProperties,
int cntMasterPropsLoaded,
OAObjectKey[] siblingKeys,
boolean bForHubMerger)
20130213
getDetail() requirements
load referencs for master object and detail object/hub, and one level of ownedReferences
serialize all first level references for master, and detail
send existing references for 1 more level from master, and 2 levels from detail
dont send any references that equal master or have master in the hub
dont send any references that have detail/hub in it
dont send detail if it has already been sent with all references
dont send a reference if it has already been sent to client, and has been added to tree
send max X objects
|
protected void |
loadDataInBackground(OAObject obj,
String property)
called when a property or sibling data cant be loaded for current request, because of timeout.
|
void |
removeGuid(int guid) |
public void removeGuid(int guid)
public void addGuid(int guid)
public void close()
public Object getDetail(int id, Class masterClass, OAObjectKey masterObjectKey, String property, String[] masterProps, OAObjectKey[] siblingKeys, boolean bForHubMerger)
masterClass
- masterObjectKey
- object key that needs to get a prop/reference valueproperty
- name of prop/referencemasterProps
- the names of any other properties to getsiblingKeys
- any other objects of the same class to get the same property from. This is
usually objects in the same hub of the masterObjectKeyprotected OAObjectSerializer getSerializedDetail(long msStart, OAObject masterObject, Object detailObject, String propFromMaster, String[] masterProperties, int cntMasterPropsLoaded, OAObjectKey[] siblingKeys, boolean bForHubMerger)
Copyright © 1999–2019 ViaOA. All rights reserved.