|
Download Sources | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface FlexSet
Used to define the Generics type on a Set property.
You can also define the Set implementation class for the generated java code.
Exemple :
public class MyEntity {
private Set<String> _names;
private Set<Integer> _selectedIds;
@FlexSet(String.class)
public Set<String> getNames(){
return _names;
}
public void setName(Set<String> names){
_names = names;
}
@FlexSet(value=Integer.class, clazz=TreeSet.class)
public Set<Integer> getSelectedIds(){
return _selectedIds;
}
public void setSelectedIds(Set<Integer> ids){
_selectedIds = names;
}
}
| Required Element Summary | |
|---|---|
java.lang.Class |
value
The Generics type declared on the Set property. |
| Optional Element Summary | |
|---|---|
java.lang.Class<? extends java.util.Set> |
clazz
Defines the Set implementation class for the generated java code. |
| Element Detail |
|---|
public abstract java.lang.Class value
The Generics type declared on the Set property.
public abstract java.lang.Class<? extends java.util.Set> clazz
Defines the Set implementation class for the generated java code.
The default value is java.util.HashSet
|
FlexGenerator | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||