org.apache.empire.db
Class DBCommandExpr.DBCmdQuery

java.lang.Object
  extended by org.apache.empire.db.DBObject
      extended by org.apache.empire.db.DBExpr
          extended by org.apache.empire.db.DBRowSet
              extended by org.apache.empire.db.DBCommandExpr.DBCmdQuery
All Implemented Interfaces:
Serializable
Enclosing class:
DBCommandExpr

protected static class DBCommandExpr.DBCmdQuery
extends DBRowSet

See Also:
Serialized Form

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, hashCode, 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, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBCommandExpr.DBCmdQuery

public DBCommandExpr.DBCmdQuery(DBCommandExpr cmd,
                                DBColumnExpr[] colList)
Creates a new DBCmdQueryObject

Parameters:
cmd - the command expression
colList -
Method Detail

getName

public String getName()
Not applicable - returns null

Specified by:
getName in class DBRowSet

getAlias

public String getAlias()
Not applicable - returns null

Specified by:
getAlias in class DBRowSet

isUpdateable

public boolean isUpdateable()
Not applicable - returns false

Specified by:
isUpdateable in class DBRowSet

addReferencedColumns

public void addReferencedColumns(Set<DBColumn> list)
Description copied from class: DBExpr
Internal function to obtain all DBColumnExpr-objects used by this expression.

Overrides:
addReferencedColumns in class DBRowSet
Parameters:
list - list to which all used column expressions must be added
See Also:
DBExpr.addReferencedColumns(Set)

addSQL

public void addSQL(StringBuilder buf,
                   long context)
Creates the SQL-Command adds the select statement into the SQL-Command.

Specified by:
addSQL in class DBExpr
Parameters:
buf - the SQL-Command
context - the current SQL-Command context

getKeyColumns

public DBColumn[] getKeyColumns()
Prints the error message: ERR_NOTSUPPORTED.

Overrides:
getKeyColumns in class DBRowSet
Returns:
null

getRecordKey

public Object[] getRecordKey(DBRecord rec)
Prints the error message: ERR_NOTSUPPORTED.

Overrides:
getRecordKey in class DBRowSet
Parameters:
rec - the DBRecord object, contains all fields and the field properties
Returns:
null

initRecord

public void initRecord(DBRecord rec,
                       Object[] keyValues,
                       boolean insert)
Returns the error message: ERR_NOTSUPPORTED

Overrides:
initRecord in class DBRowSet
Parameters:
rec - the Record object
keyValues - an array of the primary key columns

createRecord

public void createRecord(DBRecord rec,
                         Connection conn)
Returns the error message: ERR_NOTSUPPORTED

Specified by:
createRecord in class DBRowSet

readRecord

public void readRecord(DBRecord rec,
                       Object[] keys,
                       Connection conn)
Returns the error message: ERR_NOTSUPPORTED

Overrides:
readRecord in class DBRowSet
Parameters:
rec - the DBRecord object which will hold the record data
keys - the primary key values
conn - a valid JDBC connection.

updateRecord

public void updateRecord(DBRecord rec,
                         Connection conn)
Returns the error message: ERR_NOTSUPPORTED

Overrides:
updateRecord in class DBRowSet
Parameters:
rec - the DBRecord object. contains all fields and the field properties
conn - a valid JDBC connection.

deleteRecord

public void deleteRecord(Object[] keys,
                         Connection conn)
Returns the error message: ERR_NOTSUPPORTED

Specified by:
deleteRecord in class DBRowSet


Copyright © 2008–2014 Apache Software Foundation. All rights reserved.