Class JaxbAnyMappingImpl
java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbAnyMappingImpl
- All Implemented Interfaces:
Serializable
,JaxbAnyMapping
,JaxbCascadableAttribute
,JaxbLockableAttribute
,JaxbPersistentAttribute
,JaxbSingularAttribute
,JaxbStandardAttribute
public class JaxbAnyMappingImpl
extends Object
implements Serializable, JaxbAnyMapping, JaxbCascadableAttribute, JaxbLockableAttribute, JaxbSingularAttribute, JaxbStandardAttribute
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}any-discriminator"/>
<element name="key" type="{http://www.hibernate.org/xsd/orm/mapping}any-key"/>
<element name="cascade" type="{http://www.hibernate.org/xsd/orm/mapping}cascade-type" 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" />
<attribute name="fetch" type="{http://www.hibernate.org/xsd/orm/mapping}fetch-type" />
<attribute name="fetch-mode" type="{http://www.hibernate.org/xsd/orm/mapping}singular-fetch-mode" />
<attribute name="optional" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="optimistic-lock" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
</restriction>
</complexContent>
</complexType>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.boot.jaxb.mapping.spi.JaxbAnyMapping
JaxbAnyMapping.Discriminator, JaxbAnyMapping.Key
-
Field Summary
Modifier and TypeFieldDescriptionprotected AccessType
protected String
protected JaxbCascadeTypeImpl
protected JaxbAnyMappingDiscriminatorImpl
protected FetchType
protected JaxbSingularFetchModeImpl
protected JaxbAnyMappingKeyImpl
protected String
protected Boolean
protected Boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of the access property.Gets the value of the attributeAccessor property.Gets the value of the cascade property.Gets the value of the discriminator property.getFetch()
Gets the value of the fetch property.Gets the value of the fetchMode property.getKey()
Gets the value of the key property.getName()
Gets the value of the name property.boolean
Gets the value of the optimisticLock property.Gets the value of the optional 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
(JaxbCascadeTypeImpl value) Sets the value of the cascade property.void
Sets the value of the discriminator property.void
Sets the value of the fetch property.void
Sets the value of the fetchMode property.void
setKey
(JaxbAnyMappingKeyImpl value) Sets the value of the key property.void
Sets the value of the name property.void
setOptimisticLock
(Boolean value) Sets the value of the optimisticLock property.void
setOptional
(Boolean value) Sets the value of the optional property.
-
Field Details
-
discriminator
-
key
-
cascade
-
name
-
access
-
attributeAccessor
-
fetch
-
fetchMode
-
optional
-
optimisticLock
-
-
Constructor Details
-
JaxbAnyMappingImpl
public JaxbAnyMappingImpl()
-
-
Method Details
-
getDiscriminator
Gets the value of the discriminator property.- Specified by:
getDiscriminator
in interfaceJaxbAnyMapping
- Returns:
- possible object is
JaxbAnyMappingDiscriminatorImpl
-
setDiscriminator
Sets the value of the discriminator property.- Parameters:
value
- allowed object isJaxbAnyMappingDiscriminatorImpl
-
getKey
Gets the value of the key property.- Specified by:
getKey
in interfaceJaxbAnyMapping
- Returns:
- possible object is
JaxbAnyMappingKeyImpl
-
setKey
Sets the value of the key property.- Parameters:
value
- allowed object isJaxbAnyMappingKeyImpl
-
getCascade
Gets the value of the cascade property.- Specified by:
getCascade
in interfaceJaxbCascadableAttribute
- Returns:
- possible object is
JaxbCascadeTypeImpl
-
setCascade
Sets the value of the cascade property.- Specified by:
setCascade
in interfaceJaxbCascadableAttribute
- Parameters:
value
- allowed object isJaxbCascadeTypeImpl
-
getName
Gets the value of the name property.- Specified by:
getName
in interfaceJaxbPersistentAttribute
- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Specified by:
setName
in interfaceJaxbPersistentAttribute
- Parameters:
value
- allowed object isString
-
getAccess
Gets the value of the access property.- Specified by:
getAccess
in interfaceJaxbPersistentAttribute
- Returns:
- possible object is
String
-
setAccess
Sets the value of the access property.- Specified by:
setAccess
in interfaceJaxbPersistentAttribute
- Parameters:
value
- allowed object isString
-
getAttributeAccessor
Gets the value of the attributeAccessor property.- Specified by:
getAttributeAccessor
in interfaceJaxbPersistentAttribute
- Returns:
- possible object is
String
-
setAttributeAccessor
Sets the value of the attributeAccessor property.- Specified by:
setAttributeAccessor
in interfaceJaxbPersistentAttribute
- Parameters:
value
- allowed object isString
-
getFetch
Gets the value of the fetch property.- Specified by:
getFetch
in interfaceJaxbStandardAttribute
- Returns:
- possible object is
String
-
setFetch
Sets the value of the fetch property.- Specified by:
setFetch
in interfaceJaxbStandardAttribute
- Parameters:
value
- allowed object isString
-
getFetchMode
Gets the value of the fetchMode property.- Returns:
- possible object is
JaxbSingularFetchModeImpl
-
setFetchMode
Sets the value of the fetchMode property.- Parameters:
value
- allowed object isJaxbSingularFetchModeImpl
-
isOptional
Gets the value of the optional property.- Specified by:
isOptional
in interfaceJaxbStandardAttribute
- Returns:
- possible object is
Boolean
-
setOptional
Sets the value of the optional property.- Specified by:
setOptional
in interfaceJaxbStandardAttribute
- Parameters:
value
- allowed object isBoolean
-
isOptimisticLock
public boolean isOptimisticLock()Gets the value of the optimisticLock property.- Specified by:
isOptimisticLock
in interfaceJaxbLockableAttribute
- Returns:
- possible object is
Boolean
-
setOptimisticLock
Sets the value of the optimisticLock property.- Specified by:
setOptimisticLock
in interfaceJaxbLockableAttribute
- Parameters:
value
- allowed object isBoolean
-