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, getColumnValueByName
applyDialect, createPreparedStatement, getTable, setTable, validate
public Insert(Table table)
table
- 数据库表public boolean isUpdate()
isUpdate
在类中 InsertOrUpdate
public java.sql.PreparedStatement createPreparedStatementByValidatedParameters(java.sql.Connection conn) throws java.sql.SQLException
createPreparedStatementByValidatedParameters
在类中 AbstractDML
conn
- 数据库连接java.sql.SQLException
public int execute(java.sql.Connection conn) throws java.sql.SQLException
conn
- java.sql.SQLException