Package org.hibernate.boot.jaxb.mapping
Class JaxbHbmAnyMapping
- java.lang.Object
-
- org.hibernate.boot.jaxb.mapping.JaxbHbmAnyMapping
-
- All Implemented Interfaces:
Serializable
,DiscriminatedAssociation
,PersistentAttribute
public class JaxbHbmAnyMapping extends Object implements Serializable, DiscriminatedAssociation
See `@org.hibernate.annotations.Any`Java class for hbm-any-mapping complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="hbm-any-mapping"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="discriminator" type="{http://www.hibernate.org/xsd/orm/mapping}hbm-any-discriminator"/> <element name="key" type="{http://www.hibernate.org/xsd/orm/mapping}hbm-any-key"/> <element name="cascade" type="{http://www.hibernate.org/xsd/orm/mapping}cascade-type" minOccurs="0"/> <element name="optimistic-lock" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="access" type="{http://www.hibernate.org/xsd/orm/mapping}access-type" /> <attribute name="attribute-accessor" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.boot.jaxb.mapping.DiscriminatedAssociation
DiscriminatedAssociation.Discriminator, DiscriminatedAssociation.Key
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessType
access
protected String
attributeAccessor
protected JaxbCascadeType
cascade
protected JaxbHbmAnyDiscriminator
discriminator
protected JaxbHbmAnyKey
key
protected String
name
protected Boolean
optimisticLock
-
Constructor Summary
Constructors Constructor Description JaxbHbmAnyMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessType
getAccess()
Gets the value of the access property.String
getAttributeAccessor()
Gets the value of the attributeAccessor property.JaxbCascadeType
getCascade()
Gets the value of the cascade property.JaxbHbmAnyDiscriminator
getDiscriminator()
Gets the value of the discriminator property.JaxbHbmAnyKey
getKey()
Gets the value of the key property.String
getName()
Gets the value of the name property.Boolean
isOptimisticLock()
Gets the value of the optimisticLock property.void
setAccess(AccessType value)
Sets the value of the access property.void
setAttributeAccessor(String value)
Sets the value of the attributeAccessor property.void
setCascade(JaxbCascadeType value)
Sets the value of the cascade property.void
setDiscriminator(JaxbHbmAnyDiscriminator value)
Sets the value of the discriminator property.void
setKey(JaxbHbmAnyKey value)
Sets the value of the key property.void
setName(String value)
Sets the value of the name property.void
setOptimisticLock(Boolean value)
Sets the value of the optimisticLock property.
-
-
-
Field Detail
-
discriminator
protected JaxbHbmAnyDiscriminator discriminator
-
key
protected JaxbHbmAnyKey key
-
cascade
protected JaxbCascadeType cascade
-
optimisticLock
protected Boolean optimisticLock
-
name
protected String name
-
access
protected AccessType access
-
attributeAccessor
protected String attributeAccessor
-
-
Method Detail
-
getDiscriminator
public JaxbHbmAnyDiscriminator getDiscriminator()
Gets the value of the discriminator property.- Specified by:
getDiscriminator
in interfaceDiscriminatedAssociation
- Returns:
- possible object is
JaxbHbmAnyDiscriminator
-
setDiscriminator
public void setDiscriminator(JaxbHbmAnyDiscriminator value)
Sets the value of the discriminator property.- Parameters:
value
- allowed object isJaxbHbmAnyDiscriminator
-
getKey
public JaxbHbmAnyKey getKey()
Gets the value of the key property.- Specified by:
getKey
in interfaceDiscriminatedAssociation
- Returns:
- possible object is
JaxbHbmAnyKey
-
setKey
public void setKey(JaxbHbmAnyKey value)
Sets the value of the key property.- Parameters:
value
- allowed object isJaxbHbmAnyKey
-
getCascade
public JaxbCascadeType getCascade()
Gets the value of the cascade property.- Returns:
- possible object is
JaxbCascadeType
-
setCascade
public void setCascade(JaxbCascadeType value)
Sets the value of the cascade property.- Parameters:
value
- allowed object isJaxbCascadeType
-
isOptimisticLock
public Boolean isOptimisticLock()
Gets the value of the optimisticLock property.- Returns:
- possible object is
Boolean
-
setOptimisticLock
public void setOptimisticLock(Boolean value)
Sets the value of the optimisticLock property.- Parameters:
value
- allowed object isBoolean
-
getName
public String getName()
Gets the value of the name property.- Specified by:
getName
in interfacePersistentAttribute
- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Specified by:
setName
in interfacePersistentAttribute
- Parameters:
value
- allowed object isString
-
getAccess
public AccessType getAccess()
Gets the value of the access property.- Specified by:
getAccess
in interfacePersistentAttribute
- Returns:
- possible object is
String
-
setAccess
public void setAccess(AccessType value)
Sets the value of the access property.- Specified by:
setAccess
in interfacePersistentAttribute
- Parameters:
value
- allowed object isString
-
getAttributeAccessor
public String getAttributeAccessor()
Gets the value of the attributeAccessor property.- Specified by:
getAttributeAccessor
in interfacePersistentAttribute
- Returns:
- possible object is
String
-
setAttributeAccessor
public void setAttributeAccessor(String value)
Sets the value of the attributeAccessor property.- Specified by:
setAttributeAccessor
in interfacePersistentAttribute
- Parameters:
value
- allowed object isString
-
-