Package org.hibernate.boot.jaxb.hbm.spi
Class JaxbHbmKeyType
- java.lang.Object
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmKeyType
-
- All Implemented Interfaces:
java.io.Serializable
public class JaxbHbmKeyType extends java.lang.Object implements java.io.Serializable
Declares the column name of a foreign key.Java class for key-type complex type.
The following schema fragment specifies the expected content contained within this class.
<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>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<JaxbHbmColumnType>
column
protected java.lang.String
columnAttribute
protected java.lang.String
foreignKey
protected java.lang.Boolean
notNull
protected JaxbHbmOnDeleteEnum
onDelete
protected java.lang.String
propertyRef
protected java.lang.Boolean
unique
protected java.lang.Boolean
update
-
Constructor Summary
Constructors Constructor Description JaxbHbmKeyType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<JaxbHbmColumnType>
getColumn()
Gets the value of the column property.java.lang.String
getColumnAttribute()
Gets the value of the columnAttribute property.java.lang.String
getForeignKey()
Gets the value of the foreignKey property.JaxbHbmOnDeleteEnum
getOnDelete()
Gets the value of the onDelete property.java.lang.String
getPropertyRef()
Gets the value of the propertyRef property.java.lang.Boolean
isNotNull()
Gets the value of the notNull property.java.lang.Boolean
isUnique()
Gets the value of the unique property.java.lang.Boolean
isUpdate()
Gets the value of the update property.void
setColumnAttribute(java.lang.String value)
Sets the value of the columnAttribute property.void
setForeignKey(java.lang.String value)
Sets the value of the foreignKey property.void
setNotNull(java.lang.Boolean value)
Sets the value of the notNull property.void
setOnDelete(JaxbHbmOnDeleteEnum value)
Sets the value of the onDelete property.void
setPropertyRef(java.lang.String value)
Sets the value of the propertyRef property.void
setUnique(java.lang.Boolean value)
Sets the value of the unique property.void
setUpdate(java.lang.Boolean value)
Sets the value of the update property.
-
-
-
Field Detail
-
column
protected java.util.List<JaxbHbmColumnType> column
-
columnAttribute
protected java.lang.String columnAttribute
-
foreignKey
protected java.lang.String foreignKey
-
notNull
protected java.lang.Boolean notNull
-
onDelete
protected JaxbHbmOnDeleteEnum onDelete
-
propertyRef
protected java.lang.String propertyRef
-
unique
protected java.lang.Boolean unique
-
update
protected java.lang.Boolean update
-
-
Method Detail
-
getColumn
public java.util.List<JaxbHbmColumnType> 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 JAXB object. This is why there is not a
set
method 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
-
getColumnAttribute
public java.lang.String getColumnAttribute()
Gets the value of the columnAttribute property.- Returns:
- possible object is
String
-
setColumnAttribute
public void setColumnAttribute(java.lang.String value)
Sets the value of the columnAttribute property.- Parameters:
value
- allowed object isString
-
getForeignKey
public java.lang.String getForeignKey()
Gets the value of the foreignKey property.- Returns:
- possible object is
String
-
setForeignKey
public void setForeignKey(java.lang.String value)
Sets the value of the foreignKey property.- Parameters:
value
- allowed object isString
-
isNotNull
public java.lang.Boolean isNotNull()
Gets the value of the notNull property.- Returns:
- possible object is
Boolean
-
setNotNull
public void setNotNull(java.lang.Boolean value)
Sets the value of the notNull property.- Parameters:
value
- allowed object isBoolean
-
getOnDelete
public JaxbHbmOnDeleteEnum getOnDelete()
Gets the value of the onDelete property.- Returns:
- possible object is
JaxbHbmOnDeleteEnum
-
setOnDelete
public void setOnDelete(JaxbHbmOnDeleteEnum value)
Sets the value of the onDelete property.- Parameters:
value
- allowed object isJaxbHbmOnDeleteEnum
-
getPropertyRef
public java.lang.String getPropertyRef()
Gets the value of the propertyRef property.- Returns:
- possible object is
String
-
setPropertyRef
public void setPropertyRef(java.lang.String value)
Sets the value of the propertyRef property.- Parameters:
value
- allowed object isString
-
isUnique
public java.lang.Boolean isUnique()
Gets the value of the unique property.- Returns:
- possible object is
Boolean
-
setUnique
public void setUnique(java.lang.Boolean value)
Sets the value of the unique property.- Parameters:
value
- allowed object isBoolean
-
isUpdate
public java.lang.Boolean isUpdate()
Gets the value of the update property.- Returns:
- possible object is
Boolean
-
setUpdate
public void setUpdate(java.lang.Boolean value)
Sets the value of the update property.- Parameters:
value
- allowed object isBoolean
-
-