protected static class DBCommandExpr.DBCmdQuery extends DBRowSet
columnReferences, columns, comment, db, log, primaryKey, timestampColumnCTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE| Constructor and Description |
|---|
DBCommandExpr.DBCmdQuery(DBCommandExpr cmd,
DBColumnExpr[] colList)
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(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
|
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, setTimestampColumngetObjectValue, getValueClasspublic DBCommandExpr.DBCmdQuery(DBCommandExpr cmd, DBColumnExpr[] colList)
cmd - the command expressioncolList - public String getName()
public String getAlias()
public boolean isUpdateable()
isUpdateable in class DBRowSetpublic void addReferencedColumns(Set<DBColumn> list)
DBExpraddReferencedColumns in class DBRowSetlist - list to which all used column expressions must be addedDBExpr.addReferencedColumns(Set)public void addSQL(StringBuilder buf, long context)
public DBColumn[] getKeyColumns()
getKeyColumns in class DBRowSetpublic Object[] getRecordKey(DBRecord rec)
getRecordKey in class DBRowSetrec - the DBRecord object, contains all fields and the field propertiespublic void initRecord(DBRecord rec, Object[] keyValues, boolean insert)
initRecord in class DBRowSetrec - the Record objectkeyValues - an array of the primary key columnspublic void createRecord(DBRecord rec, Connection conn)
createRecord in class DBRowSetpublic void readRecord(DBRecord rec, Object[] keys, Connection conn)
readRecord in class DBRowSetrec - 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 DBRowSetrec - the DBRecord object. contains all fields and the field propertiesconn - a valid JDBC connection.public void deleteRecord(Object[] keys, Connection conn)
deleteRecord in class DBRowSetCopyright © 2008–2015 Apache Software Foundation. All rights reserved.