public void setDiscriminator(Discriminator owner) { // mark subs loaded immediately since we know there's nothing to do // to load them owner.setSubclassesLoaded(true); } }
public void setDiscriminator(Discriminator owner) { // mark subs loaded immediately since we know there's nothing to do // to load them owner.setSubclassesLoaded(true); } }
public void setDiscriminator(Discriminator owner) { // mark subs loaded immediately since we know there's nothing to do // to load them owner.setSubclassesLoaded(true); } }
public void setDiscriminator(Discriminator owner) { // mark subs loaded immediately since we know there's nothing to do // to load them owner.setSubclassesLoaded(true); } }
public void setDiscriminator(Discriminator owner) { // mark subs loaded immediately since we know there's nothing to do // to load them owner.setSubclassesLoaded(true); } }
public void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException { disc.getClassMapping().getPCSuperclassMapping(). getDiscriminator().loadSubclasses(store); disc.setSubclassesLoaded(true); }
public void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException { disc.getClassMapping().getPCSuperclassMapping(). getDiscriminator().loadSubclasses(store); disc.setSubclassesLoaded(true); }
public void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException { disc.getClassMapping().getPCSuperclassMapping(). getDiscriminator().loadSubclasses(store); disc.setSubclassesLoaded(true); }
public void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException { disc.getClassMapping().getPCSuperclassMapping(). getDiscriminator().loadSubclasses(store); disc.setSubclassesLoaded(true); }
public void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException { disc.getClassMapping().getPCSuperclassMapping(). getDiscriminator().loadSubclasses(store); disc.setSubclassesLoaded(true); }
/** * By default, logs a warning that this discriminator cannot calculate * its list of subclasses on its own. */ public void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException { if (!isFinal) { Log log = disc.getMappingRepository().getLog(); if (log.isWarnEnabled()) log.warn(_loc.get("cant-init-subs", disc.getClassMapping())); } // don't need to call this method again disc.setSubclassesLoaded(true); }
/** * By default, logs a warning that this discriminator cannot calculate * its list of subclasses on its own. */ public void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException { if (!isFinal) { Log log = disc.getMappingRepository().getLog(); if (log.isWarnEnabled()) log.warn(_loc.get("cant-init-subs", disc.getClassMapping())); } // don't need to call this method again disc.setSubclassesLoaded(true); }
/** * By default, logs a warning that this discriminator cannot calculate * its list of subclasses on its own. */ public void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException { if (!isFinal) { Log log = disc.getMappingRepository().getLog(); if (log.isWarnEnabled()) log.warn(_loc.get("cant-init-subs", disc.getClassMapping())); } // don't need to call this method again disc.setSubclassesLoaded(true); }
/** * By default, logs a warning that this discriminator cannot calculate * its list of subclasses on its own. */ public void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException { if (!isFinal) { Log log = disc.getMappingRepository().getLog(); if (log.isWarnEnabled()) log.warn(_loc.get("cant-init-subs", disc.getClassMapping())); } // don't need to call this method again disc.setSubclassesLoaded(true); }
/** * By default, logs a warning that this discriminator cannot calculate * its list of subclasses on its own. */ public void loadSubclasses(JDBCStore store) throws SQLException, ClassNotFoundException { if (!isFinal) { Log log = disc.getMappingRepository().getLog(); if (log.isWarnEnabled()) log.warn(_loc.get("cant-init-subs", disc.getClassMapping())); } // don't need to call this method again disc.setSubclassesLoaded(true); }
/** * 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); } }