public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) { // if no class indicator or a final class, just append true or false // depending on whether the cast matches the expected type InstanceofExpState istate = (InstanceofExpState) state; if (istate.discrim == null) { if (_cls.isAssignableFrom(istate.rel)) sql.append("1 = 1"); else sql.append("1 <> 1"); } else { ctx.store.loadSubclasses(istate.discrim.getClassMapping()); SQLBuffer buf = istate.discrim.getClassConditions(sel, istate.joins, istate.mapping, true); sql.append(buf); } sel.append(sql, istate.joins); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) { // if no class indicator or a final class, just append true or false // depending on whether the cast matches the expected type InstanceofExpState istate = (InstanceofExpState) state; if (istate.discrim == null) { if (_cls.isAssignableFrom(istate.rel)) sql.append("1 = 1"); else sql.append("1 <> 1"); } else { ctx.store.loadSubclasses(istate.discrim.getClassMapping()); SQLBuffer buf = istate.discrim.getClassConditions(sel, istate.joins, istate.mapping, true); sql.append(buf); } sel.append(sql, istate.joins); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) { // if no class indicator or a final class, just append true or false // depending on whether the cast matches the expected type InstanceofExpState istate = (InstanceofExpState) state; if (istate.discrim == null) { if (_cls.isAssignableFrom(istate.rel)) sql.append("1 = 1"); else sql.append("1 <> 1"); } else { ctx.store.loadSubclasses(istate.discrim.getClassMapping()); SQLBuffer buf = istate.discrim.getClassConditions(sel, istate.joins, istate.mapping, true); sql.append(buf); } sel.append(sql, istate.joins); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) { // if no class indicator or a final class, just append true or false // depending on whether the cast matches the expected type InstanceofExpState istate = (InstanceofExpState) state; if (istate.discrim == null) { if (_cls.isAssignableFrom(istate.rel)) sql.append("1 = 1"); else sql.append("1 <> 1"); } else { ctx.store.loadSubclasses(istate.discrim.getClassMapping()); SQLBuffer buf = istate.discrim.getClassConditions(sel, istate.joins, istate.mapping, true); sql.append(buf); } sel.append(sql, istate.joins); }
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql) { // if no class indicator or a final class, just append true or false // depending on whether the cast matches the expected type InstanceofExpState istate = (InstanceofExpState) state; if (istate.discrim == null) { if (_cls.isAssignableFrom(istate.rel)) sql.append("1 = 1"); else sql.append("1 <> 1"); } else { ctx.store.loadSubclasses(istate.discrim.getClassMapping()); SQLBuffer buf = istate.discrim.getClassConditions(sel, istate.joins, istate.mapping, true); sql.append(buf); } sel.append(sql, istate.joins); }
ctx.store.loadSubclasses(mapping); mapping.getDiscriminator().addClassConditions((inner != null) ? inner : sel, subclasses, joins);
ctx.store.loadSubclasses(mapping); mapping.getDiscriminator().addClassConditions((inner != null) ? inner : sel, subclasses, joins);
ctx.store.loadSubclasses(mapping); mapping.getDiscriminator().addClassConditions((inner != null) ? inner : sel, subclasses, joins);
ctx.store.loadSubclasses(mapping); mapping.getDiscriminator().addClassConditions((inner != null) ? inner : sel, subclasses, joins);
ctx.store.loadSubclasses(mapping); mapping.getDiscriminator().addClassConditions((inner != null) ? inner : sel, subclasses, joins);