org.sql.generation.api.grammar.definition.table
Class AutoGenerationPolicy

java.lang.Object
  extended by org.sql.generation.api.grammar.definition.table.AutoGenerationPolicy

public final class AutoGenerationPolicy
extends Object

This class defines the policy for auto-generated columns (GENERATED <strategy> AS IDENTITY.

Author:
Stanislav Muhametsin
See Also:
ColumnDefinition

Field Summary
static AutoGenerationPolicy ALWAYS
          Represents the GENERATED ALWAYS AS IDENTITY auto generation policy.
static AutoGenerationPolicy BY_DEFAULT
          Represents the GENERATED BY DEFAULT AS IDENTITY auto generation policy.
 
Constructor Summary
AutoGenerationPolicy(String policyName)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALWAYS

public static final AutoGenerationPolicy ALWAYS
Represents the GENERATED ALWAYS AS IDENTITY auto generation policy.


BY_DEFAULT

public static final AutoGenerationPolicy BY_DEFAULT
Represents the GENERATED BY DEFAULT AS IDENTITY auto generation policy.

Constructor Detail

AutoGenerationPolicy

public AutoGenerationPolicy(String policyName)
Method Detail

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012. All Rights Reserved.