org.springframework.roo.classpath.operations.jsr303
Class SetField

java.lang.Object
  extended by org.springframework.roo.classpath.operations.jsr303.FieldDetails
      extended by org.springframework.roo.classpath.operations.jsr303.CollectionField
          extended by org.springframework.roo.classpath.operations.jsr303.SetField

public class SetField
extends CollectionField

Properties used by the one side of a many-to-one relationship (called a "set").

For example, an Order-LineItem link would have the Order contain a "set" of Orders.

Limited support for collection mapping is provided. This reflects the pragmatic goals of the tool and the fact a user can edit the generated files by hand anyway.

This field is intended for use with JSR 220 and will create a @OneToMany annotation.

Since:
1.0
Author:
Ben Alex

Field Summary
 
Fields inherited from class org.springframework.roo.classpath.operations.jsr303.FieldDetails
comment
 
Constructor Summary
SetField(String physicalTypeIdentifier, org.springframework.roo.model.JavaType fieldType, org.springframework.roo.model.JavaSymbolName fieldName, org.springframework.roo.model.JavaType genericParameterTypeName, Cardinality cardinality)
           
 
Method Summary
 void decorateAnnotationsList(List<AnnotationMetadata> annotations)
           
 Fetch getFetch()
           
 org.springframework.roo.model.JavaType getInitializer()
           
 org.springframework.roo.model.JavaSymbolName getMappedBy()
           
 void setFetch(Fetch fetch)
           
 void setMappedBy(org.springframework.roo.model.JavaSymbolName mappedBy)
           
 
Methods inherited from class org.springframework.roo.classpath.operations.jsr303.CollectionField
getGenericParameterTypeName, getSizeMax, getSizeMin, setGenericParameterTypeName, setSizeMax, setSizeMin
 
Methods inherited from class org.springframework.roo.classpath.operations.jsr303.FieldDetails
getColumn, getComment, getFieldName, getFieldType, getPhysicalTypeIdentifier, isNotNull, isNullRequired, setColumn, setComment, setNotNull, setNullRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetField

public SetField(String physicalTypeIdentifier,
                org.springframework.roo.model.JavaType fieldType,
                org.springframework.roo.model.JavaSymbolName fieldName,
                org.springframework.roo.model.JavaType genericParameterTypeName,
                Cardinality cardinality)
Method Detail

getFetch

public Fetch getFetch()

setFetch

public void setFetch(Fetch fetch)

decorateAnnotationsList

public void decorateAnnotationsList(List<AnnotationMetadata> annotations)
Overrides:
decorateAnnotationsList in class CollectionField

getInitializer

public org.springframework.roo.model.JavaType getInitializer()
Specified by:
getInitializer in class CollectionField

getMappedBy

public org.springframework.roo.model.JavaSymbolName getMappedBy()

setMappedBy

public void setMappedBy(org.springframework.roo.model.JavaSymbolName mappedBy)


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.