Package io.jmix.graphql
Class NamingUtils
java.lang.Object
io.jmix.graphql.NamingUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull String
composeByIdQueryName
(MetaClass metaClass) static @NotNull String
composeCountQueryName
(MetaClass metaClass) static @NotNull String
composeDeleteMutationName
(MetaClass metaClass) static @NotNull String
composeListQueryName
(MetaClass metaClass) static @NotNull String
composeUpsertMutationName
(MetaClass metaClass) static String
normalizeInpTypeName
(String name) Replace all symbols that we can't use in graphql types, such '$', add input type prefixstatic String
normalizeName
(String name) static @NotNull String
uncapitalizedSimpleName
(Class<?> aClass)
-
Field Details
-
QUERY_ENTITY_MESSAGES
- See Also:
-
QUERY_ENUM_MESSAGES
- See Also:
-
QUERY_PERMISSIONS
- See Also:
-
TYPE_GQL_MESSAGE_DETAIL
- See Also:
-
TYPE_SEC_PERMISSION
- See Also:
-
TYPE_SEC_PERMISSION_CONFIG
- See Also:
-
ENTITIES
- See Also:
-
ENTITY_ATTRS
- See Also:
-
SPECIFICS
- See Also:
-
SYS_ATTR_TYPENAME
- See Also:
-
SYS_ATTR_INSTANCE_NAME
- See Also:
-
FILTER
- See Also:
-
LIMIT
- See Also:
-
OFFSET
- See Also:
-
ORDER_BY
- See Also:
-
SOFT_DELETION
- See Also:
-
ID_ATTR_NAME
- See Also:
-
INPUT_TYPE_PREFIX
- See Also:
-
-
Constructor Details
-
NamingUtils
public NamingUtils()
-
-
Method Details
-
normalizeInpTypeName
Replace all symbols that we can't use in graphql types, such '$', add input type prefix- Parameters:
name
- name to be normalized- Returns:
- normalized name
-
normalizeName
-
composeListQueryName
-
composeCountQueryName
-
composeByIdQueryName
-
composeUpsertMutationName
-
composeDeleteMutationName
-
uncapitalizedSimpleName
-