Class RObjectReference<T extends RObject>
- java.lang.Object
-
- com.evolveum.midpoint.repo.sql.data.common.RObjectReference<T>
-
- All Implemented Interfaces:
ObjectReference
,EntityState
,Serializable
@Entity public class RObjectReference<T extends RObject> extends Object implements ObjectReference, EntityState
- Author:
- lazyman
- 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 RObjectReference()
-
Method Summary
-
-
-
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
-
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
-
getOwner
public RObject getOwner()
-
getOwnerOid
public String getOwnerOid()
-
getTarget
public T getTarget()
-
getTargetOid
public String getTargetOid()
- Specified by:
getTargetOid
in interfaceObjectReference
-
getRelation
public String getRelation()
- Specified by:
getRelation
in interfaceObjectReference
-
getReferenceType
public RReferenceOwner getReferenceType()
-
setReferenceType
public void setReferenceType(RReferenceOwner referenceType)
-
getType
public RObjectType getType()
- Specified by:
getType
in interfaceObjectReference
- Returns:
- null if not defined, otherwise value from
RObjectType
enum
-
setOwner
public void setOwner(RObject owner)
-
setOwnerOid
public void setOwnerOid(String ownerOid)
-
setRelation
public void setRelation(String relation)
- Specified by:
setRelation
in interfaceObjectReference
-
setTarget
public void setTarget(T target)
-
setTargetOid
public void setTargetOid(String targetOid)
- Specified by:
setTargetOid
in interfaceObjectReference
-
setType
public void setType(RObjectType type)
- Specified by:
setType
in interfaceObjectReference
-
copyToJAXB
public static void copyToJAXB(RObjectReference repo, ObjectReferenceType jaxb)
-
copyFromJAXB
public static ObjectReference copyFromJAXB(ObjectReferenceType jaxb, ObjectReference repo, RelationRegistry relationRegistry)
-
toJAXB
public ObjectReferenceType toJAXB(PrismContext prismContext)
-
-