public class DefaultNamingScheme extends AbstractNamingScheme implements NamingScheme
Modifier and Type | Field and Description |
---|---|
static DefaultNamingScheme |
INSTANCE |
codec
Constructor and Description |
---|
DefaultNamingScheme(Codec codec) |
Modifier and Type | Method and Description |
---|---|
String |
getFieldReferenceName(Class<?> entityClass,
Object idValue,
Class<?> fieldClass,
String fieldName,
Object fieldValue) |
String |
getName(Class<?> entityClass,
Class<?> idFieldClass,
String idFieldName,
Object idValue) |
String |
resolveClassName(String name) |
Object |
resolveId(String name) |
String |
resolveIdFieldName(String name) |
public static final DefaultNamingScheme INSTANCE
public DefaultNamingScheme(Codec codec)
public String getName(Class<?> entityClass, Class<?> idFieldClass, String idFieldName, Object idValue)
getName
in interface NamingScheme
public String getFieldReferenceName(Class<?> entityClass, Object idValue, Class<?> fieldClass, String fieldName, Object fieldValue)
getFieldReferenceName
in interface NamingScheme
public String resolveClassName(String name)
resolveClassName
in interface NamingScheme
public String resolveIdFieldName(String name)
resolveIdFieldName
in interface NamingScheme
public Object resolveId(String name)
resolveId
in interface NamingScheme
Copyright © 2014–2017 The Redisson Project. All rights reserved.