|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
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 |
---|
public DBCommandExpr.DBCmdQuery(DBCommandExpr cmd, DBColumnExpr[] colList)
cmd
- the command expressioncolList
- Method Detail |
---|
public String getName()
getName
in class DBRowSet
public String getAlias()
getAlias
in class DBRowSet
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(StringBuilder buf, long context)
addSQL
in class DBExpr
buf
- the SQL-Commandcontext
- the current SQL-Command contextpublic DBColumn[] getKeyColumns()
getKeyColumns
in class DBRowSet
public Object[] getRecordKey(DBRecord rec)
getRecordKey
in class DBRowSet
rec
- the DBRecord object, contains all fields and the field properties
public void initRecord(DBRecord rec, Object[] keyValues, boolean insert)
initRecord
in class DBRowSet
rec
- the Record objectkeyValues
- an array of the primary key columnspublic void createRecord(DBRecord rec, Connection conn)
createRecord
in class DBRowSet
public void readRecord(DBRecord rec, Object[] keys, 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 void updateRecord(DBRecord rec, Connection conn)
updateRecord
in class DBRowSet
rec
- the DBRecord object. contains all fields and the field propertiesconn
- a valid JDBC connection.public void deleteRecord(Object[] keys, Connection conn)
deleteRecord
in class DBRowSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |