public class DiscriminatorColumn extends Object
@Target({TYPE}) @Retention(RUNTIME) public @interface DiscriminatorColumn { String name() default "DTYPE"; DiscriminatorType discriminatorType() default STRING; String columnDefinition() default ""; int length() default 31; }
<p>Java class for discriminator-column complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <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://xmlns.jcp.org/xml/ns/persistence/orm}discriminator-type" /> <attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}int" /> </restriction> </complexContent> </complexType> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected String |
columnDefinition |
protected DiscriminatorType |
discriminatorType |
protected Integer |
length |
protected String |
name |
| Constructor and Description |
|---|
DiscriminatorColumn() |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnDefinition()
Gets the value of the columnDefinition property.
|
DiscriminatorType |
getDiscriminatorType()
Gets the value of the discriminatorType property.
|
Integer |
getLength()
Gets the value of the length property.
|
String |
getName()
Gets the value of the name property.
|
void |
setColumnDefinition(String value)
Sets the value of the columnDefinition property.
|
void |
setDiscriminatorType(DiscriminatorType value)
Sets the value of the discriminatorType property.
|
void |
setLength(Integer value)
Sets the value of the length property.
|
void |
setName(String value)
Sets the value of the name property.
|
protected String name
protected DiscriminatorType discriminatorType
protected String columnDefinition
protected Integer length
public String getName()
Gets the value of the name property.
Stringpublic void setName(String value)
Sets the value of the name property.
value - allowed object is
Stringpublic DiscriminatorType getDiscriminatorType()
Gets the value of the discriminatorType property.
DiscriminatorTypepublic void setDiscriminatorType(DiscriminatorType value)
Sets the value of the discriminatorType property.
value - allowed object is
DiscriminatorTypepublic String getColumnDefinition()
Gets the value of the columnDefinition property.
Stringpublic void setColumnDefinition(String value)
Sets the value of the columnDefinition property.
value - allowed object is
Stringpublic Integer getLength()
Gets the value of the length property.
IntegerCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.