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,
List<CascadeType> cascadeTypes,
FetchMode fetchMode,
Boolean optional,
String mappedBy,
Boolean orphanRemoval,
Map<String,AnnotationDefinition> annotationDefinitions) |
static Annotation |
createAnnotation(RelationType relationType,
List<CascadeType> cascadeTypes,
Map<String,AnnotationDefinition> annotationDefinitions) |
List<CascadeType> |
getCascade() |
FetchMode |
getFetch() |
String |
getMappedBy() |
Boolean |
getOptional() |
Boolean |
getOrphanRemoval() |
RelationType |
getRelationType() |
boolean |
isManyToMany() |
boolean |
isManyToOne() |
boolean |
isOneToMany() |
boolean |
isOneToOne() |
void |
setCascade(List<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, getValue, getValue, getValue, getValue, getValue, 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 List<CascadeType> getCascade()
public void setCascade(List<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, List<CascadeType> cascadeTypes, Map<String,AnnotationDefinition> annotationDefinitions)
public static Annotation createAnnotation(RelationType relationType, List<CascadeType> cascadeTypes, FetchMode fetchMode, Boolean optional, String mappedBy, Boolean orphanRemoval, Map<String,AnnotationDefinition> annotationDefinitions)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.