|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.empire.db.DBObject
org.apache.empire.db.DBExpr
org.apache.empire.db.DBRowSet
org.apache.empire.db.DBCommandExpr.DBCmdQuery
protected static class DBCommandExpr.DBCmdQuery
| Field Summary |
|---|
| Fields inherited from class org.apache.empire.db.DBRowSet |
|---|
columnReferences, columns, comment, db, log, primaryKey, timestampColumn |
| Fields inherited from class org.apache.empire.db.DBExpr |
|---|
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE |
| Constructor Summary | |
|---|---|
DBCommandExpr.DBCmdQuery(DBCommandExpr cmd,
DBColumnExpr[] colList)
Creates a new DBCmdQueryObject |
|
| Method Summary | |
|---|---|
void |
addReferencedColumns(Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression. |
void |
addSQL(StringBuilder buf,
long context)
Creates the SQL-Command adds the select statement into the SQL-Command. |
void |
createRecord(DBRecord rec,
Connection conn)
Returns the error message: ERR_NOTSUPPORTED |
void |
deleteRecord(Object[] keys,
Connection conn)
Returns the error message: ERR_NOTSUPPORTED |
String |
getAlias()
Not applicable - returns null |
DBColumn[] |
getKeyColumns()
Prints the error message: ERR_NOTSUPPORTED. |
String |
getName()
Not applicable - returns null |
Object[] |
getRecordKey(DBRecord rec)
Prints the error message: ERR_NOTSUPPORTED. |
void |
initRecord(DBRecord rec,
Object[] keyValues,
boolean insert)
Returns the error message: ERR_NOTSUPPORTED |
boolean |
isUpdateable()
Not applicable - returns false |
void |
readRecord(DBRecord rec,
Object[] keys,
Connection conn)
Returns the error message: ERR_NOTSUPPORTED |
void |
updateRecord(DBRecord rec,
Connection conn)
Returns the error message: ERR_NOTSUPPORTED |
| Methods inherited from class org.apache.empire.db.DBRowSet |
|---|
addColumnReference, completeInitRecord, count, deleteAllReferences, deleteRecord, deleteReferenceRecords, equals, findById, getColumn, getColumn, getColumnIndex, getColumnIndex, getColumnReferences, getColumns, getComment, getDatabase, getFullName, getId, getRenameTablePhrase, getTimestampColumn, initRecord, isColumnReadOnly, isKeyColumn, prepareInitRecord, readRecord, recordExists, recordExists, setComment, setKeyConstraints, setTimestampColumn |
| Methods inherited from class org.apache.empire.db.DBExpr |
|---|
getObjectValue, getValueClass |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DBCommandExpr.DBCmdQuery(DBCommandExpr cmd,
DBColumnExpr[] colList)
cmd - the command expressioncolList - | Method Detail |
|---|
public String getName()
getName in class DBRowSetpublic String getAlias()
getAlias in class DBRowSetpublic boolean isUpdateable()
isUpdateable in class DBRowSetpublic void addReferencedColumns(Set<DBColumn> list)
DBExpr
addReferencedColumns in class DBRowSetlist - list to which all used column expressions must be addedDBExpr.addReferencedColumns(Set)
public void addSQL(StringBuilder buf,
long context)
addSQL in class DBExprbuf - the SQL-Commandcontext - the current SQL-Command contextpublic DBColumn[] getKeyColumns()
getKeyColumns in class DBRowSetpublic Object[] getRecordKey(DBRecord rec)
getRecordKey in class DBRowSetrec - the DBRecord object, contains all fields and the field properties
public void initRecord(DBRecord rec,
Object[] keyValues,
boolean insert)
initRecord in class DBRowSetrec - the Record objectkeyValues - an array of the primary key columns
public void createRecord(DBRecord rec,
Connection conn)
createRecord in class DBRowSet
public void readRecord(DBRecord rec,
Object[] keys,
Connection conn)
readRecord in class DBRowSetrec - the DBRecord object which will hold the record datakeys - the primary key valuesconn - a valid JDBC connection.
public void updateRecord(DBRecord rec,
Connection conn)
updateRecord in class DBRowSetrec - the DBRecord object. contains all fields and the field propertiesconn - a valid JDBC connection.
public void deleteRecord(Object[] keys,
Connection conn)
deleteRecord in class DBRowSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||