Package org.apache.openejb.jee.oejb2
Class DatabaseGeneratedType
- java.lang.Object
-
- org.apache.openejb.jee.oejb2.DatabaseGeneratedType
-
public class DatabaseGeneratedType extends 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
Fields Modifier and Type Field Description protected List<String>identityColumn
-
Constructor Summary
Constructors Constructor Description DatabaseGeneratedType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getIdentityColumn()Gets the value of the identityColumn property.
-
-
-
Method Detail
-
getIdentityColumn
public List<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 asetmethod 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 listString
-
-