| Modifier and Type | Class and Description |
|---|---|
protected static class |
Role.Key
The Key class holds information for one unique key.
|
| Constructor and Description |
|---|
Role()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Role.Key |
addKey(String keyName,
boolean inOs,
boolean isPrimaryKey)
Add a new unique key to this role managers List of keys.
|
void |
cleanupResult(Object rootResult)
Deprecated.
|
void |
cleanupResult(Object rootResult,
ClientContext ctx)
Deprecated.
|
void |
cleanupResult(Object rootResult,
ClientContext ctx,
Session session)
Postprocess the result after transaction is ended
|
void |
cleanupResultAssociations(Object rootResult,
ClientContext ctx,
Session session)
Postprocess the result after find actions
|
abstract Object |
connect(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
abstract Object |
delete(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
abstract Object |
disconnect(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
abstract Object |
find(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
abstract List<?> |
findAll(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
Role |
findRole(String roleName)
Find an object selection role manager given name.
|
abstract Object |
get(ObjectSelection objectSelection,
ENavigation navigation,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
ObjectSelection |
getCurrentObjectSelection()
Access method for the currentObjectSelection property.
|
protected List<Role> |
getDownRelated()
Access method for the downRelated property.
|
protected List<String> |
getExcludedAttributes()
Access method for the excludedAttributes property.
|
protected List<String> |
getIncludedAttributes()
Access method for the includedAttributes property.
|
protected List<String> |
getKeyAttributes(String keyName)
Get list of attribute names for a unique key
|
protected String |
getMainKey()
Get the name of main key if this object selection role has a main key.
|
protected String |
getName()
Access method for the name property.
|
protected Role |
getParent()
Access method for the parent property.
|
protected String |
getPrimaryKey()
Get the name of primary key if the object selection role has a primary
key and all attributes in that key are included in the object selection.
|
protected Role |
getRootRole()
Get the root object selection role manager.
|
protected List<Role> |
getUpRelated()
Access method for the upRelated property.
|
void |
initializeRole(String applicationName,
String roleName,
Role parentRole)
Initialize an object selection role manager.
|
abstract Object |
insert(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
abstract Object |
save(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
void |
setCurrentObjectSelection(ObjectSelection anObjectSelection)
Sets the value of the currentObjectSelection property.
|
protected void |
setDownRelated(List<Role> aDownRelated)
Sets the value of the downRelated property.
|
protected void |
setExcludedAttributes(List<String> aExcludedAttributes)
Sets the value of the excludedAttributes property.
|
protected void |
setIncludedAttributes(List<String> aIncludedAttributes)
Sets the value of the includedAttributes property.
|
protected void |
setName(String aName)
Sets the value of the name property.
|
protected void |
setParent(Role aParent)
Sets the value of the parent property.
|
protected void |
setUpRelated(List<Role> aUpRelated)
Sets the value of the upRelated property manager.
|
abstract Object |
update(ObjectSelection objectSelection,
ClientContext ctx,
Session session)
Part of the Manager interface.
|
protected Role.Key addKey(String keyName, boolean inOs, boolean isPrimaryKey)
keyName - the name of the keyinOs - the inOs propertyisPrimaryKey - the isPrimaryKey propertyprotected List<String> getKeyAttributes(String keyName)
keyName - is the name of the keyprotected String getPrimaryKey()
protected String getMainKey()
protected String getName()
protected void setName(String aName)
aName - the new value of the name propertyprotected List<String> getExcludedAttributes()
protected void setExcludedAttributes(List<String> aExcludedAttributes)
aExcludedAttributes - the new value of the excludedAttributes
propertyprotected List<String> getIncludedAttributes()
protected void setIncludedAttributes(List<String> aIncludedAttributes)
aIncludedAttributes - the new value of the includedAttributes
propertyprotected List<Role> getDownRelated()
protected void setDownRelated(List<Role> aDownRelated)
aDownRelated - the new value of the downRelated propertyprotected List<Role> getUpRelated()
protected void setUpRelated(List<Role> aUpRelated)
aUpRelated - the new value of the upRelated propertypublic ObjectSelection getCurrentObjectSelection()
public void setCurrentObjectSelection(ObjectSelection anObjectSelection)
anObjectSelection - the new value of the currentObjectSelection
propertyprotected Role getParent()
protected void setParent(Role aParent)
aParent - the new value of the parent propertypublic void initializeRole(String applicationName, String roleName, Role parentRole)
applicationName - Name of the applicationroleName - Name of the roleparentRole - Parent role to this role in the object selectionpublic Role findRole(String roleName)
roleName - the name of the object selection role.public abstract Object find(ObjectSelection objectSelection, ClientContext ctx, Session session)
public abstract List<?> findAll(ObjectSelection objectSelection, ClientContext ctx, Session session)
public abstract Object save(ObjectSelection objectSelection, ClientContext ctx, Session session)
public abstract Object insert(ObjectSelection objectSelection, ClientContext ctx, Session session)
public abstract Object update(ObjectSelection objectSelection, ClientContext ctx, Session session)
public abstract Object delete(ObjectSelection objectSelection, ClientContext ctx, Session session)
public abstract Object connect(ObjectSelection objectSelection, ClientContext ctx, Session session)
public abstract Object disconnect(ObjectSelection objectSelection, ClientContext ctx, Session session)
disconnect in interface ManagerobjectSelection - (missing javadoc)ctx - (missing javadoc)session - (missing javadoc)public abstract Object get(ObjectSelection objectSelection, ENavigation navigation, ClientContext ctx, Session session)
@Deprecated public void cleanupResult(Object rootResult)
ManagercleanupResult in interface ManagerrootResult - (missing javadoc)
This method is replaced with
cleanupResult(Object rootResult, ClientContext ctx)
It is included in the interface for compatibility reasons@Deprecated public void cleanupResult(Object rootResult, ClientContext ctx)
ManagercleanupResult in interface ManagerrootResult - (missing javadoc)ctx - (missing javadoc)public void cleanupResult(Object rootResult, ClientContext ctx, Session session)
ManagercleanupResult in interface ManagerrootResult - (missing javadoc)ctx - (missing javadoc)session - (missing javadoc)public void cleanupResultAssociations(Object rootResult, ClientContext ctx, Session session)
ManagercleanupResultAssociations in interface ManagerrootResult - (missing javadoc)ctx - (missing javadoc)session - (missing javadoc)protected Role getRootRole()
Copyright © 2006–2017 Esito AS. All rights reserved.