public void stopCaching(String cls) { MetaDataRepository mdr = _conf.getMetaDataRepositoryInstance(); ClassMetaData cmd = mdr.getCachedMetaData(cls); _cacheable.put(cmd, Boolean.FALSE); }
public void stopCaching(String cls) { MetaDataRepository mdr = _conf.getMetaDataRepositoryInstance(); ClassMetaData cmd = mdr.getCachedMetaData(cls); _cacheable.put(cmd, Boolean.FALSE); }
public void stopCaching(String cls) { MetaDataRepository mdr = _conf.getMetaDataRepositoryInstance(); ClassMetaData cmd = mdr.getCachedMetaData(cls); _cacheable.put(cmd, Boolean.FALSE); }
public void stopCaching(String cls) { MetaDataRepository mdr = _conf.getMetaDataRepositoryInstance(); ClassMetaData cmd = mdr.getCachedMetaData(cls); _cacheable.put(cmd, Boolean.FALSE); }
public void startCaching(String cls) { MetaDataRepository mdr = _conf.getMetaDataRepositoryInstance(); ClassMetaData cmd = mdr.getCachedMetaData(cls); _cacheable.put(cmd, Boolean.TRUE); }
public void startCaching(String cls) { MetaDataRepository mdr = _conf.getMetaDataRepositoryInstance(); ClassMetaData cmd = mdr.getCachedMetaData(cls); _cacheable.put(cmd, Boolean.TRUE); }
public void startCaching(String cls) { MetaDataRepository mdr = _conf.getMetaDataRepositoryInstance(); ClassMetaData cmd = mdr.getCachedMetaData(cls); _cacheable.put(cmd, Boolean.TRUE); }
public void startCaching(String cls) { MetaDataRepository mdr = _conf.getMetaDataRepositoryInstance(); ClassMetaData cmd = mdr.getCachedMetaData(cls); _cacheable.put(cmd, Boolean.TRUE); }
private boolean startDataCache(Attributes attrs) throws SAXException { String enabledStr = attrs.getValue("enabled"); boolean enabled = (Boolean) (StringUtils.isEmpty(enabledStr) ? true : Boolean.parseBoolean(enabledStr)); String timeoutStr = attrs.getValue("timeout"); int timeout = (Integer) (StringUtils.isEmpty(timeoutStr) ? Integer.MIN_VALUE : Integer.parseInt(timeoutStr)); String name = attrs.getValue("name"); name = StringUtils.isEmpty(name) ? "" : name; AnnotationPersistenceMetaDataParser.parseDataCache(getRepository().getCachedMetaData(_cls), enabled, name, timeout); return true; }
private NonPersistentMetaData addPersistenceAwareInternal(Class<?> cls) { if (_pawares.containsKey(cls)) return (NonPersistentMetaData) _pawares.get(cls); if (getCachedMetaData(cls) != null) throw new MetaDataException(_loc.get("pc-and-aware", cls)); NonPersistentMetaData meta = new NonPersistentMetaData(cls, this, NonPersistentMetaData.TYPE_PERSISTENCE_AWARE); _pawares.put(cls, meta); return meta; }
private NonPersistentMetaData addNonMappedInterfaceInternal(Class<?> iface) { if (_nonMapped.containsKey(iface)) return (NonPersistentMetaData) _nonMapped.get(iface); if (getCachedMetaData(iface) != null) throw new MetaDataException(_loc.get("non-mapped-pc", iface)); NonPersistentMetaData meta = new NonPersistentMetaData(iface, this, NonPersistentMetaData.TYPE_NON_MAPPED_INTERFACE); _nonMapped.put(iface, meta); return meta; }
private NonPersistentMetaData addPersistenceAwareInternal(Class<?> cls) { if (_pawares.containsKey(cls)) return (NonPersistentMetaData) _pawares.get(cls); if (getCachedMetaData(cls) != null) throw new MetaDataException(_loc.get("pc-and-aware", cls)); NonPersistentMetaData meta = new NonPersistentMetaData(cls, this, NonPersistentMetaData.TYPE_PERSISTENCE_AWARE); _pawares.put(cls, meta); return meta; }
private NonPersistentMetaData addNonMappedInterfaceInternal(Class<?> iface) { if (_nonMapped.containsKey(iface)) return (NonPersistentMetaData) _nonMapped.get(iface); if (getCachedMetaData(iface) != null) throw new MetaDataException(_loc.get("non-mapped-pc", iface)); NonPersistentMetaData meta = new NonPersistentMetaData(iface, this, NonPersistentMetaData.TYPE_NON_MAPPED_INTERFACE); _nonMapped.put(iface, meta); return meta; }
private NonPersistentMetaData addNonMappedInterfaceInternal(Class<?> iface) { if (_nonMapped.containsKey(iface)) return (NonPersistentMetaData) _nonMapped.get(iface); if (getCachedMetaData(iface) != null) throw new MetaDataException(_loc.get("non-mapped-pc", iface)); NonPersistentMetaData meta = new NonPersistentMetaData(iface, this, NonPersistentMetaData.TYPE_NON_MAPPED_INTERFACE); _nonMapped.put(iface, meta); return meta; }
private NonPersistentMetaData addNonMappedInterfaceInternal(Class<?> iface) { if (_nonMapped.containsKey(iface)) return (NonPersistentMetaData) _nonMapped.get(iface); if (getCachedMetaData(iface) != null) throw new MetaDataException(_loc.get("non-mapped-pc", iface)); NonPersistentMetaData meta = new NonPersistentMetaData(iface, this, NonPersistentMetaData.TYPE_NON_MAPPED_INTERFACE); _nonMapped.put(iface, meta); return meta; }
private NonPersistentMetaData addPersistenceAwareInternal(Class<?> cls) { if (_pawares.containsKey(cls)) return (NonPersistentMetaData) _pawares.get(cls); if (getCachedMetaData(cls) != null) throw new MetaDataException(_loc.get("pc-and-aware", cls)); NonPersistentMetaData meta = new NonPersistentMetaData(cls, this, NonPersistentMetaData.TYPE_PERSISTENCE_AWARE); _pawares.put(cls, meta); return meta; }
private NonPersistentMetaData addPersistenceAwareInternal(Class<?> cls) { if (_pawares.containsKey(cls)) return (NonPersistentMetaData) _pawares.get(cls); if (getCachedMetaData(cls) != null) throw new MetaDataException(_loc.get("pc-and-aware", cls)); NonPersistentMetaData meta = new NonPersistentMetaData(cls, this, NonPersistentMetaData.TYPE_PERSISTENCE_AWARE); _pawares.put(cls, meta); return meta; }
ClassMetaData getCachedSuperclassMetaData(ClassMetaData meta) { if (meta == null) return null; Class<?> cls = meta.getDescribedType(); Class<?> sup = cls.getSuperclass(); if (sup == null || "java.lang.Object".equals( sup.getName())) return null; MetaDataRepository repos = meta.getRepository(); ClassMetaData supMeta = repos.getCachedMetaData(sup); if (supMeta == null) supMeta = repos.getMetaData(sup, null, false); return supMeta; }
ClassMetaData getCachedSuperclassMetaData(ClassMetaData meta) { if (meta == null) return null; Class<?> cls = meta.getDescribedType(); Class<?> sup = cls.getSuperclass(); if (sup == null || "java.lang.Object".equals( sup.getName())) return null; MetaDataRepository repos = meta.getRepository(); ClassMetaData supMeta = repos.getCachedMetaData(sup); if (supMeta == null) supMeta = repos.getMetaData(sup, null, false); return supMeta; }
private boolean startDataCache(Attributes attrs) throws SAXException { String enabledStr = attrs.getValue("enabled"); boolean enabled = (Boolean) (StringUtil.isEmpty(enabledStr) ? true : Boolean.parseBoolean(enabledStr)); String timeoutStr = attrs.getValue("timeout"); int timeout = (Integer) (StringUtil.isEmpty(timeoutStr) ? Integer.MIN_VALUE : Integer.parseInt(timeoutStr)); String name = attrs.getValue("name"); name = StringUtil.isEmpty(name) ? "" : name; AnnotationPersistenceMetaDataParser.parseDataCache(getRepository().getCachedMetaData(_cls), enabled, name, timeout); return true; }