org.apache.openejb.jee.oejb2
Class DatabaseGeneratedType

java.lang.Object
  extended by 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
protected  List<String> identityColumn
           
 
Constructor Summary
DatabaseGeneratedType()
           
 
Method Summary
 List<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
 

Field Detail

identityColumn

protected List<String> identityColumn
Constructor Detail

DatabaseGeneratedType

public DatabaseGeneratedType()
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 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-2013 The Apache OpenEJB development community. All Rights Reserved.