Package org.freezedry.persistence.annotations

Examples of org.freezedry.persistence.annotations.Persist


   * @return the persistence name for the specified {@link Field}, or null if no persistence
   */
  public static String getPersistenceName( final Field field )
  {
    // see if the field has a @Persist( instantiateAs = XXXX.class ) annotation
    final Persist annotation = field.getAnnotation( Persist.class );
    String persistName = null;
    if( annotation != null )
    {
      persistName = annotation.persistenceName();
    }
    return persistName;
  }
View Full Code Here


   * {@link NodeBuilder} {@link Class} was specified in the annotation.
   */
  public static Class< ? > getNodeBuilderClass( final Field field )
  {
    // see if the field has a @Persist( instantiateAs = XXXX.class ) annotation
    final Persist annotation = field.getAnnotation( Persist.class );
    Class< ? > nodeBuilderClass = null;
    if( annotation != null )
    {
      nodeBuilderClass = annotation.useNodeBuilder();
    }
    return nodeBuilderClass;
  }
View Full Code Here

TOP

Related Classes of org.freezedry.persistence.annotations.Persist

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.