|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ManyToOne<T>
This interface defines the contract for the many-to-one
xsd type
Method Summary | |
---|---|
JoinColumn<ManyToOne<T>> |
createJoinColumn()
Creates a new join-column element |
ManyToOne<T> |
fetch(FetchType fetch)
Sets the fetch attribute |
ManyToOne<T> |
fetch(String fetch)
Sets the fetch attribute |
List<JoinColumn<ManyToOne<T>>> |
getAllJoinColumn()
Returns all join-column elements |
FetchType |
getFetch()
Returns the fetch attribute |
String |
getFetchAsString()
Returns the fetch attribute |
String |
getName()
Returns the name attribute |
CascadeType<ManyToOne<T>> |
getOrCreateCascade()
If not already created, a new cascade element with the given value will be created. |
JoinColumn<ManyToOne<T>> |
getOrCreateJoinColumn()
If not already created, a new join-column element will be created and returned. |
JoinTable<ManyToOne<T>> |
getOrCreateJoinTable()
If not already created, a new join-table element with the given value will be created. |
String |
getTargetEntity()
Returns the target-entity attribute |
Boolean |
isOptional()
Returns the optional attribute |
ManyToOne<T> |
name(String name)
Sets the name attribute |
ManyToOne<T> |
optional(Boolean optional)
Sets the optional attribute |
ManyToOne<T> |
removeAllJoinColumn()
Removes all join-column elements |
ManyToOne<T> |
removeCascade()
Removes the cascade element |
ManyToOne<T> |
removeFetch()
Removes the fetch attribute |
ManyToOne<T> |
removeJoinTable()
Removes the join-table element |
ManyToOne<T> |
removeName()
Removes the name attribute |
ManyToOne<T> |
removeOptional()
Removes the optional attribute |
ManyToOne<T> |
removeTargetEntity()
Removes the target-entity attribute |
ManyToOne<T> |
targetEntity(String targetEntity)
Sets the target-entity attribute |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child |
---|
up |
Method Detail |
---|
JoinColumn<ManyToOne<T>> getOrCreateJoinColumn()
join-column
element will be created and returned.
Otherwise, the first existing join-column
element will be returned.
join-column
JoinColumn<ManyToOne<T>> createJoinColumn()
join-column
element
JoinColumn>
List<JoinColumn<ManyToOne<T>>> getAllJoinColumn()
join-column
elements
join-column
ManyToOne<T> removeAllJoinColumn()
join-column
elements
JoinColumn>
JoinTable<ManyToOne<T>> getOrCreateJoinTable()
join-table
element with the given value will be created.
Otherwise, the existing join-table
element will be returned.
JoinTable>
ManyToOne<T> removeJoinTable()
join-table
element
ManyToOne
CascadeType<ManyToOne<T>> getOrCreateCascade()
cascade
element with the given value will be created.
Otherwise, the existing cascade
element will be returned.
CascadeType>
ManyToOne<T> removeCascade()
cascade
element
ManyToOne
ManyToOne<T> name(String name)
name
attribute
name
- the value for the attribute name
ManyToOne
String getName()
name
attribute
name
ManyToOne<T> removeName()
name
attribute
ManyToOne
ManyToOne<T> targetEntity(String targetEntity)
target-entity
attribute
targetEntity
- the value for the attribute target-entity
ManyToOne
String getTargetEntity()
target-entity
attribute
target-entity
ManyToOne<T> removeTargetEntity()
target-entity
attribute
ManyToOne
ManyToOne<T> fetch(FetchType fetch)
fetch
attribute
fetch
- the value for the attribute fetch
ManyToOne
ManyToOne<T> fetch(String fetch)
fetch
attribute
fetch
- the value for the attribute fetch
ManyToOne
FetchType getFetch()
fetch
attribute
fetch
String getFetchAsString()
fetch
attribute
fetch
ManyToOne<T> removeFetch()
fetch
attribute
ManyToOne
ManyToOne<T> optional(Boolean optional)
optional
attribute
optional
- the value for the attribute optional
ManyToOne
Boolean isOptional()
optional
attribute
optional
ManyToOne<T> removeOptional()
optional
attribute
ManyToOne
|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |