com.evolveum.midpoint.repo.sql.data.common.enums
Enum RReferenceOwner

java.lang.Object
  extended by java.lang.Enum<RReferenceOwner>
      extended by com.evolveum.midpoint.repo.sql.data.common.enums.RReferenceOwner
All Implemented Interfaces:
Serializable, Comparable<RReferenceOwner>

public enum RReferenceOwner
extends Enum<RReferenceOwner>

This is just helper enumeration for different types of reference entities used in many relationships.

Author:
lazyman

Enum Constant Summary
OBJECT_PARENT_ORG
          this constant also have to be changed in RParentOrgRef
RESOURCE_BUSINESS_CONFIGURATON_APPROVER
          this constant also have to be changed in RResourceApproverRef
ROLE_APPROVER
          this constant also have to be changed in RRoleApproverRef
SYSTEM_CONFIGURATION_ORG_ROOT
          this constant also have to be changed in ROrgRootRef
USER_ACCOUNT
          this constant also have to be changed in RAccountRef
 
Method Summary
static RObjectReference createObjectReference(RReferenceOwner owner)
           
 Class<? extends RObjectReference> getClazz()
          This is used for SessionFactory fix in RUtil.fixCompositeIDHandling(org.hibernate.SessionFactory)
 String getDiscriminator()
           
static RReferenceOwner valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RReferenceOwner[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OBJECT_PARENT_ORG

public static final RReferenceOwner OBJECT_PARENT_ORG
this constant also have to be changed in RParentOrgRef


USER_ACCOUNT

public static final RReferenceOwner USER_ACCOUNT
this constant also have to be changed in RAccountRef


RESOURCE_BUSINESS_CONFIGURATON_APPROVER

public static final RReferenceOwner RESOURCE_BUSINESS_CONFIGURATON_APPROVER
this constant also have to be changed in RResourceApproverRef


ROLE_APPROVER

public static final RReferenceOwner ROLE_APPROVER
this constant also have to be changed in RRoleApproverRef


SYSTEM_CONFIGURATION_ORG_ROOT

public static final RReferenceOwner SYSTEM_CONFIGURATION_ORG_ROOT
this constant also have to be changed in ROrgRootRef

Method Detail

values

public static RReferenceOwner[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RReferenceOwner c : RReferenceOwner.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RReferenceOwner valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getClazz

public Class<? extends RObjectReference> getClazz()
This is used for SessionFactory fix in RUtil.fixCompositeIDHandling(org.hibernate.SessionFactory)

Returns:
class based on reference type

getDiscriminator

public String getDiscriminator()

createObjectReference

public static RObjectReference createObjectReference(RReferenceOwner owner)


Copyright © 2013 evolveum. All Rights Reserved.