org.mybatis.generator.config
Class GeneratedKey

java.lang.Object
  extended by org.mybatis.generator.config.GeneratedKey

public class GeneratedKey
extends Object

This class specifies that a key is auto-generated, either as an identity column (post insert), or as some other query like a sequences (pre insert).

Author:
Jeff Butler

Constructor Summary
GeneratedKey(String column, String configuredSqlStatement, boolean isIdentity, String type)
           
 
Method Summary
 String getColumn()
           
 String getMyBatis3Order()
           
 String getRuntimeSqlStatement()
           
 String getType()
           
 boolean isIdentity()
           
 boolean isJdbcStandard()
           
 boolean isPlacedBeforeInsertInIbatis2()
          This method is used by the iBATIS2 generators to know if the XML element should be placed before the insert SQL statement.
 XmlElement toXmlElement()
           
 void validate(List<String> errors, String tableName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratedKey

public GeneratedKey(String column,
                    String configuredSqlStatement,
                    boolean isIdentity,
                    String type)
Method Detail

getColumn

public String getColumn()

isIdentity

public boolean isIdentity()

getRuntimeSqlStatement

public String getRuntimeSqlStatement()

getType

public String getType()

isPlacedBeforeInsertInIbatis2

public boolean isPlacedBeforeInsertInIbatis2()
This method is used by the iBATIS2 generators to know if the XML element should be placed before the insert SQL statement.

Returns:

getMyBatis3Order

public String getMyBatis3Order()

toXmlElement

public XmlElement toXmlElement()

validate

public void validate(List<String> errors,
                     String tableName)

isJdbcStandard

public boolean isJdbcStandard()


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.