org.jboss.shrinkwrap.descriptor.api.orm10.GeneratedValue Maven / Gradle / Ivy
package org.jboss.shrinkwrap.descriptor.api.orm10;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.orm10.GenerationType;
import org.jboss.shrinkwrap.descriptor.api.orm.*;
import org.jboss.shrinkwrap.descriptor.api.orm.OrmGeneratedValueCommType;
/**
* This interface defines the contract for the generated-value
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public interface GeneratedValue extends Child,
OrmGeneratedValueCommType> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: GeneratedValue ElementName: orm:generation-type ElementType : strategy
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: true isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the strategy
attribute
* @param strategy the value for the attribute strategy
* @return the current instance of GeneratedValue
*/
public GeneratedValue strategy(GenerationType strategy);
/**
* Sets the strategy
attribute
* @param strategy the value for the attribute strategy
* @return the current instance of GeneratedValue
*/
public GeneratedValue strategy(String strategy);
/**
* Returns the strategy
attribute
* @return the value defined for the attribute strategy
*/
public GenerationType getStrategy();
/**
* Returns the strategy
attribute
* @return the value found for the element strategy
*/
public String getStrategyAsString();
/**
* Removes the strategy
attribute
* @return the current instance of GeneratedValue
*/
public GeneratedValue removeStrategy();
// --------------------------------------------------------------------------------------------------------||
// ClassName: GeneratedValue ElementName: xsd:string ElementType : generator
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the generator
attribute
* @param generator the value for the attribute generator
* @return the current instance of GeneratedValue
*/
public GeneratedValue generator(String generator);
/**
* Returns the generator
attribute
* @return the value defined for the attribute generator
*/
public String getGenerator();
/**
* Removes the generator
attribute
* @return the current instance of GeneratedValue
*/
public GeneratedValue removeGenerator();
}