|
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 Id<T>
This interface defines the contract for the id
xsd type
Method Summary | |
---|---|
String |
getName()
Returns the name attribute |
Column<Id<T>> |
getOrCreateColumn()
If not already created, a new column element with the given value will be created. |
GeneratedValue<Id<T>> |
getOrCreateGeneratedValue()
If not already created, a new generated-value element with the given value will be created. |
SequenceGenerator<Id<T>> |
getOrCreateSequenceGenerator()
If not already created, a new sequence-generator element with the given value will be created. |
TableGenerator<Id<T>> |
getOrCreateTableGenerator()
If not already created, a new table-generator element with the given value will be created. |
TemporalType |
getTemporal()
Returns the temporal element |
String |
getTemporalAsString()
Returns the temporal element |
Id<T> |
name(String name)
Sets the name attribute |
Id<T> |
removeColumn()
Removes the column element |
Id<T> |
removeGeneratedValue()
Removes the generated-value element |
Id<T> |
removeName()
Removes the name attribute |
Id<T> |
removeSequenceGenerator()
Removes the sequence-generator element |
Id<T> |
removeTableGenerator()
Removes the table-generator element |
Id<T> |
removeTemporal()
Removes the temporal attribute |
Id<T> |
temporal(String temporal)
Sets the temporal element |
Id<T> |
temporal(TemporalType temporal)
Sets the temporal element |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child |
---|
up |
Method Detail |
---|
Column<Id<T>> getOrCreateColumn()
column
element with the given value will be created.
Otherwise, the existing column
element will be returned.
Column>
Id<T> removeColumn()
column
element
Id
GeneratedValue<Id<T>> getOrCreateGeneratedValue()
generated-value
element with the given value will be created.
Otherwise, the existing generated-value
element will be returned.
GeneratedValue>
Id<T> removeGeneratedValue()
generated-value
element
Id
Id<T> temporal(TemporalType temporal)
temporal
element
temporal
- the value for the element temporal
Id
Id<T> temporal(String temporal)
temporal
element
temporal
- the value for the element temporal
Id
TemporalType getTemporal()
temporal
element
temporal
String getTemporalAsString()
temporal
element
temporal
Id<T> removeTemporal()
temporal
attribute
Id
TableGenerator<Id<T>> getOrCreateTableGenerator()
table-generator
element with the given value will be created.
Otherwise, the existing table-generator
element will be returned.
TableGenerator>
Id<T> removeTableGenerator()
table-generator
element
Id
SequenceGenerator<Id<T>> getOrCreateSequenceGenerator()
sequence-generator
element with the given value will be created.
Otherwise, the existing sequence-generator
element will be returned.
SequenceGenerator>
Id<T> removeSequenceGenerator()
sequence-generator
element
Id
Id<T> name(String name)
name
attribute
name
- the value for the attribute name
Id
String getName()
name
attribute
name
Id<T> removeName()
name
attribute
Id
|
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 |