org.apache.openejb.jee.oejb2
Class DatabaseGeneratedType
java.lang.Object
org.apache.openejb.jee.oejb2.DatabaseGeneratedType
public class DatabaseGeneratedType
- extends java.lang.Object
Indicates that the database automatically populates a primary key
ID in the listed column(s). Typically this is used for columns
with an AUTO_INCREMENT flag or the equivalent. This only makes
sense if this key generator is used for an EJB or something else
with a corresponding database table (not if it's meant to generate
unique web session IDs or something like that -- see
auto-increment-tableType for that case).
Java class for database-generatedType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="database-generatedType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="identity-column" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
</sequence>
</restriction>
</complexContent>
</complexType>
Field Summary |
protected java.util.List<java.lang.String> |
identityColumn
|
Method Summary |
java.util.List<java.lang.String> |
getIdentityColumn()
Gets the value of the identityColumn property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
identityColumn
protected java.util.List<java.lang.String> identityColumn
DatabaseGeneratedType
public DatabaseGeneratedType()
getIdentityColumn
public java.util.List<java.lang.String> getIdentityColumn()
- Gets the value of the identityColumn 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 identityColumn property.
For example, to add a new item, do as follows:
getIdentityColumn().add(newItem);
Objects of the following type(s) are allowed in the list
String
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.