protected static class DBCommandExpr.DBCmdQuery extends DBRowSet
DBRowSet.FieldInitMode, DBRowSet.PartialMode
beanType, columnReferences, columns, comment, db, entityName, log, timestampColumn
CTX_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.
|
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, getBeanType, getColumn, getColumn, getColumnExprAt, getColumnIndex, getColumnIndex, getColumnReferences, getColumns, getComment, getDatabase, getEntityName, getFullName, getIdentifier, getKeyConstraints, getRenameTablePhrase, getRowsetData, getTimestampColumn, hashCode, initRecord, initRecord, initRecordDefaultValues, isColumnReadOnly, isKeyColumn, isSame, key, on, on, prepareInitRecord, readRecord, readRecord, recordExists, recordExists, setBeanType, setBeanType, setComment, setEntityName, setRowsetData, setTimestampColumn
checkParamNull
public DBCmdQuery(DBCommandExpr cmd, DBDatabase db, DBColumnExpr[] exprList)
cmd
- the command expressionexprList
- public String getName()
public String getAlias()
public boolean isUpdateable()
isUpdateable
in class DBRowSet
public void addReferencedColumns(Set<DBColumn> list)
DBExpr
addReferencedColumns
in class DBRowSet
list
- 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 EntityType
getKeyColumns
in class DBRowSet
public void createRecord(DBRecordBase record, Object[] initalKey, boolean deferredInit)
createRecord
in class DBRowSet
public void readRecord(DBRecordBase record, DBCompareExpr whereConstraints)
readRecord
in class DBRowSet
record
- the DBRecord object which will hold the record datawhereConstraints
- the constraint for querying the recordpublic void updateRecord(DBRecordBase rec)
updateRecord
in class DBRowSet
rec
- the DBRecord object. contains all fields and the field propertiespublic void deleteRecord(Object[] key, DBContext context)
deleteRecord
in class DBRowSet
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.