|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ContextDependable
Interface all AppDbObjects must implement.
In multitenant applications the interface must be subclassed.
ContextDb| Method Summary | |
|---|---|
ContextDb |
getBaseContext()
Gets the minimum context, i.e. |
ContextDb |
getContextDb()
Gets the database application context this object belongs to. |
long |
getContextId()
Gets the ID of the root object describing the context of this object. |
String |
getSqlContextCondition()
Gets the additional condition to be used in the WHERE clause describing the context. |
ContextDb |
makeValidContext()
Creates a valid context for this object. Useful if the object has been loaded without a context or to make the least significant context the object can live in. |
void |
setContextDb(ContextDb contextDb)
Sets this object's database application context. |
void |
setContextId()
Determines the object-ID(s) of the root object(s) of the context and sets the attributes of the database object accordingly. |
| Method Detail |
|---|
ContextDb getContextDb()
void setContextDb(ContextDb contextDb)
contextDb - void setContextId()
long getContextId()
String getSqlContextCondition()
Example: return " AND " + FIELD_TENANTID + "=?";
ContextDb getBaseContext()
ContextDb makeValidContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||