public class SimpleInsertQuery extends java.lang.Object implements InsertQuery
修飾子とタイプ | フィールドと説明 |
---|---|
protected InsertValue |
insertValue |
protected java.lang.String |
queryString |
コンストラクタと説明 |
---|
SimpleInsertQuery(InsertValue insertValue)
コンストラクタ。
|
修飾子とタイプ | メソッドと説明 |
---|---|
protected java.lang.String |
createQuery(InsertValue iv) |
protected java.sql.PreparedStatement |
createStatement(java.sql.Connection con,
java.lang.String query) |
ColumnValue[] |
getColumnValues()
挿入するカラムと値の組を取得する。
|
InsertValue |
getInsertValue()
InsertValueを取得する。
|
java.lang.String |
getQuery()
Query文を取得する。
|
void |
insert(java.sql.Connection con)
Insert文を実行する。
|
protected java.sql.PreparedStatement |
prepareStatement(java.sql.Connection con,
InsertValue iv) |
java.lang.String |
toString()
文字列を返す。
|
protected InsertValue insertValue
protected java.lang.String queryString
public SimpleInsertQuery(InsertValue insertValue) throws FatalException
FatalException
public ColumnValue[] getColumnValues()
getColumnValues
インタフェース内 InsertQuery
public InsertValue getInsertValue()
public java.lang.String getQuery()
getQuery
インタフェース内 InsertQuery
public void insert(java.sql.Connection con) throws DBException, FatalException
insert
インタフェース内 InsertQuery
DBException
FatalException
public java.lang.String toString()
toString
クラス内 java.lang.Object
protected java.lang.String createQuery(InsertValue iv) throws FatalException
FatalException
protected java.sql.PreparedStatement createStatement(java.sql.Connection con, java.lang.String query) throws DBException
DBException
protected java.sql.PreparedStatement prepareStatement(java.sql.Connection con, InsertValue iv) throws DBException, FatalException