Class JaxbDiscriminatorColumnImpl
java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbDiscriminatorColumnImpl
- All Implemented Interfaces:
Serializable, JaxbCheckable, JaxbColumn, JaxbColumnCommon, JaxbColumnDefinable, JaxbColumnMutable, JaxbColumnNullable, JaxbColumnSizable, JaxbColumnUniqueable, JaxbCommentable, JaxbDatabaseObject
public class JaxbDiscriminatorColumnImpl
extends Object
implements Serializable, JaxbColumnCommon, JaxbColumnSizable
@Target({TYPE}) @Retention(RUNTIME)
public @interface DiscriminatorColumn {
String name() default "DTYPE";
DiscriminatorType discriminatorType() default STRING;
String columnDefinition() default "";
String options() default "";
int length() default 31;
}
<p>Java class for discriminator-column complex type</p>.
<p>The following schema fragment specifies the expected content contained within this class.</p>
<pre>{@code
<complexType name="discriminator-column">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="discriminator-type" type="{http://www.hibernate.org/xsd/orm/mapping}discriminator-type" />
<attribute name="force-selection" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="options" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="length" type="{http://www.w3.org/2001/XMLSchema}int" />
</restriction>
</complexContent>
</complexType>
}</pre>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the columnDefinition property.Gets the value of the discriminatorType property.Gets the value of the length property.getName()Gets the value of the name property.Gets the value of the options property.booleanGets the value of the forceSelection property.voidsetColumnDefinition(String value) Sets the value of the columnDefinition property.voidSets the value of the discriminatorType property.voidsetForceSelection(Boolean value) Sets the value of the forceSelection property.voidSets the value of the length property.voidSets the value of the name property.voidsetOptions(String value) Sets the value of the options property.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JaxbColumnCommon
getCheckConstraints, getComment, getTable, isInsertable, isNullable, isUnique, isUpdatableMethods inherited from interface JaxbColumnSizable
getPrecision, getScale, getSecondPrecision
-
Field Details
-
name
-
discriminatorType
-
forceSelection
-
columnDefinition
-
options
-
length
-
-
Constructor Details
-
JaxbDiscriminatorColumnImpl
public JaxbDiscriminatorColumnImpl()
-
-
Method Details
-
getName
Gets the value of the name property.- Specified by:
getNamein interfaceJaxbColumn- Returns:
- possible object is
String
-
setName
-
getDiscriminatorType
Gets the value of the discriminatorType property.- Returns:
- possible object is
String
-
setDiscriminatorType
Sets the value of the discriminatorType property.- Parameters:
value- allowed object isString
-
isForceSelection
public boolean isForceSelection()Gets the value of the forceSelection property.- Returns:
- possible object is
Boolean
-
setForceSelection
-
getColumnDefinition
Gets the value of the columnDefinition property.- Specified by:
getColumnDefinitionin interfaceJaxbColumnDefinable- Returns:
- possible object is
String
-
setColumnDefinition
-
getOptions
Gets the value of the options property.- Specified by:
getOptionsin interfaceJaxbColumnDefinable- Returns:
- possible object is
String
-
setOptions
-
getLength
Gets the value of the length property.- Specified by:
getLengthin interfaceJaxbColumnSizable- Returns:
- possible object is
Integer
-
setLength
-