/** * Whether this Discriminator has loaded subclasses yet. */ public boolean getSubclassesLoaded() { if (!_subsLoaded) { ClassMapping sup = _mapping.getPCSuperclassMapping(); if (sup != null && sup.getDiscriminator().getSubclassesLoaded()) _subsLoaded = true; } return _subsLoaded; }
/** * Whether this Discriminator has loaded subclasses yet. */ public boolean getSubclassesLoaded() { if (!_subsLoaded) { ClassMapping sup = _mapping.getPCSuperclassMapping(); if (sup != null && sup.getDiscriminator().getSubclassesLoaded()) _subsLoaded = true; } return _subsLoaded; }
/** * Whether this Discriminator has loaded subclasses yet. */ public boolean getSubclassesLoaded() { if (!_subsLoaded) { ClassMapping sup = _mapping.getPCSuperclassMapping(); if (sup != null && sup.getDiscriminator().getSubclassesLoaded()) _subsLoaded = true; } return _subsLoaded; }
/** * Whether this Discriminator has loaded subclasses yet. */ public boolean getSubclassesLoaded() { if (!_subsLoaded) { ClassMapping sup = _mapping.getPCSuperclassMapping(); if (sup != null && sup.getDiscriminator().getSubclassesLoaded()) _subsLoaded = true; } return _subsLoaded; }
/** * Whether this Discriminator has loaded subclasses yet. */ public boolean getSubclassesLoaded() { if (!_subsLoaded) { ClassMapping sup = _mapping.getPCSuperclassMapping(); if (sup != null && sup.getDiscriminator().getSubclassesLoaded()) _subsLoaded = true; } return _subsLoaded; }
/** * Makes sure all subclasses of the given type are loaded in the JVM. * This is usually done automatically. */ public void loadSubclasses(ClassMapping mapping) { Discriminator dsc = mapping.getDiscriminator(); if (dsc.getSubclassesLoaded()) return; // if the subclass list is set, no need to load subs if (mapping.getRepository().getPersistentTypeNames(false, _ctx.getClassLoader()) != null) { dsc.setSubclassesLoaded(true); return; } try { dsc.loadSubclasses(this); } catch (ClassNotFoundException cnfe) { throw new StoreException(cnfe); } catch (SQLException se) { throw SQLExceptions.getStore(se, _dict); } }
/** * Makes sure all subclasses of the given type are loaded in the JVM. * This is usually done automatically. */ public void loadSubclasses(ClassMapping mapping) { Discriminator dsc = mapping.getDiscriminator(); if (dsc.getSubclassesLoaded()) return; // if the subclass list is set, no need to load subs if (mapping.getRepository().getPersistentTypeNames(false, _ctx.getClassLoader()) != null) { dsc.setSubclassesLoaded(true); return; } try { dsc.loadSubclasses(this); } catch (ClassNotFoundException cnfe) { throw new StoreException(cnfe); } catch (SQLException se) { throw SQLExceptions.getStore(se, _dict); } }
/** * Makes sure all subclasses of the given type are loaded in the JVM. * This is usually done automatically. */ public void loadSubclasses(ClassMapping mapping) { Discriminator dsc = mapping.getDiscriminator(); if (dsc.getSubclassesLoaded()) return; // if the subclass list is set, no need to load subs if (mapping.getRepository().getPersistentTypeNames(false, _ctx.getClassLoader()) != null) { dsc.setSubclassesLoaded(true); return; } try { dsc.loadSubclasses(this); } catch (ClassNotFoundException cnfe) { throw new StoreException(cnfe); } catch (SQLException se) { throw SQLExceptions.getStore(se, _dict); } }
/** * Makes sure all subclasses of the given type are loaded in the JVM. * This is usually done automatically. */ public void loadSubclasses(ClassMapping mapping) { Discriminator dsc = mapping.getDiscriminator(); if (dsc.getSubclassesLoaded()) return; // if the subclass list is set, no need to load subs if (mapping.getRepository().getPersistentTypeNames(false, _ctx.getClassLoader()) != null) { dsc.setSubclassesLoaded(true); return; } try { dsc.loadSubclasses(this); } catch (ClassNotFoundException cnfe) { throw new StoreException(cnfe); } catch (SQLException se) { throw SQLExceptions.getStore(se, _dict); } }
/** * Makes sure all subclasses of the given type are loaded in the JVM. * This is usually done automatically. */ public void loadSubclasses(ClassMapping mapping) { Discriminator dsc = mapping.getDiscriminator(); if (dsc.getSubclassesLoaded()) return; // if the subclass list is set, no need to load subs if (mapping.getRepository().getPersistentTypeNames(false, _ctx.getClassLoader()) != null) { dsc.setSubclassesLoaded(true); return; } try { dsc.loadSubclasses(this); } catch (ClassNotFoundException cnfe) { throw new StoreException(cnfe); } catch (SQLException se) { throw SQLExceptions.getStore(se, _dict); } }