Class JaxbAnyMappingDiscriminatorImpl
java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbAnyMappingDiscriminatorImpl
- All Implemented Interfaces:
Serializable
,JaxbAnyMapping.Discriminator
public class JaxbAnyMappingDiscriminatorImpl
extends Object
implements Serializable, JaxbAnyMapping.Discriminator
Describes the discriminator of a discriminated association (any, many-to-any),
including the mapping of discriminator values to matching entity name
Java class for any-discriminator complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="any-discriminator">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="type" type="{http://www.hibernate.org/xsd/orm/mapping}discriminator-type" minOccurs="0"/>
<element name="column" type="{http://www.hibernate.org/xsd/orm/mapping}column" minOccurs="0"/>
<element name="mapping" type="{http://www.hibernate.org/xsd/orm/mapping}any-discriminator-value-mapping" maxOccurs="unbounded"/>
</sequence>
</restriction>
</complexContent>
</complexType>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JaxbColumnImpl
protected DiscriminatorType
protected List<JaxbAnyDiscriminatorValueMappingImpl>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the column property.getType()
Gets the value of the type property.Gets the value of the valueMappings property.void
setColumn
(JaxbColumnImpl value) Sets the value of the column property.void
setType
(DiscriminatorType value) Sets the value of the type property.
-
Field Details
-
type
-
column
-
valueMappings
-
-
Constructor Details
-
JaxbAnyMappingDiscriminatorImpl
public JaxbAnyMappingDiscriminatorImpl()
-
-
Method Details
-
getType
Gets the value of the type property.- Returns:
- possible object is
String
-
setType
Sets the value of the type property.- Parameters:
value
- allowed object isString
-
getColumn
Gets the value of the column property.- Specified by:
getColumn
in interfaceJaxbAnyMapping.Discriminator
- Returns:
- possible object is
JaxbColumnImpl
-
setColumn
Sets the value of the column property.- Parameters:
value
- allowed object isJaxbColumnImpl
-
getValueMappings
Gets the value of the valueMappings 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 valueMappings property.For example, to add a new item, do as follows:
getValueMappings().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbAnyDiscriminatorValueMappingImpl
- Specified by:
getValueMappings
in interfaceJaxbAnyMapping.Discriminator
- Returns:
- The value of the valueMappings property.
-