EDMRow
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 and 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.EDMInstance
create, createAggrAttrBN, delete, getAccessManager, getAttrBN, getAttrsBN, getInstanceReferences, getInstanceType, isInstanceOf, isKindOf, putAttrBN, putAttrsBN, putProtectedAttrBN, setAttrBN, setAttrBN, setAttrBN, setAttrBN, setAttrBN, testAttrBN, testAttrsBN
Methods inherited from interface edm.edom3.EDMData
exists, getInstanceId, getName, getOwner, isLocal, isRemote
Methods inherited from interface edm.edom3.EDMContextDependent
getContext
Method Detail
getAllAttrNames
java.lang.String[]Â getAllAttrNames() throws EdmiException
Retrieve all attribute names for this row-instanceReturns:the attribute valueThrows: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 readReturns:the updated valuesThrows: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 failsThrows:EdmiException - if the method fails