|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.accesslayer.sql.SqlMNStatement
public abstract class SqlMNStatement
Model a MN-Statement based on Table, Columns and Values
| Constructor Summary | |
|---|---|
SqlMNStatement(String table,
String[] columns,
Logger logger)
Constructor for SqlMNStatement. |
|
| Method Summary | |
|---|---|
protected List |
appendListOfColumns(String[] columns,
StringBuffer stmt)
Appends to the statement a comma separated list of column names. |
protected void |
appendTable(String table,
StringBuffer stmt)
append table name |
protected void |
appendWhereClause(StringBuffer stmt,
Object[] columns)
Generate a sql where-clause matching the contraints defined by the array of fields |
protected String[] |
getColumns()
Returns the columns. |
protected Logger |
getLogger()
Returns the logger. |
protected String |
getTable()
Returns the table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.ojb.broker.accesslayer.sql.SqlStatement |
|---|
getStatement |
| Constructor Detail |
|---|
public SqlMNStatement(String table,
String[] columns,
Logger logger)
| Method Detail |
|---|
protected void appendTable(String table,
StringBuffer stmt)
protected String[] getColumns()
protected String getTable()
protected Logger getLogger()
protected void appendWhereClause(StringBuffer stmt,
Object[] columns)
columns - array containing all columns used in WHERE clause
protected List appendListOfColumns(String[] columns,
StringBuffer stmt)
columns - defines the columns to be selected (for reports)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||