コード例 #1
0
  /** Return the alias for our table */
  protected DatabaseTable getAliasedTable() {
    DataExpression base = (DataExpression) getBaseExpression();

    DatabaseTable alias = base.aliasForTable(getField().getTable());
    if (alias == null) {
      return getField().getTable();
    } else {
      return alias;
    }
  }
コード例 #2
0
 /** INTERNAL: Used for cloning. */
 @Override
 protected void postCopyIn(Map alreadyDone) {
   super.postCopyIn(alreadyDone);
   this.derivedExpressions = copyDerivedExpressions(alreadyDone);
   if (this.onClause != null) {
     this.onClause = this.onClause.copiedVersionFrom(alreadyDone);
   }
   if (this.joinSource != null) {
     this.joinSource = this.joinSource.copiedVersionFrom(alreadyDone);
   }
 }
コード例 #3
0
 /** INTERNAL: */
 public void clearAliases() {
   hasBeenAliased = false;
   super.clearAliases();
 }