Class RContainerReference
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.data.common.container.RReference
-
- com.evolveum.midpoint.repo.sql.data.common.container.RContainerReference
-
- All Implemented Interfaces:
ObjectReference
,EntityState
,Serializable
- Direct Known Subclasses:
RAssignmentReference
public abstract class RContainerReference extends RReference implements EntityState
- Author:
- lazyman, mederly
This is a reference that is contained in (any) container. Its owner is identified by OID, container value ID, and owner type.
It is created as a superclass for both RAssignmentReference and RCertCaseReference (now non-existent) because they share almost all the code.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
F_OWNER
static String
REFERENCE_TYPE
-
Fields inherited from interface com.evolveum.midpoint.repo.sql.data.common.ObjectReference
F_RELATION, F_TARGET_OID, F_TARGET_TYPE
-
-
Constructor Summary
Constructors Constructor Description RContainerReference()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static void
copyToJAXB(RContainerReference repo, ObjectReferenceType jaxb, PrismContext prismContext)
boolean
equals(Object o)
abstract Container
getOwner()
protected Integer
getOwnerId()
protected String
getOwnerOid()
protected RCReferenceType
getReferenceType()
RObject
getTarget()
int
hashCode()
Boolean
isTransient()
Tells hibernateInterceptor
that entity is transient, so that hibernate session doesn't need to verify it using select queries.void
setOwnerId(Integer ownerId)
void
setOwnerOid(String ownerOid)
void
setReferenceType(RCReferenceType referenceType)
void
setTransient(Boolean trans)
ObjectReferenceType
toJAXB(PrismContext prismContext)
-
Methods inherited from class com.evolveum.midpoint.repo.sql.data.common.container.RReference
fromJaxb, getRelation, getTargetOid, getTargetType, setRelation, setTarget, setTargetOid, setTargetType
-
-
-
-
Field Detail
-
REFERENCE_TYPE
public static final String REFERENCE_TYPE
- See Also:
- Constant Field Values
-
F_OWNER
public static final String F_OWNER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOwner
public abstract Container getOwner()
-
getOwnerOid
protected String getOwnerOid()
-
getOwnerId
protected Integer getOwnerId()
-
getTarget
public RObject getTarget()
- Overrides:
getTarget
in classRReference
-
getReferenceType
protected RCReferenceType getReferenceType()
-
setReferenceType
public void setReferenceType(RCReferenceType referenceType)
-
setOwnerOid
public void setOwnerOid(String ownerOid)
-
setOwnerId
public void setOwnerId(Integer ownerId)
-
isTransient
public Boolean isTransient()
Description copied from interface:EntityState
Tells hibernateInterceptor
that entity is transient, so that hibernate session doesn't need to verify it using select queries.- Specified by:
isTransient
in interfaceEntityState
- Returns:
- true if entity is transient
-
setTransient
public void setTransient(Boolean trans)
- Specified by:
setTransient
in interfaceEntityState
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classRReference
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classRReference
-
copyToJAXB
public static void copyToJAXB(RContainerReference repo, ObjectReferenceType jaxb, PrismContext prismContext)
-
toJAXB
public ObjectReferenceType toJAXB(PrismContext prismContext)
-
-