public abstract class TableRow
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
TableRow()
Instantiates a new table row.
|
TableRow(java.sql.ResultSet rs)
Instantiates a new table row using a ResultSet.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCSVFields(boolean includeReadOnlyFields)
Gets the fields of this object in CSV (comma separated value) format.
|
java.sql.PreparedStatement |
insertStatement(java.sql.Connection connection)
Insert statement.
|
java.sql.PreparedStatement |
insertStatement(java.sql.Connection connection,
java.lang.String tableName)
Insert statement.
|
java.sql.PreparedStatement |
selectStatement(java.sql.Connection connection)
Select statement.
|
java.sql.PreparedStatement |
selectStatement(java.sql.Connection connection,
java.lang.String conditions)
Select statement.
|
java.sql.PreparedStatement |
updateStatement(java.sql.Connection connection)
Update statement.
|
java.sql.PreparedStatement |
updateStatement(java.sql.Connection connection,
java.lang.String condition)
Update statement.
|
java.sql.PreparedStatement |
updateStatement(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String condition)
Update statement.
|
public TableRow()
public TableRow(java.sql.ResultSet rs)
rs - the rspublic java.lang.String getCSVFields(boolean includeReadOnlyFields)
includeReadOnlyFields - TODOpublic java.sql.PreparedStatement insertStatement(java.sql.Connection connection)
throws java.sql.SQLException
connection - the connectionjava.sql.SQLException - the SQL exceptionpublic java.sql.PreparedStatement insertStatement(java.sql.Connection connection,
java.lang.String tableName)
throws java.sql.SQLException
connection - the connectiontableName - the table namejava.sql.SQLException - the SQL exceptionpublic java.sql.PreparedStatement selectStatement(java.sql.Connection connection)
throws java.sql.SQLException
connection - the connectionjava.sql.SQLException - the SQL exceptionpublic java.sql.PreparedStatement selectStatement(java.sql.Connection connection,
java.lang.String conditions)
throws java.sql.SQLException
connection - the connectionconditions - the conditionsjava.sql.SQLException - the SQL exceptionpublic java.sql.PreparedStatement updateStatement(java.sql.Connection connection)
throws java.sql.SQLException
connection - the connectionjava.sql.SQLException - the SQL exceptionpublic java.sql.PreparedStatement updateStatement(java.sql.Connection connection,
java.lang.String condition)
throws java.sql.SQLException
connection - the connectioncondition - the conditionjava.sql.SQLException - the SQL exceptionpublic java.sql.PreparedStatement updateStatement(java.sql.Connection connection,
java.lang.String tableName,
java.lang.String condition)
throws java.sql.SQLException
connection - the connectiontableName - the table namecondition - the conditionjava.sql.SQLException - the SQL exception