public interface

AnnotationSet

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

Class Overview

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

Summary

Public Methods
abstract Class<COLUMN> getColumnAnnotation()
abstract String getColumnName(Field field, COLUMN annotation)
Return the column name to use for the given field.
abstract Class<ID> getIdAnnotation()
abstract String getIdName(Field field, ID annotation)
Return the ID/Key name to use

Public Methods

public abstract Class<COLUMN> getColumnAnnotation ()

Returns
  • the Annotation class that marks a bean field as being persist-able.

public abstract String getColumnName (Field field, COLUMN annotation)

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

public abstract Class<ID> getIdAnnotation ()

Returns
  • the Annotation class that marks a bean field as being the ID/Key

public abstract String getIdName (Field field, ID annotation)

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)