bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) { HibernateCurrentStep step = new HibernateCurrentStep(); HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM ent...
28,007
public WorkflowEntry createEntry(String workflowName) { HibernateWorkflowEntry entry = new HibernateWorkflowEntry(); entry.setState(WorkflowEntry.CREATED); entry.setWorkflowName(workflowName); try { session.save(entry); } catch (HibernateException e) { log.er...
public WorkflowEntry createEntry(String workflowName) throws StoreException { HibernateWorkflowEntry entry = new HibernateWorkflowEntry(); entry.setState(WorkflowEntry.CREATED); entry.setWorkflowName(workflowName); try { session.save(entry); } catch (HibernateException ...
28,008
public WorkflowEntry createEntry(String workflowName) { HibernateWorkflowEntry entry = new HibernateWorkflowEntry(); entry.setState(WorkflowEntry.CREATED); entry.setWorkflowName(workflowName); try { session.save(entry); } catch (HibernateException e) { log.er...
public WorkflowEntry createEntry(String workflowName) { HibernateWorkflowEntry entry = new HibernateWorkflowEntry(); entry.setState(WorkflowEntry.CREATED); entry.setWorkflowName(workflowName); try { session.save(entry); } catch (HibernateException e) { log.er...
28,009
public List findCurrentSteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
public List findCurrentSteps(long entryId) throws StoreException { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } c...
28,010
public List findCurrentSteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
public List findCurrentSteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
28,011
public List findCurrentSteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
public List findCurrentSteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
28,012
public WorkflowEntry findEntry(long entryId) { try { List result = session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG); return (WorkflowEntry) result.get(0); } catch (HibernateException e) { ...
public WorkflowEntry findEntry(long entryId) { try { List result = session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG); return (WorkflowEntry) result.get(0); } catch (HibernateException e) { ...
28,013
public List findHistorySteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
public List findHistorySteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
28,014
public List findHistorySteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
public List findHistorySteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
28,015
public List findHistorySteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
public List findHistorySteps(long entryId) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry in CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(entryId), Hibernate.LONG).get(0); } catch (HibernateExcepti...
28,016
public PropertySet getPropertySet(long entryId) { HashMap args = new HashMap(); args.put("entryName", "OSWorkflowEntry"); args.put("entryId", new Long(entryId)); args.put("session", session); return PropertySetManager.getInstance("hibernate", args); }
public PropertySet getPropertySet(long entryId) { HashMap args = new HashMap(); args.put("entryName", "OSWorkflowEntry"); args.put("entryId", new Long(entryId)); args.put("session", session); return PropertySetManager.getInstance("hibernate", args); }
28,017
public void init(Map props) { }
public void init(Map props) throws StoreException { try { sessionFactory =(SessionFactory) props.get("sessionFactory"); session = sessionFactory.openSession(); } catch (HibernateException he) { log.error("Setting sessionFactory", he); throw new StoreException("Setting sessionFactory", he); } }
28,019
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
28,020
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
28,021
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) { HibernateCurrentStep currentStep = (HibernateCurrentStep) step; currentStep.setActionId(actionId); currentStep.setFinishDate(finishDate); currentStep.setStatus(status); currentStep.s...
28,022
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
28,023
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
28,024
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
28,025
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
28,026
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
28,027
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
28,028
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
public void moveToHistory(Step step) { HibernateWorkflowEntry entry; try { entry = (HibernateWorkflowEntry) session.find("FROM entry IN CLASS " + HibernateWorkflowEntry.class.getName() + " WHERE entry.id = ?", new Long(step.getEntryId()), Hibernate.LONG).get(0); } catch (HibernateExc...
28,029
public List query(WorkflowQuery query) { return null; }
public List query(WorkflowQuery query) { return null; }
28,030
public HibernateHistoryStep(HibernateStep step) { super(step); }
public HibernateHistoryStep(HibernateStep step) { super(step); }
28,031
private boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Step step = getCurrentStep(wf, action.getId(), currentSteps, transientVars, ps); // ...
private boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Step step = getCurrentStep(wf, action.getId(), currentSteps, transientVars, ps); // ...
28,032
public static int fontXHeightForElement(Context context, CalculatedStyle style) { return lineHeight(context, style); }
public static int fontXHeightForElement(Context context, CalculatedStyle style) { return lineHeight(context); }
28,033
public static Font getFont(Context c) { CalculatedStyle style = c.getCurrentStyle(); return getFont(c, style); }
public static Font getFont(Context c) { CalculatedStyle style = c.getCurrentStyle(); Font f = c.getGraphics().getFont(); if (quick) { return f; } float size = style.propertyByName(CSSName.FONT_SIZE).computedValue().asFloat(); String weight = style.propertyByName(CSSName.FONT_WEIGHT).computedValue()....
28,034
public static Rectangle2D getTextBounds(Context c, InlineTextBox box) { CalculatedStyle style = c.getCurrentStyle(); return c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), box.getSubstring()); }
public static Rectangle2D getTextBounds(Context c, InlineTextBox box) { return c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), box.getSubstring()); }
28,035
public static Rectangle2D getTextBounds(Context c, InlineTextBox box) { CalculatedStyle style = c.getCurrentStyle(); return c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), box.getSubstring()); }
public static Rectangle2D getTextBounds(Context c, InlineTextBox box) { CalculatedStyle style = c.getCurrentStyle(); return c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c), box.getSubstring()); }
28,036
public static int lineHeight(Context c, CalculatedStyle style) { int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), "Test").getHeight()); if (style.hasProperty(CSSName.LINE_HEIGHT)) { val = (int) style.getFloatPropertyRelative(CSSName.LINE_HEI...
public static int lineHeight(Context c, CalculatedStyle style) { int val = (int) Math.ceil(c.getTextRenderer().getLogicalBounds(c.getGraphics(), getFont(c, style), "Test").getHeight()); if (style.hasProperty(CSSName.LINE_HEIGHT)) { val = (int) style.getFloatPropertyRelative(CSSName.LINE_HEI...
28,037
public int viewToModel(GlyphView v, float x, float y, Shape a, Bias[] biasRet) { Rectangle b = a.getBounds(); assert b.contains(x, y) : "The coordinates are expected to be within the " + "view's bounds: x=" + x + ", y=" + y ...
public int viewToModel(GlyphView v, float x, float y, Shape a, Bias[] biasRet) { Rectangle b = a.getBounds(); assert b.contains(x, y) : "The coordinates are expected to be within the " + "view's bounds: x=" + x + ", y=" + y ...
28,038
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument()....
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument()....
28,039
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); return 10; }
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); updateMetrics(); float span = 0; Element el = getElement(); Document doc = el.getDocument(); Segment seg = new Segment(); switch (axis) { case X_AXIS: for (int i = 0; i < el.getElementC...
28,040
ServerBrowserEndpoint(ServerSessionEndpoint session, String id, Channel destination, String messageSelector) throws JMSException { this.session = session; this.id = id; Filter filter = null; if (messageSelector != null) { filter = new Selector(mes...
ServerBrowserEndpoint(ServerSessionEndpoint session, int id, Channel destination, String messageSelector) throws JMSException { this.session = session; this.id = id; Filter filter = null; if (messageSelector != null) { filter = new Selector(messag...
28,041
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Browser is already closed"); } iterator = null; session.producers.remove(this.id); Dispatcher.singleton.unregisterTarget(this.id); closed = true; }
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Browser is already closed"); } iterator = null; session.producers.remove(this.id); Dispatcher.singleton.unregisterTarget(this.id); closed = true; }
28,042
public Message nextMessage() throws JMSException { if (closed) { throw new IllegalStateException("Browser is closed"); } Routable r = (Routable)iterator.next(); if (log.isTraceEnabled()) { log.trace("returning the message corresponding to " + r); } return (Message)r.getM...
public Message nextMessage() throws JMSException { if (closed) { throw new IllegalStateException("Browser is closed"); } Routable r = (Routable)iterator.next(); if (trace) { log.trace("returning the message corresponding to " + r); } return (Message)r.getMessage(); }
28,043
public String toString() { return "BrowserEndpoint[" + Util.guidToString(id) + "]"; }
public String toString() { return "BrowserEndpoint[" + id + "]"; }
28,044
public synchronized void checkInResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { throw new IllegalArgumentException("Cannot find resource manager for server: " + serverID); } h.refCount--; if (h.refCount == 0) ...
public synchronized void checkInResourceManager(int serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { throw new IllegalArgumentException("Cannot find resource manager for server: " + serverID); } h.refCount--; if (h.refCount == 0) { ...
28,045
public synchronized void checkInResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { throw new IllegalArgumentException("Cannot find resource manager for server: " + serverID); } h.refCount--; if (h.refCount == 0) ...
public synchronized void checkInResourceManager(String serverID) { Integer in = new Integer(serverID); Holder h = (Holder)holders.get(in); if (h == null) { throw new IllegalArgumentException("Cannot find resource manager for server: " + serverID); } h.refCount--; ...
28,046
public synchronized void checkInResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { throw new IllegalArgumentException("Cannot find resource manager for server: " + serverID); } h.refCount--; if (h.refCount == 0) ...
public synchronized void checkInResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { throw new IllegalArgumentException("Cannot find resource manager for server: " + serverID); } h.refCount--; if (h.refCount == 0) ...
28,047
public synchronized ResourceManager checkOutResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { h = new Holder(); holders.put(serverID, h); } else { h.refCount++; } return h.rm; }
public synchronized ResourceManager checkOutResourceManager(int serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { h = new Holder(); holders.put(serverID, h); } else { h.refCount++; } return h.rm; }
28,048
public synchronized ResourceManager checkOutResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { h = new Holder(); holders.put(serverID, h); } else { h.refCount++; } return h.rm; }
public synchronized ResourceManager checkOutResourceManager(String serverID) { Integer in = new Integer(serverID); Holder h = (Holder)holders.get(in); if (h == null) { h = new Holder(); holders.put(serverID, h); } else { h.refCount++; } ...
28,049
public synchronized ResourceManager checkOutResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { h = new Holder(); holders.put(serverID, h); } else { h.refCount++; } return h.rm; }
public synchronized ResourceManager checkOutResourceManager(String serverID) { Holder h = (Holder)holders.get(serverID); if (h == null) { h = new Holder(); holders.put(in, h); } else { h.refCount++; } return h.rm; }
28,050
public synchronized boolean containsResourceManager(String serverID) { return holders.containsKey(serverID); }
public synchronized boolean containsResourceManager(int serverID) { return holders.containsKey(serverID); }
28,051
public synchronized boolean containsResourceManager(String serverID) { return holders.containsKey(serverID); }
public synchronized boolean containsResourceManager(String serverID) { return holders.containsKey(new Integer(serverID)); }
28,052
public void test1() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Message[] msgs = new Message[241]; MessageReference[] refs = new MessageReference[241]; //Send 99 Transaction tx = createXATx(); ...
public void test1() throws Throwable { Queue queue = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor()); Message[] msgs = new Message[241]; MessageReference[] refs = new MessageReference[241]; //Send 99 Transaction tx = createXATx(); ...
28,053
public Box createBox(Context c, Content content) { AnonymousBlockBox block = new AnonymousBlockBox(text, c); return block; }
public Box createBox(Context c, Content content) { AnonymousBlockBox block = new AnonymousBlockBox(content); return block; }
28,056
public AnonymousBlockBox(Node startNode, Context c) { this.setNode(startNode.getParentNode()); node_list = InlineUtil.getInlineNodeList(startNode, (Element) this.getNode(), c, true); //this should now already have been done: node_list.add(0, startNode); last_node = (Node) node_list.get(n...
public AnonymousBlockBox(Content content) { this.setNode(startNode.getParentNode()); node_list = InlineUtil.getInlineNodeList(startNode, (Element) this.getNode(), c, true); //this should now already have been done: node_list.add(0, startNode); last_node = (Node) node_list.get(node_list.s...
28,057
public AnonymousBlockBox(Node startNode, Context c) { this.setNode(startNode.getParentNode()); node_list = InlineUtil.getInlineNodeList(startNode, (Element) this.getNode(), c, true); //this should now already have been done: node_list.add(0, startNode); last_node = (Node) node_list.get(n...
public AnonymousBlockBox(Node startNode, Context c) { this.setNode(startNode.getParentNode()); node_list = InlineUtil.getInlineNodeList(startNode, (Element) this.getNode(), c, true); //this should now already have been done: node_list.add(0, startNode); last_node = (Node) node_list.get(n...
28,058
protected void init() { queue = RenderQueue.getInstance(); documentListeners = new HashMap(); setBackground(Color.white); super.setLayout(null); layoutThread = new Thread(new LayoutLoop(this), "FlyingSaucer-Layout"); renderThread = new Thread(new RenderLoop(this), "FlyingSa...
protected void init() { queue = new RenderQueue(); documentListeners = new HashMap(); setBackground(Color.white); super.setLayout(null); layoutThread = new Thread(new LayoutLoop(this), "FlyingSaucer-Layout"); renderThread = new Thread(new RenderLoop(this), "FlyingSaucer-Ren...
28,060
public void paint(RenderingContext c, int originX, int originY) { if (getMaster().getStyle().isFixed()) { positionFixedLayer(c); } if ((isRootLayer() && ! isPositionsFinalized()) || getMaster().getStyle().isFixed()) { updateAllAbsoluteLocations(originX, ori...
public void paint(RenderingContext c, int originX, int originY) { if (getMaster().getStyle().isFixed()) { positionFixedLayer(c); } if ((isRootLayer() && ! isPositionsFinalized()) || getMaster().getStyle().isFixed()) { updateAllAbsoluteLocations(originX, ori...
28,061
public int getType() { return JBossObjectMessage.TYPE; }
public byte getType() { return JBossObjectMessage.TYPE; }
28,062
void acknowledge(String messageID, Transaction tx) { if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID); } try { for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (d.getReference().getMessageID().equals...
synchronized void acknowledge(String messageID, Transaction tx) { if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID); } try { for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (d.getReference().getMessa...
28,063
private synchronized void grabMessage() { ready = true; channel.deliver(this); }
private synchronized void grabMessage() { ready = true; channel.deliver(this); }
28,064
public javax.jms.Message receive(long timeout) throws JMSException { if (log.isTraceEnabled()) { log.trace("receive invoked on client, grabbing a message from core"); } grabMessage(); // we return null, the message will arrive asynchronously later return null; }
public javax.jms.Message receive(long timeout) throws JMSException { if (log.isTraceEnabled()) { log.trace("receive invoked on client, grabbing a message from core"); } grabMessage(); // we return null, the message will arrive asynchronously later return null; }
28,065
public void requestMessages() { if (channel == null) { log.error("No channel, cannot request messages"); return; } log.info("receiver explicitely requesting message from the channel"); channel.deliver(true); }
public void requestMessages() { if (channel == null) { log.error("No channel, cannot request messages"); return; } log.trace("receiver explicitely requesting message from the channel"); channel.deliver(true); }
28,066
void sendMessage(Message m) throws JMSException { //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (JBossDestination)m.getJMSDestination(); if (jmsDestination == null) { throw new IllegalStateException("JMSDestination header not s...
void sendMessage(Message m) throws JMSException { //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (JBossDestination)m.getJMSDestination(); if (jmsDestination == null) { throw new IllegalStateException("JMSDestination header not s...
28,068
private static void paintInline(Context c, InlineBox inline, int lx, int ly, LineBox line) { if(InlineLayout.isReplaced(inline.node)) { //u.p("painting a replaced block: " + inline); c.getGraphics().translate( line.x, line.y+(line.baseline-inline.height)); Layout layout ...
private static void paintInline(Context c, InlineBox inline, int lx, int ly, LineBox line) { if(InlineLayout.isReplaced(inline.node)) { //u.p("painting a replaced block: " + inline); c.getGraphics().translate( line.x, line.y+(line.baseline-inline.height)); Layout layout ...
28,069
public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setChildrenExceedBounds(true); Rectangle rect = c.getFixedRectangle(); CalculatedStyle style = c.getCurrentStyle(); ...
public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setChildrenExceedBounds(true); Rectangle rect = c.getFixedRectangle(); CalculatedStyle style = c.getCurrentStyle(); ...
28,071
public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setChildrenExceedBounds(true); Rectangle rect = c.getFixedRectangle(); CalculatedStyle style = c.getCurrentStyle(); ...
public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setChildrenExceedBounds(true); Rectangle rect = c.getFixedRectangle(); CalculatedStyle style = c.getCurrentStyle(); ...
28,072
public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setChildrenExceedBounds(true); Rectangle rect = c.getFixedRectangle(); CalculatedStyle style = c.getCurrentStyle(); ...
public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setChildrenExceedBounds(true); Rectangle rect = c.getFixedRectangle(); CalculatedStyle style = c.getCurrentStyle(); ...
28,073
public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setChildrenExceedBounds(true); Rectangle rect = c.getFixedRectangle(); CalculatedStyle style = c.getCurrentStyle(); ...
public static void setupFixed(Context c, Box box) { if (c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.FIXED)) { box.fixed = true; box.setChildrenExceedBounds(true); Rectangle rect = c.getFixedRectangle(); CalculatedStyle style = c.getCurrentStyle(); ...
28,074
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
28,075
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
28,076
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
28,077
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
28,078
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
28,079
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
28,080
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
28,081
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
28,082
public static void paintBlockContext(Context c, Box box, boolean restyle) { //if (box.getBlockFormattingContext() != null) c.pushBFC(box.getBlockFormattingContext()); c.translate(box.x, box.y); if (box.getBlockFormattingContext() != null) { c.pushBFC(box.getBlockFormattingContext());...
public static void paintBlockContext(Context c, Box box, boolean restyle) { //if (box.getBlockFormattingContext() != null) c.pushBFC(box.getBlockFormattingContext()); c.translate(box.x, box.y); if (box.getBlockFormattingContext() != null) { c.pushBFC(box.getBlockFormattingContext());...
28,083
public static void paintBlockContext(Context c, Box box, boolean restyle) { //if (box.getBlockFormattingContext() != null) c.pushBFC(box.getBlockFormattingContext()); c.translate(box.x, box.y); if (box.getBlockFormattingContext() != null) { c.pushBFC(box.getBlockFormattingContext());...
public static void paintBlockContext(Context c, Box box, boolean restyle) { //if (box.getBlockFormattingContext() != null) c.pushBFC(box.getBlockFormattingContext()); c.translate(box.x, box.y); if (box.getPersistentBFC() != null) { c.pushBFC(box.getBlockFormattingContext()); }...
28,084
public void columnMarginChanged(ChangeEvent event);
void columnMarginChanged(ChangeEvent event);
28,086
public void columnSelectionChanged(ListSelectionEvent event);
void columnSelectionChanged(ListSelectionEvent event);
28,087
public DefaultTableColumnModel() { tableColumns = new Vector(); setSelectionModel(createSelectionModel()); columnMargin = 1; columnSelectionAllowed = false; }
public DefaultTableColumnModel() { tableColumns = new Vector(); selectionModel = createSelectionModel(); selectionModel.addListSelectionListener(this); columnMargin = 1; columnSelectionAllowed = false; }
28,088
void setColumnSelectionAllowed(boolean value);
void setColumnSelectionAllowed(boolean allowed);
28,089
public void tableChanged(TableModelEvent event);
void tableChanged(TableModelEvent event);
28,090
public void add(Serializable channelID, Delivery d) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding delivery " + d + " to channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { ...
public void add(Serializable channelID, Delivery d) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding delivery " + d + " to channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { ...
28,091
protected void addTXRecord(Connection conn, Transaction tx) throws Exception { PreparedStatement ps = null; try { ps = conn.prepareStatement("INSERT INTO TRANSACTION (TRANSACTIONID) values(?)"); ps.setString(1, String.valueOf(tx.getID())); ps.executeUpdate(); } fina...
protected void addTXRecord(Connection conn, Transaction tx) throws Exception { PreparedStatement ps = null; try { String sql = "INSERT INTO TRANSACTION (TRANSACTIONID) values(?)"; ps = conn.prepareStatement(sql); ps.setString(1, String.valueOf(tx.getID())); ps.executeUpdate()...
28,092
protected void addTXRecord(Connection conn, Transaction tx) throws Exception { PreparedStatement ps = null; try { ps = conn.prepareStatement("INSERT INTO TRANSACTION (TRANSACTIONID) values(?)"); ps.setString(1, String.valueOf(tx.getID())); ps.executeUpdate(); } fina...
protected void addTXRecord(Connection conn, Transaction tx) throws Exception { PreparedStatement ps = null; try { ps = conn.prepareStatement("INSERT INTO TRANSACTION (TRANSACTIONID) values(?)"); ps.setString(1, String.valueOf(tx.getID())); int rows = ps.executeUpdate(); if (...
28,093
public void commitTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Committing transaction:" + tx.getID()); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConn...
public void commitTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("updating database for committing transaction " + tx); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { con...
28,094
public void commitTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Committing transaction:" + tx.getID()); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConn...
public void commitTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Committing transaction:" + tx.getID()); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConn...
28,095
public void commitTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Committing transaction:" + tx.getID()); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConn...
public void commitTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Committing transaction:" + tx.getID()); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConn...
28,097
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
28,098
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
28,099
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
public List deliveries(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("listing deliveries for channel: " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); ...
28,100
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper()...
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper()...
28,101
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper()...
public List messages(Serializable channelID) throws Exception { if (log.isTraceEnabled()) { log.trace("Getting message references for channel " + channelID); } Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper()...
28,102
public boolean remove(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new Tr...
public boolean remove(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID + (tx == null ? " non-transactionally" : " on transaction: " + tx));} Connection conn = null; Prepa...
28,103
public boolean remove(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new Tr...
public boolean remove(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new Tr...
28,104
public boolean remove(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new Tr...
public boolean remove(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new Tr...
28,105
public boolean remove(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new Tr...
public boolean remove(Serializable channelID, Delivery d, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID);} Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new Tr...
28,106
protected void removeTXRecord(Connection conn, Transaction tx) throws SQLException { PreparedStatement ps = null; try { ps = conn.prepareStatement("DELETE FROM TRANSACTION WHERE TRANSACTIONID = ?"); ps.setString(1, String.valueOf(tx.getID())); ps.executeUpdate(); } ...
protected void removeTXRecord(Connection conn, Transaction tx) throws SQLException { PreparedStatement ps = null; try { String sql = "DELETE FROM TRANSACTION WHERE TRANSACTIONID = ?"; ps = conn.prepareStatement(sql); ps.setString(1, String.valueOf(tx.getID())); ps.executeUpd...
28,107
protected void removeTXRecord(Connection conn, Transaction tx) throws SQLException { PreparedStatement ps = null; try { ps = conn.prepareStatement("DELETE FROM TRANSACTION WHERE TRANSACTIONID = ?"); ps.setString(1, String.valueOf(tx.getID())); ps.executeUpdate(); } ...
protected void removeTXRecord(Connection conn, Transaction tx) throws SQLException { PreparedStatement ps = null; try { ps = conn.prepareStatement("DELETE FROM TRANSACTION WHERE TRANSACTIONID = ?"); ps.setString(1, String.valueOf(tx.getID())); int rows = ps.executeUpdate(); ...
28,108
public Message retrieve(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; conn = ds.getConnection(); String s...
public Message retrieve(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; conn = ds.getConnection(); String s...
28,109
public void rollbackTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Rolling back transaction:" + tx.getID()); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.get...
public void rollbackTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Rolling back transaction:" + tx.getID()); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.get...
28,111
public void rollbackTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Rolling back transaction:" + tx.getID()); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.get...
public void rollbackTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Rolling back transaction:" + tx.getID()); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.get...
28,112
public void store(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); String sql = "INSERT INTO MESSAGE VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ...
public void store(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); String sql = "INSERT INTO MESSAGE VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ...
28,114
Object getObject(String columnName) throws SQLException;
Object getObject(int columnIndex) throws SQLException;
28,115
void setBoolean(int parameterIndex, boolean x) throws SQLException;
void setBoolean(int index, boolean value) throws SQLException;
28,116