/** * Return the data from the proper index of the extra field data array. */ private synchronized Object getExtraFieldData(int field, boolean isLoaded) { // only return the field data if the field is in the right loaded // state; otherwise we might return intermediate for impl data or // vice versa if (_fieldImpl == null || _loaded.get(field) != isLoaded) return null; int idx = _meta.getExtraFieldDataIndex(field); return (idx == -1) ? null : _fieldImpl[idx]; }
/** * Return the data from the proper index of the extra field data array. */ protected synchronized Object getExtraFieldData(int field, boolean isLoaded) { // only return the field data if the field is in the right loaded // state; otherwise we might return intermediate for impl data or // vice versa if (_fieldImpl == null || _loaded.get(field) != isLoaded) return null; int idx = _meta.getExtraFieldDataIndex(field); return (idx == -1) ? null : _fieldImpl[idx]; }
/** * Return the data from the proper index of the extra field data array. */ protected synchronized Object getExtraFieldData(int field, boolean isLoaded) { // only return the field data if the field is in the right loaded // state; otherwise we might return intermediate for impl data or // vice versa if (_fieldImpl == null || _loaded.get(field) != isLoaded) return null; int idx = _meta.getExtraFieldDataIndex(field); return (idx == -1) ? null : _fieldImpl[idx]; }
/** * Return the data from the proper index of the extra field data array. */ protected synchronized Object getExtraFieldData(int field, boolean isLoaded) { // only return the field data if the field is in the right loaded // state; otherwise we might return intermediate for impl data or // vice versa if (_fieldImpl == null || _loaded.get(field) != isLoaded) return null; int idx = _meta.getExtraFieldDataIndex(field); return (idx == -1) ? null : _fieldImpl[idx]; }
/** * Return the data from the proper index of the extra field data array. */ protected synchronized Object getExtraFieldData(int field, boolean isLoaded) { // only return the field data if the field is in the right loaded // state; otherwise we might return intermediate for impl data or // vice versa if (_fieldImpl == null || _loaded.get(field) != isLoaded) return null; int idx = _meta.getExtraFieldDataIndex(field); return (idx == -1) ? null : _fieldImpl[idx]; }
/** * Mark the field as loaded or unloaded. */ private void setLoaded(int field, boolean isLoaded) { // don't continue if loaded state is already correct; otherwise we // can end up clearing _fieldImpl when we shouldn't if (_loaded.get(field) == isLoaded) return; // if loading, clear intermediate data; if unloading, clear impl data if (_fieldImpl != null) { int idx = _meta.getExtraFieldDataIndex(field); if (idx != -1) _fieldImpl[idx] = null; } if (isLoaded) _loaded.set(field); else _loaded.clear(field); }
/** * Mark the field as loaded or unloaded. */ private void setLoaded(int field, boolean isLoaded) { // don't continue if loaded state is already correct; otherwise we // can end up clearing _fieldImpl when we shouldn't if (_loaded.get(field) == isLoaded) return; // if loading, clear intermediate data; if unloading, clear impl data if (_fieldImpl != null) { int idx = _meta.getExtraFieldDataIndex(field); if (idx != -1) _fieldImpl[idx] = null; } if (isLoaded) _loaded.set(field); else _loaded.clear(field); }
/** * Mark the field as loaded or unloaded. */ private void setLoaded(int field, boolean isLoaded) { // don't continue if loaded state is already correct; otherwise we // can end up clearing _fieldImpl when we shouldn't if (_loaded.get(field) == isLoaded) return; // if loading, clear intermediate data; if unloading, clear impl data if (_fieldImpl != null) { int idx = _meta.getExtraFieldDataIndex(field); if (idx != -1) _fieldImpl[idx] = null; } if (isLoaded) _loaded.set(field); else _loaded.clear(field); }
/** * Mark the field as loaded or unloaded. */ private void setLoaded(int field, boolean isLoaded) { // don't continue if loaded state is already correct; otherwise we // can end up clearing _fieldImpl when we shouldn't if (_loaded.get(field) == isLoaded) return; // if loading, clear intermediate data; if unloading, clear impl data if (_fieldImpl != null) { int idx = _meta.getExtraFieldDataIndex(field); if (idx != -1) _fieldImpl[idx] = null; } if (isLoaded) _loaded.set(field); else _loaded.clear(field); }
/** * Mark the field as loaded or unloaded. */ private void setLoaded(int field, boolean isLoaded) { // don't continue if loaded state is already correct; otherwise we // can end up clearing _fieldImpl when we shouldn't if (_loaded.get(field) == isLoaded) return; // if loading, clear intermediate data; if unloading, clear impl data if (_fieldImpl != null) { int idx = _meta.getExtraFieldDataIndex(field); if (idx != -1) _fieldImpl[idx] = null; } if (isLoaded) _loaded.set(field); else _loaded.clear(field); }
public synchronized boolean isImplDataCacheable(int field) { if (_fieldImpl == null || !_loaded.get(field)) return false; if (_meta.getField(field).usesImplData() != null) return false; int idx = _meta.getExtraFieldDataIndex(field); return idx != -1 && _fieldImpl[idx] != null; }
public synchronized boolean isImplDataCacheable(int field) { if (_fieldImpl == null || !_loaded.get(field)) return false; if (_meta.getField(field).usesImplData() != null) return false; int idx = _meta.getExtraFieldDataIndex(field); return idx != -1 && _fieldImpl[idx] != null; }
public synchronized boolean isImplDataCacheable(int field) { if (_fieldImpl == null || !_loaded.get(field)) return false; if (_meta.getField(field).usesImplData() != null) return false; int idx = _meta.getExtraFieldDataIndex(field); return idx != -1 && _fieldImpl[idx] != null; }
public synchronized boolean isImplDataCacheable(int field) { if (_fieldImpl == null || !_loaded.get(field)) return false; if (_meta.getField(field).usesImplData() != null) return false; int idx = _meta.getExtraFieldDataIndex(field); return idx != -1 && _fieldImpl[idx] != null; }
public synchronized boolean isImplDataCacheable(int field) { if (_fieldImpl == null || !_loaded.get(field)) return false; if (_meta.getField(field).usesImplData() != null) return false; int idx = _meta.getExtraFieldDataIndex(field); return idx != -1 && _fieldImpl[idx] != null; }
/** * Set the data from to proper index of the extra field data array. */ private synchronized Object setExtraFieldData(int field, Object data, boolean loaded) { int idx = _meta.getExtraFieldDataIndex(field); if (idx == -1) throw new InternalException(String.valueOf(_meta.getField(field))); Object old = (_fieldImpl == null) ? null : _fieldImpl[idx]; if (data != null) { // cannot set if field in wrong loaded state if (_loaded.get(field) != loaded) throw new InternalException(String.valueOf(_meta.getField (field))); // set data if (_fieldImpl == null) _fieldImpl = new Object[_meta.getExtraFieldDataLength()]; _fieldImpl[idx] = data; } else if (_fieldImpl != null && _loaded.get(field) == loaded) _fieldImpl[idx] = null; return old; }
/** * Set the data from to proper index of the extra field data array. */ private synchronized Object setExtraFieldData(int field, Object data, boolean loaded) { int idx = _meta.getExtraFieldDataIndex(field); if (idx == -1) throw new InternalException(String.valueOf(_meta.getField(field))); Object old = (_fieldImpl == null) ? null : _fieldImpl[idx]; if (data != null) { // cannot set if field in wrong loaded state if (_loaded.get(field) != loaded) throw new InternalException(String.valueOf(_meta.getField (field))); // set data if (_fieldImpl == null) _fieldImpl = new Object[_meta.getExtraFieldDataLength()]; _fieldImpl[idx] = data; } else if (_fieldImpl != null && _loaded.get(field) == loaded) _fieldImpl[idx] = null; return old; }
/** * Set the data from to proper index of the extra field data array. */ private synchronized Object setExtraFieldData(int field, Object data, boolean loaded) { int idx = _meta.getExtraFieldDataIndex(field); if (idx == -1) throw new InternalException(String.valueOf(_meta.getField(field))); Object old = (_fieldImpl == null) ? null : _fieldImpl[idx]; if (data != null) { // cannot set if field in wrong loaded state if (_loaded.get(field) != loaded) throw new InternalException(String.valueOf(_meta.getField (field))); // set data if (_fieldImpl == null) _fieldImpl = new Object[_meta.getExtraFieldDataLength()]; _fieldImpl[idx] = data; } else if (_fieldImpl != null && _loaded.get(field) == loaded) _fieldImpl[idx] = null; return old; }
/** * Set the data from to proper index of the extra field data array. */ private synchronized Object setExtraFieldData(int field, Object data, boolean loaded) { int idx = _meta.getExtraFieldDataIndex(field); if (idx == -1) throw new InternalException(String.valueOf(_meta.getField(field))); Object old = (_fieldImpl == null) ? null : _fieldImpl[idx]; if (data != null) { // cannot set if field in wrong loaded state if (_loaded.get(field) != loaded) throw new InternalException(String.valueOf(_meta.getField (field))); // set data if (_fieldImpl == null) _fieldImpl = new Object[_meta.getExtraFieldDataLength()]; _fieldImpl[idx] = data; } else if (_fieldImpl != null && _loaded.get(field) == loaded) _fieldImpl[idx] = null; return old; }
/** * Set the data from to proper index of the extra field data array. */ private synchronized Object setExtraFieldData(int field, Object data, boolean loaded) { int idx = _meta.getExtraFieldDataIndex(field); if (idx == -1) throw new InternalException(String.valueOf(_meta.getField(field))); Object old = (_fieldImpl == null) ? null : _fieldImpl[idx]; if (data != null) { // cannot set if field in wrong loaded state if (_loaded.get(field) != loaded) throw new InternalException(String.valueOf(_meta.getField (field))); // set data if (_fieldImpl == null) _fieldImpl = new Object[_meta.getExtraFieldDataLength()]; _fieldImpl[idx] = data; } else if (_fieldImpl != null && _loaded.get(field) == loaded) _fieldImpl[idx] = null; return old; }