class AssociationRoleModelImpl extends RoleModelImpl implements AssociationRoleModel
mf, pl, playerId, roleTypeUri
Constructor and Description |
---|
AssociationRoleModelImpl(long assocId,
String roleTypeUri,
PersistenceLayer pl) |
Modifier and Type | Method and Description |
---|---|
(package private) RelatedAssociationModelImpl |
getPlayer(AssociationModelImpl assoc) |
(package private) Role |
instantiate(AssociationModelImpl assoc) |
boolean |
refsSameObject(RoleModel model)
Checks weather the given role model refers to the same object as this role model.
|
org.codehaus.jettison.json.JSONObject |
toJSON() |
clone, getPlayerId, getRoleTypeUri, setPlayerId, setRoleTypeUri, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, getPlayerId, getRoleTypeUri, setPlayerId, setRoleTypeUri
AssociationRoleModelImpl(long assocId, String roleTypeUri, PersistenceLayer pl)
public boolean refsSameObject(RoleModel model)
RoleModel
refsSameObject
in interface RoleModel
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
Role instantiate(AssociationModelImpl assoc)
instantiate
in class RoleModelImpl
assoc
- the association this role is involved inRelatedAssociationModelImpl getPlayer(AssociationModelImpl assoc)
getPlayer
in class RoleModelImpl
assoc
- the association this role is involved inCopyright © 2018. All Rights Reserved.