protected static class DBCommandExpr.DBCmdQuery extends DBRowSet
DBRowSet.FieldInitMode, DBRowSet.PartialModeattributes, beanType, columnReferences, columns, comment, db, entityName, log, timestampColumnCTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUE| Constructor and Description |
|---|
DBCmdQuery(DBCommandExpr cmd,
DBDatabase db,
DBColumnExpr[] exprList)
Creates a new DBCmdQueryObject
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReferencedColumns(Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression.
|
void |
addSQL(DBSQLBuilder sql,
long context)
Creates the SQL-Command adds the select statement into the SQL-Command.
|
protected DBColumn |
cloneColumn(DBRowSet clone,
DBColumn scourceColumn)
throws ERR_NOTSUPPORTED
|
void |
createRecord(DBRecordBase record,
Object[] initalKey,
boolean deferredInit)
throws ERR_NOTSUPPORTED
|
void |
deleteRecord(Object[] key,
DBContext context)
throws ERR_NOTSUPPORTED
|
String |
getAlias()
Not applicable - returns null
|
DBColumn[] |
getKeyColumns()
Prints the error message: ERR_NOTSUPPORTED.
|
String |
getName()
Not applicable - returns null
|
boolean |
isUpdateable()
Not applicable - returns false
|
void |
readRecord(DBRecordBase record,
DBCompareExpr whereConstraints)
throws ERR_NOTSUPPORTED
|
void |
updateRecord(DBRecordBase rec)
throws ERR_NOTSUPPORTED
|
addColumnReference, checkParamRecord, completeInitRecord, count, createRecordCommand, deleteAllReferences, deleteRecord, deleteReferenceRecords, equals, getAllColumns, getAttribute, getAttributes, getBeanType, getColumn, getColumn, getColumnExprAt, getColumnIndex, getColumnIndex, getColumnReferences, getColumns, getComment, getDatabase, getEntityName, getFullName, getIdentifier, getKeyConstraints, getRenameTablePhrase, getRowsetData, getTimestampColumn, hashCode, initClonedFields, initRecord, initRecord, initRecord, initRecordDefaultValues, isColumnReadOnly, isKeyColumn, isSame, key, on, on, prepareInitRecord, readRecord, readRecord, recordExists, recordExists, setAttribute, setBeanType, setBeanType, setComment, setEntityName, setRowsetData, setTimestampColumncheckParamNullpublic DBCmdQuery(DBCommandExpr cmd, DBDatabase db, DBColumnExpr[] exprList)
cmd - the command expressiondb - the database to which the query belongsexprList - the column expressionspublic String getName()
public String getAlias()
public boolean isUpdateable()
isUpdateable in class DBRowSetpublic void addReferencedColumns(Set<DBColumn> list)
DBExpraddReferencedColumns in class DBRowSetlist - list to which all used column expressions must be addedDBExpr.addReferencedColumns(Set)public void addSQL(DBSQLBuilder sql, long context)
public DBColumn[] getKeyColumns()
getKeyColumns in interface EntityTypegetKeyColumns in class DBRowSetpublic void createRecord(DBRecordBase record, Object[] initalKey, boolean deferredInit)
createRecord in class DBRowSetpublic void readRecord(DBRecordBase record, DBCompareExpr whereConstraints)
readRecord in class DBRowSetrecord - the DBRecord object which will hold the record datawhereConstraints - the constraint for querying the recordpublic void updateRecord(DBRecordBase rec)
updateRecord in class DBRowSetrec - the DBRecord object. contains all fields and the field propertiespublic void deleteRecord(Object[] key, DBContext context)
deleteRecord in class DBRowSetprotected DBColumn cloneColumn(DBRowSet clone, DBColumn scourceColumn)
cloneColumn in class DBRowSetclone - the cloned rowsetscourceColumn - the source columnCopyright © 2008–2023 Apache Software Foundation. All rights reserved.