|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.commons.ErrorObject
org.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
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.empire.commons.ErrorObject |
---|
ErrorObject.ObjectErrorInfo |
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(java.util.Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression. |
void |
addSQL(java.lang.StringBuilder buf,
long context)
Creates the SQL-Command adds the select statement into the SQL-Command. |
boolean |
createRecord(DBRecord rec,
java.sql.Connection conn)
Returns the error message: ERR_NOTSUPPORTED |
boolean |
deleteRecord(java.lang.Object[] keys,
java.sql.Connection conn)
Returns the error message: ERR_NOTSUPPORTED |
java.lang.String |
getAlias()
Not applicable - returns null |
DBColumn[] |
getKeyColumns()
Prints the error message: ERR_NOTSUPPORTED. |
java.lang.String |
getName()
Not applicable - returns null |
java.lang.Object[] |
getRecordKey(DBRecord rec)
Prints the error message: ERR_NOTSUPPORTED. |
boolean |
initRecord(DBRecord rec,
java.lang.Object[] keyValues)
Returns the error message: ERR_NOTSUPPORTED |
boolean |
readRecord(DBRecord rec,
java.lang.Object[] keys,
java.sql.Connection conn)
Returns the error message: ERR_NOTSUPPORTED |
boolean |
updateRecord(DBRecord rec,
java.sql.Connection conn)
Returns the error message: ERR_NOTSUPPORTED |
Methods inherited from class org.apache.empire.db.DBRowSet |
---|
addColumnReference, completeInitRecord, count, deleteAllReferences, deleteRecord, deleteReferenceRecords, getColumn, getColumn, getColumnIndex, getColumnIndex, getColumnReferences, getColumns, getComment, getDatabase, getFullName, 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 org.apache.empire.db.DBObject |
---|
error, error |
Methods inherited from class org.apache.empire.commons.ErrorObject |
---|
clearError, clearErrorInfo, error, error, error, error, error, getErrorInfo, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, internalSetError, isExceptionsEnabled, setExceptionsEnabled, success |
Methods inherited from class java.lang.Object |
---|
clone, equals, 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 java.lang.String getName()
getName
in class DBRowSet
public java.lang.String getAlias()
getAlias
in class DBRowSet
public void addReferencedColumns(java.util.Set<DBColumn> list)
DBExpr
addReferencedColumns
in class DBRowSet
list
- list to which all used column expressions must be addedDBExpr.addReferencedColumns(Set)
public void addSQL(java.lang.StringBuilder buf, long context)
addSQL
in class DBExpr
buf
- the SQL-Commandcontext
- the current SQL-Command contextpublic DBColumn[] getKeyColumns()
getKeyColumns
in class DBRowSet
public java.lang.Object[] getRecordKey(DBRecord rec)
getRecordKey
in class DBRowSet
rec
- the DBRecord object, contains all fields and the field properties
public boolean initRecord(DBRecord rec, java.lang.Object[] keyValues)
initRecord
in class DBRowSet
rec
- the Record objectkeyValues
- an array of the primary key columns
public boolean createRecord(DBRecord rec, java.sql.Connection conn)
createRecord
in class DBRowSet
public boolean readRecord(DBRecord rec, java.lang.Object[] keys, java.sql.Connection conn)
readRecord
in class DBRowSet
rec
- the DBRecord object which will hold the record datakeys
- the primary key valuesconn
- a valid JDBC connection.
public boolean updateRecord(DBRecord rec, java.sql.Connection conn)
updateRecord
in class DBRowSet
rec
- the DBRecord object. contains all fields and the field propertiesconn
- a valid JDBC connection.
public boolean deleteRecord(java.lang.Object[] keys, java.sql.Connection conn)
deleteRecord
in class DBRowSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |