Class JaxbHbmKeyType
java.lang.Object
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmKeyType
- All Implemented Interfaces:
Serializable
Declares the column name of a foreign key.
<p>Java class for key-type complex type</p>.
<p>The following schema fragment specifies the expected content contained within this class.</p>
<pre>{@code
<complexType name="key-type">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="column" type="{http://www.hibernate.org/xsd/orm/hbm}ColumnType" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="column" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="foreign-key" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="not-null" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="on-delete" type="{http://www.hibernate.org/xsd/orm/hbm}OnDeleteEnum" default="noaction" />
<attribute name="property-ref" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="update" type="{http://www.w3.org/2001/XMLSchema}boolean" />
</restriction>
</complexContent>
</complexType>
}</pre>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<JaxbHbmColumnType> protected Stringprotected Stringprotected Booleanprotected JaxbHbmOnDeleteEnumprotected Stringprotected Booleanprotected Boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the column property.Gets the value of the columnAttribute property.Gets the value of the foreignKey property.Gets the value of the onDelete property.Gets the value of the propertyRef property.Gets the value of the notNull property.isUnique()Gets the value of the unique property.isUpdate()Gets the value of the update property.voidsetColumnAttribute(String value) Sets the value of the columnAttribute property.voidsetForeignKey(String value) Sets the value of the foreignKey property.voidsetNotNull(Boolean value) Sets the value of the notNull property.voidsetOnDelete(JaxbHbmOnDeleteEnum value) Sets the value of the onDelete property.voidsetPropertyRef(String value) Sets the value of the propertyRef property.voidSets the value of the unique property.voidSets the value of the update property.
-
Field Details
-
column
-
columnAttribute
-
foreignKey
-
notNull
-
onDelete
-
propertyRef
-
unique
-
update
-
-
Constructor Details
-
JaxbHbmKeyType
public JaxbHbmKeyType()
-
-
Method Details
-
getColumn
Gets the value of the column property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the column property.For example, to add a new item, do as follows:
getColumn().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbHbmColumnType- Returns:
- The value of the column property.
-
getColumnAttribute
-
setColumnAttribute
-
getForeignKey
-
setForeignKey
-
isNotNull
-
setNotNull
-
getOnDelete
Gets the value of the onDelete property.- Returns:
- possible object is
JaxbHbmOnDeleteEnum
-
setOnDelete
Sets the value of the onDelete property.- Parameters:
value- allowed object isJaxbHbmOnDeleteEnum
-
getPropertyRef
-
setPropertyRef
-
isUnique
-
setUnique
-
isUpdate
-
setUpdate
-