|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openejb.jee.oejb2.AutoIncrementTableType
public class AutoIncrementTableType
Handles the case where an arbitrary SQL statement is executed, and the JDBC driver returns a new automatically generated ID. This should not be used when the destination table itself generates the ID (see database-generatedType), but it could be used for a web session ID or something where there is no naturally matching database table (but you could create one with an AUTO_INCREMENT key, specify an insert statement here, and then capture the newly returned ID and use it as your web session ID).
Java class for auto-increment-tableType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="auto-increment-tableType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="sql" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="return-type" type="{http://www.w3.org/2001/XMLSchema}string"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Field Summary | |
|---|---|
protected String |
returnType
|
protected String |
sql
|
| Constructor Summary | |
|---|---|
AutoIncrementTableType()
|
|
| Method Summary | |
|---|---|
String |
getReturnType()
Gets the value of the returnType property. |
String |
getSql()
Gets the value of the sql property. |
void |
setReturnType(String value)
Sets the value of the returnType property. |
void |
setSql(String value)
Sets the value of the sql property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String sql
protected String returnType
| Constructor Detail |
|---|
public AutoIncrementTableType()
| Method Detail |
|---|
public String getSql()
Stringpublic void setSql(String value)
value - allowed object is
Stringpublic String getReturnType()
Stringpublic void setReturnType(String value)
value - allowed object is
String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||