|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.sql.SqlInserter
public class SqlInserter
Tool to simplify insertions into an SqlTable. Creates and retains a prepared statement so you can hang onto it and use it over and over on the same connection for better performance.
Copyright 2008 Partner Software, Inc.
| Constructor Summary | |
|---|---|
SqlInserter(SqlTable table)
|
|
SqlInserter(SqlTable table,
java.util.List<java.lang.String> columnNameList)
|
|
SqlInserter(SqlTable table,
java.lang.String... columnNames)
|
|
| Method Summary | |
|---|---|
SqlTable |
getTable()
|
void |
insert(Cog record)
Insert a record using the given Cog containing values. |
void |
insert(java.util.List<java.lang.Object> values)
Inserts a record with the given list of values. |
void |
insert(Naming<java.lang.Object> record)
Insert a record using the given Naming of values. |
void |
insert(java.lang.Object... values)
Inserts a record with the given array of values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlInserter(SqlTable table)
throws java.sql.SQLException
java.sql.SQLException
public SqlInserter(SqlTable table,
java.lang.String... columnNames)
throws java.sql.SQLException
java.sql.SQLException
public SqlInserter(SqlTable table,
java.util.List<java.lang.String> columnNameList)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public void insert(Naming<java.lang.Object> record)
throws java.sql.SQLException
java.sql.SQLException
public void insert(Cog record)
throws java.sql.SQLException
java.sql.SQLException
public void insert(java.lang.Object... values)
throws java.sql.SQLException
values -
java.sql.SQLException
public void insert(java.util.List<java.lang.Object> values)
throws java.sql.SQLException
values -
java.sql.SQLExceptionpublic SqlTable getTable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||