com.netflix.astyanax.mapping
Interface AnnotationSet<ID extends java.lang.annotation.Annotation,COLUMN extends java.lang.annotation.Annotation>

All Known Implementing Classes:
DefaultAnnotationSet

Deprecated.

@Deprecated
public interface AnnotationSet<ID extends java.lang.annotation.Annotation,COLUMN extends java.lang.annotation.Annotation>

Allows for any annotations to be used to mark columns in a bean


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
 

Method Detail

getIdAnnotation

java.lang.Class<ID> getIdAnnotation()
Deprecated. 
Returns:
the Annotation class that marks a bean field as being the ID/Key

getColumnAnnotation

java.lang.Class<COLUMN> getColumnAnnotation()
Deprecated. 
Returns:
the Annotation class that marks a bean field as being persist-able.

getIdName

java.lang.String getIdName(java.lang.reflect.Field field,
                           ID annotation)
Deprecated. 
Return the ID/Key name to use

Parameters:
field - the field from the bean
annotation - the id annotation
Returns:
name to use for the field (cannot be null)

getColumnName

java.lang.String getColumnName(java.lang.reflect.Field field,
                               COLUMN annotation)
Deprecated. 
Return the column name to use for the given field. NOTE: if the field should not be persisted, return null.

Parameters:
field - the field from the bean
annotation - the column annotation
Returns:
name to use for the field or null