public class MapKeyColumn extends Object
@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface MapKeyColumn { String name() default ""; boolean unique() default false; boolean nullable() default false; boolean insertable() default true; boolean updatable() default true; String columnDefinition() default ""; String table() default ""; int length() default 255; int precision() default 0; // decimal precision int scale() default 0; // decimal scale }
<p>Java class for map-key-column complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <complexType name="map-key-column"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="insertable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="updatable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="table" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="precision" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}int" /> </restriction> </complexContent> </complexType> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected String |
columnDefinition |
protected Boolean |
insertable |
protected Integer |
length |
protected String |
name |
protected Boolean |
nullable |
protected Integer |
precision |
protected Integer |
scale |
protected String |
table |
protected Boolean |
unique |
protected Boolean |
updatable |
| Constructor and Description |
|---|
MapKeyColumn() |
| Modifier and Type | Method and Description |
|---|---|
String |
getColumnDefinition()
Gets the value of the columnDefinition property.
|
Integer |
getLength()
Gets the value of the length property.
|
String |
getName()
Gets the value of the name property.
|
Integer |
getPrecision()
Gets the value of the precision property.
|
Integer |
getScale()
Gets the value of the scale property.
|
String |
getTable()
Gets the value of the table property.
|
Boolean |
isInsertable()
Gets the value of the insertable property.
|
Boolean |
isNullable()
Gets the value of the nullable property.
|
Boolean |
isUnique()
Gets the value of the unique property.
|
Boolean |
isUpdatable()
Gets the value of the updatable property.
|
void |
setColumnDefinition(String value)
Sets the value of the columnDefinition property.
|
void |
setInsertable(Boolean value)
Sets the value of the insertable property.
|
void |
setLength(Integer value)
Sets the value of the length property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setNullable(Boolean value)
Sets the value of the nullable property.
|
void |
setPrecision(Integer value)
Sets the value of the precision property.
|
void |
setScale(Integer value)
Sets the value of the scale property.
|
void |
setTable(String value)
Sets the value of the table property.
|
void |
setUnique(Boolean value)
Sets the value of the unique property.
|
void |
setUpdatable(Boolean value)
Sets the value of the updatable property.
|
protected String name
protected Boolean unique
protected Boolean nullable
protected Boolean insertable
protected Boolean updatable
protected String columnDefinition
protected String table
protected Integer length
protected Integer precision
protected Integer scale
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 Boolean isUnique()
Gets the value of the unique property.
Booleanpublic void setUnique(Boolean value)
Sets the value of the unique property.
value - allowed object is
Booleanpublic Boolean isNullable()
Gets the value of the nullable property.
Booleanpublic void setNullable(Boolean value)
Sets the value of the nullable property.
value - allowed object is
Booleanpublic Boolean isInsertable()
Gets the value of the insertable property.
Booleanpublic void setInsertable(Boolean value)
Sets the value of the insertable property.
value - allowed object is
Booleanpublic Boolean isUpdatable()
Gets the value of the updatable property.
Booleanpublic void setUpdatable(Boolean value)
Sets the value of the updatable property.
value - allowed object is
Booleanpublic 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 String getTable()
Gets the value of the table property.
Stringpublic void setTable(String value)
Sets the value of the table property.
value - allowed object is
Stringpublic Integer getLength()
Gets the value of the length property.
Integerpublic void setLength(Integer value)
Sets the value of the length property.
value - allowed object is
Integerpublic Integer getPrecision()
Gets the value of the precision property.
Integerpublic void setPrecision(Integer value)
Sets the value of the precision property.
value - allowed object is
Integerpublic Integer getScale()
Gets the value of the scale property.
IntegerCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.