ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.orm10
Interface GeneratedValue<T>

All Superinterfaces:
Child<T>

public interface GeneratedValue<T>
extends Child<T>

This interface defines the contract for the generated-value xsd type

Since:
Generation date :2012-05-09T23:45:03.702-07:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 GeneratedValue<T> generator(String generator)
          Sets the generator attribute
 String getGenerator()
          Returns the generator attribute
 GenerationType getStrategy()
          Returns the strategy attribute
 String getStrategyAsString()
          Returns the strategy attribute
 GeneratedValue<T> removeGenerator()
          Removes the generator attribute
 GeneratedValue<T> removeStrategy()
          Removes the strategy attribute
 GeneratedValue<T> strategy(GenerationType strategy)
          Sets the strategy attribute
 GeneratedValue<T> strategy(String strategy)
          Sets the strategy attribute
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

strategy

GeneratedValue<T> strategy(GenerationType strategy)
Sets the strategy attribute

Parameters:
strategy - the value for the attribute strategy
Returns:
the current instance of GeneratedValue

strategy

GeneratedValue<T> strategy(String strategy)
Sets the strategy attribute

Parameters:
strategy - the value for the attribute strategy
Returns:
the current instance of GeneratedValue

getStrategy

GenerationType getStrategy()
Returns the strategy attribute

Returns:
the value defined for the attribute strategy

getStrategyAsString

String getStrategyAsString()
Returns the strategy attribute

Returns:
the value found for the element strategy

removeStrategy

GeneratedValue<T> removeStrategy()
Removes the strategy attribute

Returns:
the current instance of GeneratedValue

generator

GeneratedValue<T> generator(String generator)
Sets the generator attribute

Parameters:
generator - the value for the attribute generator
Returns:
the current instance of GeneratedValue

getGenerator

String getGenerator()
Returns the generator attribute

Returns:
the value defined for the attribute generator

removeGenerator

GeneratedValue<T> removeGenerator()
Removes the generator attribute

Returns:
the current instance of GeneratedValue

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.