|
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 OneToOne<T>
This interface defines the contract for the one-to-one
xsd type
Method Summary | |
---|---|
JoinColumn<OneToOne<T>> |
createJoinColumn()
Creates a new join-column element |
PrimaryKeyJoinColumn<OneToOne<T>> |
createPrimaryKeyJoinColumn()
Creates a new primary-key-join-column element |
OneToOne<T> |
fetch(FetchType fetch)
Sets the fetch attribute |
OneToOne<T> |
fetch(String fetch)
Sets the fetch attribute |
List<JoinColumn<OneToOne<T>>> |
getAllJoinColumn()
Returns all join-column elements |
List<PrimaryKeyJoinColumn<OneToOne<T>>> |
getAllPrimaryKeyJoinColumn()
Returns all primary-key-join-column elements |
FetchType |
getFetch()
Returns the fetch attribute |
String |
getFetchAsString()
Returns the fetch attribute |
String |
getMappedBy()
Returns the mapped-by attribute |
String |
getName()
Returns the name attribute |
CascadeType<OneToOne<T>> |
getOrCreateCascade()
If not already created, a new cascade element with the given value will be created. |
JoinColumn<OneToOne<T>> |
getOrCreateJoinColumn()
If not already created, a new join-column element will be created and returned. |
JoinTable<OneToOne<T>> |
getOrCreateJoinTable()
If not already created, a new join-table element with the given value will be created. |
PrimaryKeyJoinColumn<OneToOne<T>> |
getOrCreatePrimaryKeyJoinColumn()
If not already created, a new primary-key-join-column element will be created and returned. |
String |
getTargetEntity()
Returns the target-entity attribute |
Boolean |
isOptional()
Returns the optional attribute |
OneToOne<T> |
mappedBy(String mappedBy)
Sets the mapped-by attribute |
OneToOne<T> |
name(String name)
Sets the name attribute |
OneToOne<T> |
optional(Boolean optional)
Sets the optional attribute |
OneToOne<T> |
removeAllJoinColumn()
Removes all join-column elements |
OneToOne<T> |
removeAllPrimaryKeyJoinColumn()
Removes all primary-key-join-column elements |
OneToOne<T> |
removeCascade()
Removes the cascade element |
OneToOne<T> |
removeFetch()
Removes the fetch attribute |
OneToOne<T> |
removeJoinTable()
Removes the join-table element |
OneToOne<T> |
removeMappedBy()
Removes the mapped-by attribute |
OneToOne<T> |
removeName()
Removes the name attribute |
OneToOne<T> |
removeOptional()
Removes the optional attribute |
OneToOne<T> |
removeTargetEntity()
Removes the target-entity attribute |
OneToOne<T> |
targetEntity(String targetEntity)
Sets the target-entity attribute |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child |
---|
up |
Method Detail |
---|
PrimaryKeyJoinColumn<OneToOne<T>> getOrCreatePrimaryKeyJoinColumn()
primary-key-join-column
element will be created and returned.
Otherwise, the first existing primary-key-join-column
element will be returned.
primary-key-join-column
PrimaryKeyJoinColumn<OneToOne<T>> createPrimaryKeyJoinColumn()
primary-key-join-column
element
PrimaryKeyJoinColumn>
List<PrimaryKeyJoinColumn<OneToOne<T>>> getAllPrimaryKeyJoinColumn()
primary-key-join-column
elements
primary-key-join-column
OneToOne<T> removeAllPrimaryKeyJoinColumn()
primary-key-join-column
elements
PrimaryKeyJoinColumn>
JoinColumn<OneToOne<T>> getOrCreateJoinColumn()
join-column
element will be created and returned.
Otherwise, the first existing join-column
element will be returned.
join-column
JoinColumn<OneToOne<T>> createJoinColumn()
join-column
element
JoinColumn>
List<JoinColumn<OneToOne<T>>> getAllJoinColumn()
join-column
elements
join-column
OneToOne<T> removeAllJoinColumn()
join-column
elements
JoinColumn>
JoinTable<OneToOne<T>> getOrCreateJoinTable()
join-table
element with the given value will be created.
Otherwise, the existing join-table
element will be returned.
JoinTable>
OneToOne<T> removeJoinTable()
join-table
element
OneToOne
CascadeType<OneToOne<T>> getOrCreateCascade()
cascade
element with the given value will be created.
Otherwise, the existing cascade
element will be returned.
CascadeType>
OneToOne<T> removeCascade()
cascade
element
OneToOne
OneToOne<T> name(String name)
name
attribute
name
- the value for the attribute name
OneToOne
String getName()
name
attribute
name
OneToOne<T> removeName()
name
attribute
OneToOne
OneToOne<T> targetEntity(String targetEntity)
target-entity
attribute
targetEntity
- the value for the attribute target-entity
OneToOne
String getTargetEntity()
target-entity
attribute
target-entity
OneToOne<T> removeTargetEntity()
target-entity
attribute
OneToOne
OneToOne<T> fetch(FetchType fetch)
fetch
attribute
fetch
- the value for the attribute fetch
OneToOne
OneToOne<T> fetch(String fetch)
fetch
attribute
fetch
- the value for the attribute fetch
OneToOne
FetchType getFetch()
fetch
attribute
fetch
String getFetchAsString()
fetch
attribute
fetch
OneToOne<T> removeFetch()
fetch
attribute
OneToOne
OneToOne<T> optional(Boolean optional)
optional
attribute
optional
- the value for the attribute optional
OneToOne
Boolean isOptional()
optional
attribute
optional
OneToOne<T> removeOptional()
optional
attribute
OneToOne
OneToOne<T> mappedBy(String mappedBy)
mapped-by
attribute
mappedBy
- the value for the attribute mapped-by
OneToOne
String getMappedBy()
mapped-by
attribute
mapped-by
OneToOne<T> removeMappedBy()
mapped-by
attribute
OneToOne
|
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 |