org.mybatis.generator.config
Class GeneratedKey
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeneratedKey
public GeneratedKey(String column,
String configuredSqlStatement,
boolean isIdentity,
String type)
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.