/** * 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(); } }
/** * 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(); } }
/** * 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(); } }