public interface Namer
| Modifier and Type | Field and Description |
|---|---|
static String |
PRIMARY_KEY |
static String |
RELATION |
static String |
RESOURCE_NAME |
static String |
ROLE_CHILD |
static String |
ROLE_PARENT |
| Modifier and Type | Method and Description |
|---|---|
default String |
primaryKey(String type,
Collection<String> values)
Format the primary key given a table type and collection of primary key values.
|
default String |
relationName(String type)
Get the name of a relation relating something to the given type
|
default String |
resourceName(String tableName,
String type)
Get the name of a relation between an object and a resource
|
default String |
roleChildName(String type)
Get the name of the role the given type will play when it is contained in another type
|
default String |
roleParentName(String type)
Get the name of the role the owner of the given type will play
|
static final String RESOURCE_NAME
static final String RELATION
static final String ROLE_CHILD
static final String ROLE_PARENT
static final String PRIMARY_KEY
default String resourceName(String tableName, String type)
default String relationName(String type)
default String roleParentName(String type)
default String roleChildName(String type)
default String primaryKey(String type, Collection<String> values)
Copyright © 2016. All rights reserved.