Package org.redisson.liveobject.resolver
Class DefaultNamingScheme
- java.lang.Object
-
- org.redisson.liveobject.resolver.AbstractNamingScheme
-
- org.redisson.liveobject.resolver.DefaultNamingScheme
-
- All Implemented Interfaces:
NamingScheme
public class DefaultNamingScheme extends AbstractNamingScheme implements NamingScheme
- Author:
- Rui Gu (https://github.com/jackygurui), Nikita Koksharov
-
-
Field Summary
-
Fields inherited from class org.redisson.liveobject.resolver.AbstractNamingScheme
codec
-
-
Constructor Summary
Constructors Constructor Description DefaultNamingScheme(Codec codec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFieldReferenceName(Class<?> entityClass, Object idValue, Class<?> fieldClass, String fieldName)
String
getIndexName(Class<?> entityClass, String fieldName)
String
getName(Class<?> entityClass, Object idValue)
String
getNamePattern(Class<?> entityClass)
Object
resolveId(String name)
-
Methods inherited from class org.redisson.liveobject.resolver.AbstractNamingScheme
getCodec
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.redisson.liveobject.resolver.NamingScheme
getCodec
-
-
-
-
Constructor Detail
-
DefaultNamingScheme
public DefaultNamingScheme(Codec codec)
-
-
Method Detail
-
getNamePattern
public String getNamePattern(Class<?> entityClass)
- Specified by:
getNamePattern
in interfaceNamingScheme
-
getName
public String getName(Class<?> entityClass, Object idValue)
- Specified by:
getName
in interfaceNamingScheme
-
getFieldReferenceName
public String getFieldReferenceName(Class<?> entityClass, Object idValue, Class<?> fieldClass, String fieldName)
- Specified by:
getFieldReferenceName
in interfaceNamingScheme
-
resolveId
public Object resolveId(String name)
- Specified by:
resolveId
in interfaceNamingScheme
-
getIndexName
public String getIndexName(Class<?> entityClass, String fieldName)
- Specified by:
getIndexName
in interfaceNamingScheme
-
-