本文整理匯總了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;
}