/** * Return the field indexes to exclude when loading data for the * given path. */ public BitSet getExcludes(List<MetaDataContext> path) { if (_rawMappings == null) { return null; } resolve(); if (path.isEmpty()) { return _fetchInfo.excludes; } if (_eager == null) { return null; } FetchInfo info = _eager.get(path); return (info == null) ? null : info.excludes; }
/** * Return the field indexes to exclude when loading data for the * given path. */ public BitSet getExcludes(List path) { if (_rawMappings == null) return null; resolve(); if (path.isEmpty()) return _fetchInfo.excludes; if (_eager == null) return null; FetchInfo info = (FetchInfo) _eager.get(path); return (info == null) ? null : info.excludes; }
/** * Return the field indexes to exclude when loading data for the * given path. */ public BitSet getExcludes(List<MetaDataContext> path) { if (_rawMappings == null) { return null; } resolve(); if (path.isEmpty()) { return _fetchInfo.excludes; } if (_eager == null) { return null; } FetchInfo info = _eager.get(path); return (info == null) ? null : info.excludes; }
/** * Return true if the mapped result contains eager data for the given * field at the given path. * * @param path stack of data requests (see * {@link org.apache.openjpa.jdbc.sql.Result#startDataRequest}) */ public boolean hasEager(List<MetaDataContext> path, FieldMapping field) { if (_rawMappings == null) { return false; } resolve(); if (path.isEmpty()) { return _fetchInfo.eager.get(field.getIndex()); } if (_eager == null) { return false; } FetchInfo info = _eager.get(path); return info != null && info.eager.get(field.getIndex()); }
/** * Return true if the mapped result contains eager data for the given * field at the given path. * * @param path stack of data requests (see * {@link org.apache.openjpa.jdbc.sql.Result#startDataRequest}) */ public boolean hasEager(List<MetaDataContext> path, FieldMapping field) { if (_rawMappings == null) { return false; } resolve(); if (path.isEmpty()) { return _fetchInfo.eager.get(field.getIndex()); } if (_eager == null) { return false; } FetchInfo info = _eager.get(path); return info != null && info.eager.get(field.getIndex()); }
/** * Return true if the mapped result contains eager data for the given * field at the given path. * * @param path stack of data requests (see * {@link org.apache.openjpa.jdbc.sql.Result#startDataRequest}) */ public boolean hasEager(List<MetaDataContext> path, FieldMapping field) { if (_rawMappings == null) { return false; } resolve(); if (path.isEmpty()) { return _fetchInfo.eager.get(field.getIndex()); } if (_eager == null) { return false; } FetchInfo info = _eager.get(path); return info != null && info.eager.get(field.getIndex()); }
/** * Return true if the mapped result contains eager data for the given * field at the given path. * * @param path stack of data requests (see * {@link org.apache.openjpa.jdbc.sql.Result#startDataRequest}) */ public boolean hasEager(List<MetaDataContext> path, FieldMapping field) { if (_rawMappings == null) { return false; } resolve(); if (path.isEmpty()) { return _fetchInfo.eager.get(field.getIndex()); } if (_eager == null) { return false; } FetchInfo info = _eager.get(path); return info != null && info.eager.get(field.getIndex()); }
/** * Map the given request onto a result id. * * @param path stack of data requests (see * {@link org.apache.openjpa.jdbc.sql.Result#startDataRequest}) * @param id requested id or column (see * {@link org.apache.openjpa.jdbc.sql.Result} APIs) * @param joins requested joins, or null * @return the id or column to fetch from the result * (typically a column name) */ public Object map(List<MetaDataContext> path, Object id, Joins joins) { if (_rawMappings == null || !(id instanceof Column)) { return id; } resolve(); ColumnMap cm = _mappings.get(path); return (cm == null) ? id : cm.map((Column) id); }
/** * Map the given request onto a result id. * * @param path stack of data requests (see * {@link org.apache.openjpa.jdbc.sql.Result#startDataRequest}) * @param id requested id or column (see * {@link org.apache.openjpa.jdbc.sql.Result} APIs) * @param joins requested joins, or null * @return the id or column to fetch from the result * (typically a column name) */ public Object map(List<MetaDataContext> path, Object id, Joins joins) { if (_rawMappings == null || !(id instanceof Column)) { return id; } resolve(); ColumnMap cm = _mappings.get(path); return (cm == null) ? id : cm.map((Column) id); }
/** * Return true if the mapped result contains eager data for the given * field at the given path. * * @param path stack of data requests (see * {@link org.apache.openjpa.jdbc.sql.Result#startDataRequest}) */ public boolean hasEager(List path, FieldMapping field) { if (_rawMappings == null) return false; resolve(); if (path.isEmpty()) return _fetchInfo.eager.get(field.getIndex()); if (_eager == null) return false; FetchInfo info = (FetchInfo) _eager.get(path); return info != null && info.eager.get(field.getIndex()); }
/** * Return the field indexes to exclude when loading data for the * given path. */ public BitSet getExcludes(List<MetaDataContext> path) { if (_rawMappings == null) { return null; } resolve(); if (path.isEmpty()) { return _fetchInfo.excludes; } if (_eager == null) { return null; } FetchInfo info = _eager.get(path); return (info == null) ? null : info.excludes; }
/** * Map the given request onto a result id. * * @param path stack of data requests (see * {@link org.apache.openjpa.jdbc.sql.Result#startDataRequest}) * @param id requested id or column (see * {@link org.apache.openjpa.jdbc.sql.Result} APIs) * @param joins requested joins, or null * @return the id or column to fetch from the result * (typically a column name) */ public Object map(List path, Object id, Joins joins) { if (_rawMappings == null || !(id instanceof Column)) return id; resolve(); ColumnMap cm = (ColumnMap) _mappings.get(path); return (cm == null) ? id : cm.map((Column) id); }
/** * Map the given request onto a result id. * * @param path stack of data requests (see * {@link org.apache.openjpa.jdbc.sql.Result#startDataRequest}) * @param id requested id or column (see * {@link org.apache.openjpa.jdbc.sql.Result} APIs) * @param joins requested joins, or null * @return the id or column to fetch from the result * (typically a column name) */ public Object map(List<MetaDataContext> path, Object id, Joins joins) { if (_rawMappings == null || !(id instanceof Column)) { return id; } resolve(); ColumnMap cm = _mappings.get(path); return (cm == null) ? id : cm.map((Column) id); }
/** * Map the given request onto a result id. * * @param path stack of data requests (see * {@link org.apache.openjpa.jdbc.sql.Result#startDataRequest}) * @param id requested id or column (see * {@link org.apache.openjpa.jdbc.sql.Result} APIs) * @param joins requested joins, or null * @return the id or column to fetch from the result * (typically a column name) */ public Object map(List<MetaDataContext> path, Object id, Joins joins) { if (_rawMappings == null || !(id instanceof Column)) { return id; } resolve(); ColumnMap cm = _mappings.get(path); return (cm == null) ? id : cm.map((Column) id); }
/** * Return the field indexes to exclude when loading data for the * given path. */ public BitSet getExcludes(List<MetaDataContext> path) { if (_rawMappings == null) { return null; } resolve(); if (path.isEmpty()) { return _fetchInfo.excludes; } if (_eager == null) { return null; } FetchInfo info = _eager.get(path); return (info == null) ? null : info.excludes; }