本文整理汇总了Java中javax.persistence.EnumType.ORDINAL属性的典型用法代码示例。如果您正苦于以下问题:Java EnumType.ORDINAL属性的具体用法?Java EnumType.ORDINAL怎么用?Java EnumType.ORDINAL使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.persistence.EnumType
的用法示例。
在下文中一共展示了EnumType.ORDINAL属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: valueOf
public static EnumType valueOf(ENUM_TYPE en) {
switch (en) {
case ORDINAL: return EnumType.ORDINAL;
case STRING: return EnumType.STRING;
default: return null;
}
}
示例2: getType
/**
* @return type type of KPI
*/
@Enumerated(EnumType.ORDINAL)
@Column(name = "type", unique = false, nullable = false)
@Field(index=org.hibernate.search.annotations.Index.TOKENIZED, store=Store.NO)
public Type getType() {
return this.type;
}
示例3: getEventStage
@Enumerated(EnumType.ORDINAL)
public RAuditEventStage getEventStage() {
return eventStage;
}
示例4: getEventType
@Enumerated(EnumType.ORDINAL)
public RAuditEventType getEventType() {
return eventType;
}
示例5: getOutcome
@Enumerated(EnumType.ORDINAL)
public ROperationResultStatus getOutcome() {
return outcome;
}
示例6: getTargetType
@Enumerated(EnumType.ORDINAL)
public RObjectType getTargetType() {
return targetType;
}
示例7: getValidityStatus
@Column(nullable = true)
@Enumerated(EnumType.ORDINAL)
public RTimeIntervalStatus getValidityStatus() {
return validityStatus;
}
示例8: getAdministrativeStatus
@Column(nullable = true)
@Enumerated(EnumType.ORDINAL)
public RActivationStatus getAdministrativeStatus() {
return administrativeStatus;
}
示例9: getEffectiveStatus
@Column(nullable = true)
@Enumerated(EnumType.ORDINAL)
public RActivationStatus getEffectiveStatus() {
return effectiveStatus;
}
示例10: getType
@Enumerated(EnumType.ORDINAL)
@Override
public RObjectType getType() {
return type;
}
示例11: getType
@Enumerated(EnumType.ORDINAL)
@Override
public RObjectType getType() {
return super.getType();
}
示例12: getType
/**
* @return type
*/
@Enumerated(EnumType.ORDINAL)
@Column(name = "type", nullable = false)
public Type getType() {
return this.type;
}
示例13: getType
/**
* @return type
*/
@Enumerated(EnumType.ORDINAL)
@Column(name = "type", unique = false, nullable = false)
public Type getType() {
return this.type;
}
示例14: getAnswerDataType
/**
* @return answerDataType
*/
@Enumerated(EnumType.ORDINAL)
@Column(name = "answer_data_type", unique = false, nullable = false)
public AnswerDataType getAnswerDataType() {
return this.answerDataType;
}
示例15: getCustomQuestionType
/**
* @return Type of a custom question
*/
@Enumerated(EnumType.ORDINAL)
@Column(name = "custom_question_type", nullable = true)
public CustomQuestionType getCustomQuestionType() {
return this.customQuestionType;
}