Home » geronimo-eclipse-plugin-2.2-source-release » org.openejb.xml.ns.pkgen_2 » [javadoc | source]
public class: DatabaseGeneratedType [javadoc | source]
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">
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
        <element name="identity-column" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
Field Summary
protected  List<String> identityColumn     
Method from org.openejb.xml.ns.pkgen_2.DatabaseGeneratedType Summary:
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.openejb.xml.ns.pkgen_2.DatabaseGeneratedType Detail:
 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:


    Objects of the following type(s) are allowed in the list String