Package org.apache.openejb.jee.oejb2
Class CustomGeneratorType
- java.lang.Object
-
- org.apache.openejb.jee.oejb2.CustomGeneratorType
-
public class CustomGeneratorType extends Object
Handles a user-provided generator. You deploy any old generator as a GBean, and then point to that GBean here. The generator should implement org.tranql.pkgenerator.PrimaryKeyGenerator.Java class for custom-generatorType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="custom-generatorType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="generator-name" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="primary-key-class" type="{http://www.w3.org/2001/XMLSchema}string"/> </sequence> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected StringgeneratorNameprotected StringprimaryKeyClass
-
Constructor Summary
Constructors Constructor Description CustomGeneratorType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGeneratorName()Gets the value of the generatorName property.StringgetPrimaryKeyClass()Gets the value of the primaryKeyClass property.voidsetGeneratorName(String value)Sets the value of the generatorName property.voidsetPrimaryKeyClass(String value)Sets the value of the primaryKeyClass property.
-
-
-
Method Detail
-
getGeneratorName
public String getGeneratorName()
Gets the value of the generatorName property.- Returns:
- possible object is
String
-
setGeneratorName
public void setGeneratorName(String value)
Sets the value of the generatorName property.- Parameters:
value- allowed object isString
-
getPrimaryKeyClass
public String getPrimaryKeyClass()
Gets the value of the primaryKeyClass property.- Returns:
- possible object is
String
-
-