public class SqlDeleter
extends java.lang.Object
The SQL generated is of the form "delete from TABLE where THIS=? and THAT=? and..."; if you want anything more complex you should handle that yourself.
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 and Description |
|---|
SqlDeleter(SqlTable table) |
SqlDeleter(SqlTable table,
java.util.List<java.lang.String> keyNameList) |
SqlDeleter(SqlTable table,
java.lang.String... keyNames) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Cog record)
Delete a row using the given Cog of values to get the keys from.
|
void |
delete(java.util.List<java.lang.Object> keyValues)
Deletes a row with the given list of key values.
|
void |
delete(Naming<java.lang.Object> record)
Delete a row using the given Naming of values to get the keys from.
|
void |
delete(java.lang.Object... keyValues)
Deletes a row with the given array of key values.
|
SqlTable |
getTable() |
public SqlDeleter(SqlTable table) throws java.sql.SQLException
java.sql.SQLExceptionpublic SqlDeleter(SqlTable table, java.lang.String... keyNames) throws java.sql.SQLException
java.sql.SQLExceptionpublic SqlDeleter(SqlTable table, java.util.List<java.lang.String> keyNameList) throws java.sql.SQLException
java.sql.SQLExceptionpublic void delete(Naming<java.lang.Object> record) throws java.sql.SQLException
java.sql.SQLExceptionpublic void delete(Cog record) throws java.sql.SQLException
java.sql.SQLExceptionpublic void delete(java.lang.Object... keyValues)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void delete(java.util.List<java.lang.Object> keyValues)
throws java.sql.SQLException
keyValues - java.sql.SQLExceptionpublic SqlTable getTable()