Package org.apache.empire.db
Class DBCommandExpr.DBCmdQuery
java.lang.Object
org.apache.empire.db.DBObject
org.apache.empire.db.DBExpr
org.apache.empire.db.DBRowSet
org.apache.empire.db.DBCommandExpr.DBCmdQuery
- All Implemented Interfaces:
Entity
- Enclosing class:
- DBCommandExpr
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.empire.db.DBRowSet
DBRowSet.FieldInitMode, DBRowSet.PartialMode -
Field Summary
Fields inherited from class org.apache.empire.db.DBRowSet
attributes, beanType, columnReferences, columns, comment, db, entityName, log, timestampColumnFields inherited from class org.apache.empire.db.DBExpr
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionDBCmdQuery(DBCommandExpr cmd, DBDatabase db, DBColumnExpr[] exprList) Creates a new DBCmdQueryObject -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReferencedColumns(Set<DBColumn> list) Internal function to obtain all DBColumnExpr-objects used by this expression.voidaddSQL(DBSQLBuilder sql, long context) Creates the SQL-Command adds the select statement into the SQL-Command.protected DBColumncloneColumn(DBRowSet clone, DBColumn scourceColumn) throws ERR_NOTSUPPORTEDvoidcreateRecord(DBRecordBase record, Object[] initalKey, boolean deferredInit) throws ERR_NOTSUPPORTEDvoiddeleteRecord(Object[] key, DBContext context) throws ERR_NOTSUPPORTEDgetAlias()Not applicable - returns nullDBColumn[]Prints the error message: ERR_NOTSUPPORTED.getName()Not applicable - returns nullbooleanNot applicable - returns falsevoidreadRecord(DBRecordBase record, DBCompareExpr whereConstraints) throws ERR_NOTSUPPORTEDvoidupdateRecord(DBRecordBase rec) throws ERR_NOTSUPPORTEDMethods inherited from class org.apache.empire.db.DBRowSet
addColumnReference, checkParamRecord, completeInitRecord, count, createRecordCommand, deleteAllReferences, deleteRecord, deleteReferenceRecords, equals, getAllColumns, getAttribute, getAttributes, getBeanType, getColumn, getColumn, getColumnCount, 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, setTimestampColumnMethods inherited from class org.apache.empire.db.DBObject
checkParamNull
-
Constructor Details
-
DBCmdQuery
Creates a new DBCmdQueryObject- Parameters:
cmd- the command expressiondb- the database to which the query belongsexprList- the column expressions
-
-
Method Details
-
getName
Not applicable - returns null -
getAlias
Not applicable - returns null -
isUpdateable
public boolean isUpdateable()Not applicable - returns false- Specified by:
isUpdateablein classDBRowSet
-
addReferencedColumns
Description copied from class:DBExprInternal function to obtain all DBColumnExpr-objects used by this expression.- Overrides:
addReferencedColumnsin classDBRowSet- Parameters:
list- list to which all used column expressions must be added- See Also:
-
addSQL
Creates the SQL-Command adds the select statement into the SQL-Command. -
getKeyColumns
Prints the error message: ERR_NOTSUPPORTED.- Specified by:
getKeyColumnsin interfaceEntity- Specified by:
getKeyColumnsin classDBRowSet- Returns:
- null
-
createRecord
throws ERR_NOTSUPPORTED- Specified by:
createRecordin classDBRowSet
-
readRecord
throws ERR_NOTSUPPORTED- Overrides:
readRecordin classDBRowSet- Parameters:
record- the DBRecord object which will hold the record datawhereConstraints- the constraint for querying the record
-
updateRecord
throws ERR_NOTSUPPORTED- Overrides:
updateRecordin classDBRowSet- Parameters:
rec- the DBRecord object. contains all fields and the field properties
-
deleteRecord
throws ERR_NOTSUPPORTED- Specified by:
deleteRecordin classDBRowSet
-
cloneColumn
throws ERR_NOTSUPPORTED- Specified by:
cloneColumnin classDBRowSet- Parameters:
clone- the cloned rowsetscourceColumn- the source column- Returns:
- the cloned column
-