public class RelationshipAnnotationValueHandler extends AnnotationValueHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
CASCADE |
static String |
FETCH |
static String |
MAPPED_BY |
static String |
OPTIONAL |
static String |
ORPHAN_REMOVAL |
static String |
RELATION_TYPE |
annotation| Constructor and Description |
|---|
RelationshipAnnotationValueHandler(Annotation annotation) |
| Modifier and Type | Method and Description |
|---|---|
static Annotation |
createAnnotation(RelationType relationType,
CascadeType cascadeType,
FetchMode fetchMode,
Boolean optional,
String mappedBy,
Boolean orphanRemoval,
Map<String,AnnotationDefinition> annotationDefinitions) |
CascadeType |
getCascade() |
FetchMode |
getFetch() |
String |
getMappedBy() |
Boolean |
getOptional() |
Boolean |
getOrphanRemoval() |
RelationType |
getRelationType() |
boolean |
isManyToMany() |
boolean |
isManyToOne() |
boolean |
isOneToMany() |
boolean |
isOneToOne() |
void |
setCascade(CascadeType cascade) |
void |
setFetch(FetchMode fetch) |
void |
setMappedBy(String mappedBy) |
void |
setOptional(Boolean optional) |
void |
setOrphanRemoval(Boolean orphanRemoval) |
getAnnotation, getClassName, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, setValuepublic static final String RELATION_TYPE
public static final String CASCADE
public static final String FETCH
public static final String OPTIONAL
public static final String MAPPED_BY
public static final String ORPHAN_REMOVAL
public RelationshipAnnotationValueHandler(Annotation annotation)
public RelationType getRelationType()
public boolean isOneToOne()
public boolean isOneToMany()
public boolean isManyToOne()
public boolean isManyToMany()
public CascadeType getCascade()
public void setCascade(CascadeType cascade)
public FetchMode getFetch()
public void setFetch(FetchMode fetch)
public Boolean getOptional()
public void setOptional(Boolean optional)
public String getMappedBy()
public void setMappedBy(String mappedBy)
public Boolean getOrphanRemoval()
public void setOrphanRemoval(Boolean orphanRemoval)
public static Annotation createAnnotation(RelationType relationType, CascadeType cascadeType, FetchMode fetchMode, Boolean optional, String mappedBy, Boolean orphanRemoval, Map<String,AnnotationDefinition> annotationDefinitions)
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.