public class Insert extends InsertOrUpdate
dialect| 构造器和说明 |
|---|
Insert(Table table)
生成指定表的插入对象实体
|
Insert(Table table,
Dialect dialect)
根据指定的数据库表和方言生成插入对象实体
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.sql.PreparedStatement |
createPreparedStatementByValidatedParameters(java.sql.Connection conn)
create preparedStatement
|
int |
execute(java.sql.Connection conn)
execute
|
boolean |
isUpdate()
is update
|
addColumn, clearAllColumn, getColumnCount, getColumnName, getColumnType, getColumnValue, getColumnValueByNameapplyDialect, createPreparedStatement, getTable, setTable, validatepublic Insert(Table table)
table - 数据库表public boolean isUpdate()
isUpdate 在类中 InsertOrUpdatepublic java.sql.PreparedStatement createPreparedStatementByValidatedParameters(java.sql.Connection conn)
throws java.sql.SQLException
createPreparedStatementByValidatedParameters 在类中 AbstractDMLconn - 数据库连接java.sql.SQLExceptionpublic int execute(java.sql.Connection conn)
throws java.sql.SQLException
conn - java.sql.SQLException