Package edm.edom3
Interface EDMRow
-
- All Superinterfaces:
EDMContextDependent
,EDMData
,EDMInstance
public interface EDMRow extends EDMInstance
This interface represents an instance related to a QueryResult or a set of properties. It can be a partial instance or full instance related to a real DBinstance, a view entity or a pure in-memory instance. It must be explicit written back.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
flush(java.lang.String[] attrNames, EDMSelect[] values)
Flush memory buffered attrs to DB.java.lang.String[]
getAllAttrNames()
Retrieve all attribute names for this row-instanceEDMSelect[]
refresh(java.lang.String[] attrNames)
Read attribute values from database.-
Methods inherited from interface edm.edom3.EDMContextDependent
getContext
-
Methods inherited from interface edm.edom3.EDMData
exists, getInstanceId, getName, getOwner, isLocal, isRemote
-
Methods inherited from interface edm.edom3.EDMInstance
create, createAggrAttrBN, delete, getAccessManager, getAttrBN, getAttrsBN, getInstanceReferences, getInstanceType, isInstanceOf, isKindOf, putAttrBN, putAttrsBN, putProtectedAttrBN, setAttrBN, setAttrBN, setAttrBN, setAttrBN, setAttrBN, testAttrBN, testAttrsBN
-
-
-
-
Method Detail
-
getAllAttrNames
java.lang.String[] getAllAttrNames() throws EdmiException
Retrieve all attribute names for this row-instance- Returns:
- the attribute value
- Throws:
EdmiException
- if the method fails
-
refresh
EDMSelect[] refresh(java.lang.String[] attrNames) throws EdmiException
Read attribute values from database. Only possible for images of persistent instances.- Parameters:
attrNames
- attributes to read- Returns:
- the updated values
- Throws:
EdmiException
- if the method fails
-
flush
void flush(java.lang.String[] attrNames, EDMSelect[] values) throws EdmiException
Flush memory buffered attrs to DB. This method is overridden in generated / EB classes to adapt to actual implementation, fx update with a query.- Parameters:
attrNames
- optional name list,if null all are written.values
- values to write, if null use memory stored values, if not null then memory buffer is updated as well throws EdmiException if the method fails- Throws:
EdmiException
- if the method fails
-
-