public class Id extends java.lang.Object implements Field
Java class for id complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="id"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="column" type="{http://java.sun.com/xml/ns/persistence/orm}column" minOccurs="0"/> <element name="generated-value" type="{http://java.sun.com/xml/ns/persistence/orm}generated-value" minOccurs="0"/> <element name="temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/> <element name="table-generator" type="{http://java.sun.com/xml/ns/persistence/orm}table-generator" minOccurs="0"/> <element name="sequence-generator" type="{http://java.sun.com/xml/ns/persistence/orm}sequence-generator" minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" /> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected AccessType |
access |
protected Column |
column |
protected GeneratedValue |
generatedValue |
protected java.lang.String |
name |
protected SequenceGenerator |
sequenceGenerator |
protected TableGenerator |
tableGenerator |
protected TemporalType |
temporal |
Constructor and Description |
---|
Id() |
Id(java.lang.String name) |
Id(java.lang.String name,
java.lang.String columnName) |
Modifier and Type | Method and Description |
---|---|
AccessType |
getAccess()
Gets the value of the access property.
|
Column |
getColumn()
Gets the value of the column property.
|
GeneratedValue |
getGeneratedValue()
Gets the value of the generatedValue property.
|
java.lang.Object |
getKey()
Gets the immutable key for this object.
|
java.lang.String |
getName()
Gets the value of the name property.
|
SequenceGenerator |
getSequenceGenerator()
Gets the value of the sequenceGenerator property.
|
TableGenerator |
getTableGenerator()
Gets the value of the tableGenerator property.
|
TemporalType |
getTemporal()
Gets the value of the temporal property.
|
void |
setAccess(AccessType value)
Sets the value of the access property.
|
void |
setColumn(Column value)
Sets the value of the column property.
|
void |
setGeneratedValue(GeneratedValue value)
Sets the value of the generatedValue property.
|
void |
setName(java.lang.String value)
Sets the value of the name property.
|
void |
setSequenceGenerator(SequenceGenerator value)
Sets the value of the sequenceGenerator property.
|
void |
setTableGenerator(TableGenerator value)
Sets the value of the tableGenerator property.
|
void |
setTemporal(TemporalType value)
Sets the value of the temporal property.
|
protected Column column
protected GeneratedValue generatedValue
protected TemporalType temporal
protected TableGenerator tableGenerator
protected SequenceGenerator sequenceGenerator
protected java.lang.String name
protected AccessType access
public Id()
public Id(java.lang.String name)
public Id(java.lang.String name, java.lang.String columnName)
public Column getColumn()
public void setColumn(Column value)
public GeneratedValue getGeneratedValue()
GeneratedValue
public void setGeneratedValue(GeneratedValue value)
value
- allowed object is
GeneratedValue
public TemporalType getTemporal()
TemporalType
public void setTemporal(TemporalType value)
value
- allowed object is
TemporalType
public TableGenerator getTableGenerator()
TableGenerator
public void setTableGenerator(TableGenerator value)
value
- allowed object is
TableGenerator
public SequenceGenerator getSequenceGenerator()
SequenceGenerator
public void setSequenceGenerator(SequenceGenerator value)
value
- allowed object is
SequenceGenerator
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.Object getKey()
Keyable
public AccessType getAccess()
AccessType
public void setAccess(AccessType value)
value
- allowed object is
AccessType