com.netflix.astyanax.mapping
Class DefaultAnnotationSet

java.lang.Object
  extended by com.netflix.astyanax.mapping.DefaultAnnotationSet
All Implemented Interfaces:
AnnotationSet<Id,Column>

Deprecated.

@Deprecated
public class DefaultAnnotationSet
extends java.lang.Object
implements AnnotationSet<Id,Column>

The default annotation set. Supports Id and Column


Constructor Summary
DefaultAnnotationSet()
          Deprecated.  
 
Method Summary
 java.lang.Class<Column> getColumnAnnotation()
          Deprecated.  
 java.lang.String getColumnName(java.lang.reflect.Field field, Column annotation)
          Deprecated. Return the column name to use for the given field.
 java.lang.Class<Id> getIdAnnotation()
          Deprecated.  
 java.lang.String getIdName(java.lang.reflect.Field field, Id annotation)
          Deprecated. Return the ID/Key name to use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAnnotationSet

public DefaultAnnotationSet()
Deprecated. 
Method Detail

getIdAnnotation

public java.lang.Class<Id> getIdAnnotation()
Deprecated. 
Specified by:
getIdAnnotation in interface AnnotationSet<Id,Column>
Returns:
the Annotation class that marks a bean field as being the ID/Key

getColumnAnnotation

public java.lang.Class<Column> getColumnAnnotation()
Deprecated. 
Specified by:
getColumnAnnotation in interface AnnotationSet<Id,Column>
Returns:
the Annotation class that marks a bean field as being persist-able.

getIdName

public java.lang.String getIdName(java.lang.reflect.Field field,
                                  Id annotation)
Deprecated. 
Description copied from interface: AnnotationSet
Return the ID/Key name to use

Specified by:
getIdName in interface AnnotationSet<Id,Column>
Parameters:
field - the field from the bean
annotation - the id annotation
Returns:
name to use for the field (cannot be null)

getColumnName

public java.lang.String getColumnName(java.lang.reflect.Field field,
                                      Column annotation)
Deprecated. 
Description copied from interface: AnnotationSet
Return the column name to use for the given field. NOTE: if the field should not be persisted, return null.

Specified by:
getColumnName in interface AnnotationSet<Id,Column>
Parameters:
field - the field from the bean
annotation - the column annotation
Returns:
name to use for the field or null