/** * INTERNAL: * This expression is built on a different base than the one we want. Rebuild it and * return the root of the new tree */ public Expression rebuildOn(Expression newBase) { ObjectExpression newLocalBase = (ObjectExpression)getBaseExpression().rebuildOn(newBase); return newLocalBase.getManualQueryKey(getName(), getDescriptor()); }
/** * INTERNAL: * If we ever get in the circumstance of a manual query key * to an aggregate, then we can assume that the owner of that * aggregate isn't participating (and even if it is, we can't * know which node it is, so *DO* use the aggregate's parents tables */ public List<DatabaseTable> getOwnedTables() { if (getDescriptor() == null) { return null; } else { if ((getDescriptor().getHistoryPolicy() != null) && (getAsOfClause().getValue() != null)) { return getDescriptor().getHistoryPolicy().getHistoricalTables(); } return getDescriptor().getTables(); } }
public Expression newManualDerivedExpressionNamed(String attributeName, ClassDescriptor aDescriptor) { QueryKeyExpression result = new ManualQueryKeyExpression(attributeName, this, aDescriptor); addDerivedExpression(result); return result; }
/** * INTERNAL: * If we ever get in the circumstance of a manual query key * to an aggregate, then we can assume that the owner of that * aggregate isn't participating (and even if it is, we can't * know which node it is, so *DO* use the aggregate's parents tables */ public List<DatabaseTable> getOwnedTables() { if (getDescriptor() == null) { return null; } else { if ((getDescriptor().getHistoryPolicy() != null) && (getAsOfClause().getValue() != null)) { return getDescriptor().getHistoryPolicy().getHistoricalTables(); } return getDescriptor().getTables(); } }
public Expression newManualDerivedExpressionNamed(String attributeName, ClassDescriptor aDescriptor) { QueryKeyExpression result = new ManualQueryKeyExpression(attributeName, this, aDescriptor); addDerivedExpression(result); return result; }
/** * INTERNAL: * Rebuild myself against the base, with the values of parameters supplied by the context * expression. This is used for transforming a standalone expression (e.g. the join criteria of a mapping) * into part of some larger expression. You normally would not call this directly, instead calling twist * See the comment there for more details" */ @Override public Expression twistedForBaseAndContext(Expression newBase, Expression context, Expression oldBase) { ObjectExpression twistedBase = (ObjectExpression)getBaseExpression().twistedForBaseAndContext(newBase, context, oldBase); return twistedBase.getManualQueryKey(getName(), getDescriptor()); }
/** * INTERNAL: * If we ever get in the circumstance of a manual query key * to an aggregate, then we can assume that the owner of that * aggregate isn't participating (and even if it is, we can't * know which node it is, so *DO* use the aggregate's parents tables */ public Vector getOwnedTables() { if (getDescriptor() == null) { return null; } else { if ((getDescriptor().getHistoryPolicy() != null) && (getAsOfClause().getValue() != null)) { return getDescriptor().getHistoryPolicy().getHistoricalTables(); } return getDescriptor().getTables(); } }
public Expression newManualDerivedExpressionNamed(String attributeName, ClassDescriptor aDescriptor) { QueryKeyExpression result = new ManualQueryKeyExpression(attributeName, this, aDescriptor); addDerivedExpression(result); return result; }
/** * INTERNAL: * Rebuild myself against the base, with the values of parameters supplied by the context * expression. This is used for transforming a standalone expression (e.g. the join criteria of a mapping) * into part of some larger expression. You normally would not call this directly, instead calling twist * See the comment there for more details" */ @Override public Expression twistedForBaseAndContext(Expression newBase, Expression context, Expression oldBase) { ObjectExpression twistedBase = (ObjectExpression)getBaseExpression().twistedForBaseAndContext(newBase, context, oldBase); return twistedBase.getManualQueryKey(getName(), getDescriptor()); }
/** * INTERNAL: * This expression is built on a different base than the one we want. Rebuild it and * return the root of the new tree */ public Expression rebuildOn(Expression newBase) { ObjectExpression newLocalBase = (ObjectExpression)getBaseExpression().rebuildOn(newBase); return newLocalBase.getManualQueryKey(getName(), getDescriptor()); }
/** * INTERNAL: * This expression is built on a different base than the one we want. Rebuild it and * return the root of the new tree */ public Expression rebuildOn(Expression newBase) { ObjectExpression newLocalBase = (ObjectExpression)getBaseExpression().rebuildOn(newBase); return newLocalBase.getManualQueryKey(getName(), getDescriptor()); }
/** * INTERNAL: * Rebuild myself against the base, with the values of parameters supplied by the context * expression. This is used for transforming a standalone expression (e.g. the join criteria of a mapping) * into part of some larger expression. You normally would not call this directly, instead calling twist * See the comment there for more details" */ public Expression twistedForBaseAndContext(Expression newBase, Expression context) { ObjectExpression twistedBase = (ObjectExpression)getBaseExpression().twistedForBaseAndContext(newBase, context); return twistedBase.getManualQueryKey(getName(), getDescriptor()); }