Package org.freezedry.persistence.annotations

Examples of org.freezedry.persistence.annotations.PersistArray


    try
    {
      // grab the array annotation if the containing class isn't null. If the containing class is null,
      // then later in the code we set the name for which to persist the elements to the classes simple
      // name with the compound array name suffix
      PersistArray arrayAnnotation = null;
      if( containingClass != null && !containingClass.isArray() )
      {
        final Field field = ReflectionUtils.getDeclaredField( containingClass, fieldName );
        arrayAnnotation = field.getAnnotation( PersistArray.class );
      }
      if( arrayAnnotation != null && !arrayAnnotation.elementPersistName().isEmpty() )
      {
        elementPersistName = arrayAnnotation.elementPersistName();
      }
    }
    catch( ReflectiveOperationException e )
    {
      final StringBuffer message = new StringBuffer();
View Full Code Here


    try
    {
      // grab the array annotation if the containing class isn't null. If the containing class is null,
      // then later in the code we set the name for which to persist the elements to the classes simple
      // name with the compound array name suffix
      PersistArray arrayAnnotation = null;
      if( containingClass != null && !containingClass.isArray() )
      {
        final Field field = ReflectionUtils.getDeclaredField( containingClass, fieldName );
        arrayAnnotation = field.getAnnotation( PersistArray.class );
      }
      if( arrayAnnotation != null && !arrayAnnotation.elementPersistName().isEmpty() )
      {
        elementPersistName = arrayAnnotation.elementPersistName();
      }
    }
    catch( ReflectiveOperationException e )
    {
      final StringBuffer message = new StringBuffer();
View Full Code Here

    try
    {
      // grab the array annotation if the containing class isn't null. If the containing class is null,
      // then later in the code we set the name for which to persist the elements to the classes simple
      // name with the compound array name suffix
      PersistArray arrayAnnotation = null;
      if( containingClass != null && !containingClass.isArray() )
      {
        final Field field = ReflectionUtils.getDeclaredField( containingClass, fieldName );
        arrayAnnotation = field.getAnnotation( PersistArray.class );
      }
      if( arrayAnnotation != null && !arrayAnnotation.elementPersistName().isEmpty() )
      {
        elementPersistName = arrayAnnotation.elementPersistName();
      }
    }
    catch( ReflectiveOperationException e )
    {
      LOGGER.warn( "Field not found in containing class:" + Constants.NEW_LINE +
View Full Code Here

TOP

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

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.