@Deprecated
class DynamoDBReflector
extends java.lang.Object
DynamoDBMapper
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.reflect.Method,java.lang.String> |
attributeNameCache
Deprecated.
|
private java.util.Map<java.lang.reflect.Method,java.lang.Boolean> |
autoGeneratedKeyGetterCache
Deprecated.
|
private java.util.Map<java.lang.Class<?>,java.util.Collection<java.lang.reflect.Method>> |
getterCache
Deprecated.
|
private java.util.Map<java.lang.Class<?>,java.lang.reflect.Method> |
primaryHashKeyGetterCache
Deprecated.
|
private java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> |
primaryKeyGettersCache
Deprecated.
|
private java.util.Map<java.lang.Class<?>,java.lang.reflect.Method> |
primaryRangeKeyGetterCache
Deprecated.
|
private java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock |
readLockAttrName
Deprecated.
|
private java.util.concurrent.locks.ReentrantReadWriteLock |
readWriteLockAttrName
Deprecated.
|
private java.util.Map<java.lang.reflect.Method,java.lang.reflect.Method> |
setterCache
Deprecated.
|
private java.util.Map<java.lang.reflect.Method,java.lang.Boolean> |
versionAttributeGetterCache
Deprecated.
|
private java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock |
writeLockAttrName
Deprecated.
|
Constructor and Description |
---|
DynamoDBReflector()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
cacheAttributeName(java.lang.reflect.Method getter,
java.lang.String attributeName)
Deprecated.
|
(package private) static java.util.List<java.lang.reflect.Method> |
findRelevantGetters(java.lang.Class<?> clazz)
Deprecated.
|
(package private) java.lang.String |
getAttributeName(java.lang.reflect.Method getter)
Deprecated.
Returns the attribute name corresponding to the given getter method.
|
(package private) <T> java.lang.reflect.Method |
getPrimaryHashKeyGetter(java.lang.Class<T> clazz)
Deprecated.
Returns the annotated
DynamoDBHashKey getter for the class given,
throwing an exception if there isn't one. |
(package private) java.lang.String |
getPrimaryHashKeyName(java.lang.Class<?> clazz)
Deprecated.
Returns the name of the primary hash key.
|
(package private) <T> java.util.Collection<java.lang.reflect.Method> |
getPrimaryKeyGetters(java.lang.Class<T> clazz)
Deprecated.
Returns all annotated
DynamoDBHashKey and
DynamoDBRangeKey getters for the class given, throwing an
exception if there isn't one. |
(package private) <T> java.lang.reflect.Method |
getPrimaryRangeKeyGetter(java.lang.Class<T> clazz)
Deprecated.
Returns the annotated
DynamoDBRangeKey getter for the class
given, or null if the class doesn't have one. |
(package private) java.lang.String |
getPrimaryRangeKeyName(java.lang.Class<?> clazz)
Deprecated.
Returns the name of the primary range key, or null if the table does not
one.
|
(package private) java.util.Collection<java.lang.reflect.Method> |
getRelevantGetters(java.lang.Class<?> clazz)
Deprecated.
Returns the set of getter methods which are relevant when marshalling or
unmarshalling an object.
|
(package private) java.lang.reflect.Method |
getSetter(java.lang.reflect.Method getter)
Deprecated.
Returns the setter corresponding to the getter given, or null if no such
setter exists.
|
(package private) <T> DynamoDBTable |
getTable(java.lang.Class<T> clazz)
Deprecated.
Returns the
DynamoDBTable annotation of the class given, throwing
a runtime exception if it isn't annotated. |
(package private) boolean |
hasPrimaryRangeKey(java.lang.Class<?> clazz)
Deprecated.
Returns true if and only if the specified class has declared a
primary range key.
|
(package private) boolean |
isAssignableKey(java.lang.reflect.Method getter)
Deprecated.
Returns whether the method given is an assignable key getter.
|
private static boolean |
isDocumentType(java.lang.Class<?> clazz)
Deprecated.
|
private static boolean |
isRelevantGetter(java.lang.reflect.Method m)
Deprecated.
Returns whether the method given is a getter method we should serialize /
deserialize to the service.
|
(package private) boolean |
isVersionAttributeGetter(java.lang.reflect.Method getter)
Deprecated.
Returns whether the method given is an annotated, no-args getter of a
version attribute.
|
private final java.util.Map<java.lang.Class<?>,java.util.Collection<java.lang.reflect.Method>> getterCache
private final java.util.Map<java.lang.Class<?>,java.lang.reflect.Method> primaryHashKeyGetterCache
private final java.util.Map<java.lang.Class<?>,java.lang.reflect.Method> primaryRangeKeyGetterCache
private final java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> primaryKeyGettersCache
private final java.util.Map<java.lang.reflect.Method,java.lang.reflect.Method> setterCache
private final java.util.Map<java.lang.reflect.Method,java.lang.String> attributeNameCache
private final java.util.Map<java.lang.reflect.Method,java.lang.Boolean> versionAttributeGetterCache
private final java.util.Map<java.lang.reflect.Method,java.lang.Boolean> autoGeneratedKeyGetterCache
private final java.util.concurrent.locks.ReentrantReadWriteLock readWriteLockAttrName
private final java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock readLockAttrName
private final java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock writeLockAttrName
java.util.Collection<java.lang.reflect.Method> getRelevantGetters(java.lang.Class<?> clazz)
static java.util.List<java.lang.reflect.Method> findRelevantGetters(java.lang.Class<?> clazz)
private static boolean isRelevantGetter(java.lang.reflect.Method m)
private static boolean isDocumentType(java.lang.Class<?> clazz)
<T> java.lang.reflect.Method getPrimaryRangeKeyGetter(java.lang.Class<T> clazz)
DynamoDBRangeKey
getter for the class
given, or null if the class doesn't have one.<T> java.util.Collection<java.lang.reflect.Method> getPrimaryKeyGetters(java.lang.Class<T> clazz)
DynamoDBHashKey
and
DynamoDBRangeKey
getters for the class given, throwing an
exception if there isn't one.<T> java.lang.reflect.Method getPrimaryHashKeyGetter(java.lang.Class<T> clazz)
DynamoDBHashKey
getter for the class given,
throwing an exception if there isn't one.<T> DynamoDBTable getTable(java.lang.Class<T> clazz)
DynamoDBTable
annotation of the class given, throwing
a runtime exception if it isn't annotated.java.lang.String getAttributeName(java.lang.reflect.Method getter)
private java.lang.String cacheAttributeName(java.lang.reflect.Method getter, java.lang.String attributeName)
java.lang.reflect.Method getSetter(java.lang.reflect.Method getter)
boolean isVersionAttributeGetter(java.lang.reflect.Method getter)
boolean isAssignableKey(java.lang.reflect.Method getter)
java.lang.String getPrimaryHashKeyName(java.lang.Class<?> clazz)
java.lang.String getPrimaryRangeKeyName(java.lang.Class<?> clazz)
boolean hasPrimaryRangeKey(java.lang.Class<?> clazz)