Class MetamodelTypes
java.lang.Object
io.micronaut.data.processor.visitors.MetamodelTypes
Utility class containing commonly used Java type names .
This class groups Java types into categories such as:
- NumericAttribute
- TemporalAttribute
- TextAttribute
- BooleanAttribute
- BasicAttribute
-
Field Summary
FieldsModifier and TypeFieldDescriptionSet of boolean Java.static final StringCharSequencetype name.static final StringBigDecimaltype name.static final StringBigIntegertype name.static final StringBytetype name.static final StringDoubletype name.static final StringFloattype name.static final StringIntegertype name.static final StringLongtype name.static final StringShorttype name.static final StringDatetype name.static final StringTimetype name.static final StringTimestamptype name.static final StringCalendartype name.static final StringDatetype name.static final StringGregorianCalendartype name.static final StringUUIDtype name.static final StringGeneratedannotation name.static final StringBasicAttributetype name.static final StringBooleanAttributetype name.static final StringComparableAttributetype name.static final StringNavigableAttributetype name.static final StringNumericAttributetype name.static final StringSortableAttributetype name.static final StringStaticMetamodelannotation name.static final StringTemporalAttributetype name.static final StringTextAttributetype name.static final StringBooleantype name.static final StringCharactertype name.static final StringStringtype name.static final StringInstanttype name.static final StringLocalDatetype name.static final StringLocalDateTimetype name.static final StringLocalTimetype name.static final StringMonthtype name.static final StringMonthDaytype name.static final StringOffsetDateTimetype name.static final StringOffsetTimetype name.static final StringYeartype name.static final StringYearMonthtype name.static final StringZonedDateTimetype name.Set of numeric Java types.Set of temporal Java types.Set of textual Java types. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDetermines whether the given type is considered boolean.static booleanDetermines whether the given type is considered numeric.static booleanisTemporal(String type) Determines whether the given type is considered temporal.static booleanDetermines whether the given type is considered textual.static booleanDetermines whether the given type is a collection type.
-
Field Details
-
J_BYTE
-
J_SHORT
-
J_INTEGER
-
J_LONG
-
J_FLOAT
-
J_DOUBLE
-
J_BIG_INTEGER
-
J_BIG_DECIMAL
-
J_UTIL_DATE
-
J_UTIL_CALENDAR
-
J_UTIL_GREGORIAN_CALENDAR
-
J_SQL_DATE
-
J_SQL_TIME
-
J_SQL_TIMESTAMP
-
JT_INSTANT
-
JT_LOCAL_DATE
-
JT_LOCAL_TIME
-
JT_LOCAL_DATE_TIME
-
JT_OFFSET_TIME
-
JT_OFFSET_DATE_TIME
-
JT_ZONED_DATE_TIME
-
JT_YEAR
-
JT_YEAR_MONTH
-
JT_MONTH
-
JT_MONTH_DAY
-
JL_STRING
-
JL_CHARACTER
-
CHAR_SEQUENCE
-
JL_BOOLEAN
-
J_UTIL_UUID
-
JAKARTA_ANNOTATION_GENERATED
-
JAKARTA_DATA_STATIC_METAMODEL
-
JAKARTA_DATA_BASIC_ATTRIBUTE
-
JAKARTA_DATA_TEXT_ATTRIBUTE
-
JAKARTA_DATA_NUMERIC_ATTRIBUTE
-
JAKARTA_DATA_BOOLEAN_ATTRIBUTE
-
JAKARTA_DATA_TEMPORAL_ATTRIBUTE
-
JAKARTA_DATA_NAVIGABLE_ATTRIBUTE
-
JAKARTA_DATA_SORTABLE_ATTRIBUTE
-
JAKARTA_DATA_COMPARABLE_ATTRIBUTE
ComparableAttributetype name.- See Also:
-
NUMERIC_TYPES
-
TEMPORAL_TYPES
-
TEXT_TYPES
-
BOOLEAN_TYPES
-
-
Constructor Details
-
MetamodelTypes
public MetamodelTypes()
-
-
Method Details
-
isNumeric
Determines whether the given type is considered numeric.- Parameters:
type- The fully qualified Java type name- Returns:
trueif the type is numeric
-
isTemporal
Determines whether the given type is considered temporal.- Parameters:
type- The fully qualified Java type name- Returns:
trueif the type is temporal
-
isText
Determines whether the given type is considered textual.- Parameters:
type- The fully qualified Java type name- Returns:
trueif the type is textual
-
isBoolean
Determines whether the given type is considered boolean.- Parameters:
type- The fully qualified Java type name- Returns:
trueif the type is boolean
-
isUuid
Determines whether the given type is a collection type.- Parameters:
type- The fully qualified Java type name- Returns:
trueif the type is a collection type
-