public class OAObjectDSDelegate extends Object
Constructor and Description |
---|
OAObjectDSDelegate() |
Modifier and Type | Method and Description |
---|---|
static boolean |
allowIdChange(Class c) |
static void |
assignId(OAObject oaObj)
Initialize a newly created OAObject.
|
static void |
delete(OAObject obj)
called after all listeners have been called.
|
static boolean |
getAssignIdOnCreate(OAObject oaObj) |
protected static Object |
getBlob(OAObject obj,
String propName) |
protected static OADataSource |
getDataSource(Object obj)
Returns the OADataSource that works with this objects Class.
|
protected static Object |
getObject(Class clazz,
OAObjectKey key) |
static OAObject |
getObject(Class clazz,
Object key)
Find the OAObject given a key value.
|
static Object |
getObject(OAObject oaObj) |
protected static Object |
getObject(OAObjectInfo oi,
Class clazz,
OAObjectKey key) |
protected static boolean |
hasDataSource(Class c) |
protected static boolean |
hasDataSource(OAObject oaObj) |
static boolean |
isAssigningId(OAObject obj) |
static void |
refreshObject(OAObject obj) |
static void |
removeReference(OAObject oaObj,
OALinkInfo li) |
protected static void |
save(OAObject oaObj) |
static void |
save(OAObject obj,
boolean bInsert) |
protected static void |
saveWithoutReferences(OAObject oaObj) |
static void |
setAssigningId(OAObject obj,
boolean b)
Flag to know that the DS is assigning the Id, and that the value does not
need to be verified by the propertyChange event
|
protected static boolean |
supportsStorage(Class clazz) |
public static void assignId(OAObject oaObj)
public static void setAssigningId(OAObject obj, boolean b)
public static boolean isAssigningId(OAObject obj)
public static boolean getAssignIdOnCreate(OAObject oaObj)
protected static OADataSource getDataSource(Object obj)
protected static boolean hasDataSource(OAObject oaObj)
protected static boolean hasDataSource(Class c)
protected static boolean supportsStorage(Class clazz)
public static OAObject getObject(Class clazz, Object key)
clazz
- class of reference of to find.key
- can be the value of the key or an OAObjectKeypublic static void refreshObject(OAObject obj)
protected static Object getObject(Class clazz, OAObjectKey key)
protected static Object getObject(OAObjectInfo oi, Class clazz, OAObjectKey key)
protected static void save(OAObject oaObj)
protected static void saveWithoutReferences(OAObject oaObj)
public static void removeReference(OAObject oaObj, OALinkInfo li)
public static void save(OAObject obj, boolean bInsert)
public static void delete(OAObject obj)
public static boolean allowIdChange(Class c)
Copyright © 1999–2019 ViaOA. All rights reserved.