nl.gx.webmanager.jcr.annotation
Annotation Type Collection


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Collection

Annotation for properties of collection type.

Author:
n.milutinovic

Required Element Summary
 java.lang.Class<?> memberType
          Get type of the collection members.
 Collection.Type type
          Get the type parameter of the annotation.
 
Optional Element Summary
 boolean lazy
          If the collection should use lazy loading.
 boolean reference
          Specify if the non JCR-simple-types are references or child nodes.
 

Element Detail

type

public abstract Collection.Type type
Get the type parameter of the annotation. It must match the actual type or errors will occur.

Returns:
collection type.

memberType

public abstract java.lang.Class<?> memberType
Get type of the collection members.

Returns:
member type.

lazy

public abstract boolean lazy
If the collection should use lazy loading.

Returns:
true if the collection should implement lazy loading.
Default:
true

reference

public abstract boolean reference
Specify if the non JCR-simple-types are references or child nodes.

Returns:
true if nodes are referenced, false if they are child nodes.
Default:
true


Copyright © 2007-2010 GX creative online development BV. All Rights Reserved.