com.semarchy.mdm.runtime.model.logical
Enum PKType

java.lang.Object
  extended by java.lang.Enum<PKType>
      extended by com.semarchy.mdm.runtime.model.logical.PKType
All Implemented Interfaces:
Serializable, Comparable<PKType>

public enum PKType
extends Enum<PKType>

PKType enumeration:

Type of system defiend primary key


Enum Constant Summary
SDPK_SEQUENCE
          System Defined as Sequence: Use a sequence to generate entity identifiers.
SDPK_UUID
          System Defined as Universal Unique Identifier: Use a random UUID generator to generate entity identifiers.
UDPK
          User Defined: Let the user manager the entity identifiers
 
Method Summary
 boolean isSDPK()
           
static PKType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PKType[] 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

SDPK_SEQUENCE

public static final PKType SDPK_SEQUENCE
System Defined as Sequence: Use a sequence to generate entity identifiers.


SDPK_UUID

public static final PKType SDPK_UUID
System Defined as Universal Unique Identifier: Use a random UUID generator to generate entity identifiers.


UDPK

public static final PKType UDPK
User Defined: Let the user manager the entity identifiers

Method Detail

values

public static PKType[] 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 (PKType c : PKType.values())
    System.out.println(c);

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

valueOf

public static PKType 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

isSDPK

public boolean isSDPK()


Copyright © 2015. All Rights Reserved.