public class TableGenerator extends Object
@Target({TYPE, METHOD, FIELD}) @Retention(RUNTIME) public @interface TableGenerator { String name(); String table() default ""; String catalog() default ""; String schema() default ""; String pkColumnName() default ""; String valueColumnName() default ""; String pkColumnValue() default ""; int initialValue() default 0; int allocationSize() default 50; UniqueConstraint[] uniqueConstraints() default {}; Indexes[] indexes() default {}; }
<p>Java class for table-generator complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <complexType name="table-generator"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="unique-constraint" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}unique-constraint" maxOccurs="unbounded" minOccurs="0"/> <element name="index" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}index" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="table" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="catalog" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="schema" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="pk-column-name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="value-column-name" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="pk-column-value" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="initial-value" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="allocation-size" type="{http://www.w3.org/2001/XMLSchema}int" /> </restriction> </complexContent> </complexType> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
allocationSize |
protected String |
catalog |
protected String |
description |
protected List<Index> |
index |
protected Integer |
initialValue |
protected String |
name |
protected String |
pkColumnName |
protected String |
pkColumnValue |
protected String |
schema |
protected String |
table |
protected List<UniqueConstraint> |
uniqueConstraint |
protected String |
valueColumnName |
| Constructor and Description |
|---|
TableGenerator() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getAllocationSize()
Gets the value of the allocationSize property.
|
String |
getCatalog()
Gets the value of the catalog property.
|
String |
getDescription()
Gets the value of the description property.
|
List<Index> |
getIndex()
Gets the value of the index property.
|
Integer |
getInitialValue()
Gets the value of the initialValue property.
|
String |
getName()
Gets the value of the name property.
|
String |
getPkColumnName()
Gets the value of the pkColumnName property.
|
String |
getPkColumnValue()
Gets the value of the pkColumnValue property.
|
String |
getSchema()
Gets the value of the schema property.
|
String |
getTable()
Gets the value of the table property.
|
List<UniqueConstraint> |
getUniqueConstraint()
Gets the value of the uniqueConstraint property.
|
String |
getValueColumnName()
Gets the value of the valueColumnName property.
|
void |
setAllocationSize(Integer value)
Sets the value of the allocationSize property.
|
void |
setCatalog(String value)
Sets the value of the catalog property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setInitialValue(Integer value)
Sets the value of the initialValue property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setPkColumnName(String value)
Sets the value of the pkColumnName property.
|
void |
setPkColumnValue(String value)
Sets the value of the pkColumnValue property.
|
void |
setSchema(String value)
Sets the value of the schema property.
|
void |
setTable(String value)
Sets the value of the table property.
|
void |
setValueColumnName(String value)
Sets the value of the valueColumnName property.
|
protected String description
protected List<UniqueConstraint> uniqueConstraint
protected String name
protected String table
protected String catalog
protected String schema
protected String pkColumnName
protected String valueColumnName
protected String pkColumnValue
protected Integer initialValue
protected Integer allocationSize
public String getDescription()
Gets the value of the description property.
Stringpublic void setDescription(String value)
Sets the value of the description property.
value - allowed object is
Stringpublic List<UniqueConstraint> getUniqueConstraint()
Gets the value of the uniqueConstraint property.
<p> 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 <CODE>set</CODE> method for the uniqueConstraint property.
<p> For example, to add a new item, do as follows: <pre> getUniqueConstraint().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
UniqueConstraint
public List<Index> getIndex()
Gets the value of the index property.
<p> 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 <CODE>set</CODE> method for the index property.
<p> For example, to add a new item, do as follows: <pre> getIndex().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
Index
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 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 String getCatalog()
Gets the value of the catalog property.
Stringpublic void setCatalog(String value)
Sets the value of the catalog property.
value - allowed object is
Stringpublic String getSchema()
Gets the value of the schema property.
Stringpublic void setSchema(String value)
Sets the value of the schema property.
value - allowed object is
Stringpublic String getPkColumnName()
Gets the value of the pkColumnName property.
Stringpublic void setPkColumnName(String value)
Sets the value of the pkColumnName property.
value - allowed object is
Stringpublic String getValueColumnName()
Gets the value of the valueColumnName property.
Stringpublic void setValueColumnName(String value)
Sets the value of the valueColumnName property.
value - allowed object is
Stringpublic String getPkColumnValue()
Gets the value of the pkColumnValue property.
Stringpublic void setPkColumnValue(String value)
Sets the value of the pkColumnValue property.
value - allowed object is
Stringpublic Integer getInitialValue()
Gets the value of the initialValue property.
Integerpublic void setInitialValue(Integer value)
Sets the value of the initialValue property.
value - allowed object is
Integerpublic Integer getAllocationSize()
Gets the value of the allocationSize property.
IntegerCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.