public static void setNodeValue(Node node, String nodeValue) throws DOMException { node.setText(nodeValue); }
public void setToXMLNode(Node node, Object value, SessionFactoryImplementor factory) throws HibernateException { node.setText( toString( value ) ); }
public static void setNodeValue(Node node, String nodeValue) throws DOMException { node.setText(nodeValue); }
public void setToXMLNode(Node node, Object value, SessionFactoryImplementor factory) { if (value!=null) { Clob clob = (Clob) value; try { int len = (int) clob.length(); node.setText( clob.getSubString(0, len) ); } catch (SQLException sqle) { throw new HibernateException("could not read XML from Clob", sqle); } } }
public void setToXMLNode(Node node, Object value, SessionFactoryImplementor factory) throws HibernateException { node.setText( toXMLString(value, factory) ); }
public void setToXMLNode(Node node, Object value, SessionFactoryImplementor factory) { if (value!=null) { Clob clob = (Clob) value; try { int len = (int) clob.length(); node.setText( clob.getSubString(0, len) ); } catch (SQLException sqle) { throw new HibernateException("could not read XML from Clob", sqle); } } }
public void setPositionCode(String positionCode) throws Exception { this.document.selectSingleNode(ConstantsTools.XPATH_POSITION_CODE).setText(positionCode); writeToXml(); } }
public void setAutoBak(String autoBak) throws Exception { this.document.selectSingleNode(ConstantsTools.XPATH_AUTO_BAK).setText(autoBak); writeToXml(); }
public void setDebugMode(String debugMode) throws Exception { this.document.selectSingleNode(ConstantsTools.XPATH_DEBUG_MODE).setText(debugMode); writeToXml(); }
public void setLastKeepTime(String lastKeepTime) throws Exception { this.document.selectSingleNode(ConstantsTools.XPATH_LAST_KEEP_TIME).setText(lastKeepTime); writeToXml(); }
public void setUserFrom(String userFrom) throws Exception { this.document.selectSingleNode(ConstantsTools.XPATH_USER_FROM).setText(userFrom); writeToXml(); }
public void setTypeTo(String typeTo) throws Exception { this.document.selectSingleNode(ConstantsTools.XPATH_TYPE_TO).setText(typeTo); writeToXml(); }
public void setUserTo(String userTo) throws Exception { this.document.selectSingleNode(ConstantsTools.XPATH_USER_TO).setText(userTo); writeToXml(); }
public void setProductName(String productName) throws Exception { this.document.selectSingleNode(ConstantsTools.XPATH_PRODUCT_NAME).setText(productName); writeToXml(); }
public void setLastSyncTime(String lastSyncTime) throws Exception { this.document.selectSingleNode(ConstantsTools.XPATH_LAST_SYNC_TIME).setText(lastSyncTime); writeToXml(); }
public void setSuccessTime(String successTime) throws Exception { this.document.selectSingleNode(ConstantsTools.XPATH_SUCCESS_TIME).setText(successTime); writeToXml(); }
public void setHostFrom(String hostFrom) throws Exception { this.document.selectSingleNode(ConstantsTools.XPATH_HOST_FROM).setText(hostFrom); writeToXml(); }
public static void pausedTriggerInConfig(String triggerName) throws Exception { Document document = getConfigDocument(); Node node_desc = document.selectSingleNode("/beans/bean[@id='" + triggerName + "']/property[@name='description']/@value"); String content = node_desc.getText(); if (content == null) { content = ""; } node_desc.setText(content + PAUSED_FLAG); saveConfig(document); }
public void testSetText1() throws Exception { String newURL = "newURL"; Node urlNode = document.selectSingleNode("//root/author[1]/url"); urlNode.setText(newURL); assertEquals(newURL, urlNode.getText()); assertTrue(urlNode instanceof Element); Element urlElement = (Element) urlNode; assertEquals(0, urlElement.elements().size()); }
public void testSetText2() throws Exception { String newName = "Strachem James"; Node authorNode = document.selectSingleNode("//root/author[1]"); authorNode.setText(newName); assertEquals(newName, authorNode.getText()); assertTrue(authorNode instanceof Element); Element urlElement = (Element) authorNode; assertEquals(1, urlElement.elements().size()); } }