/** * Sets the link type in local data and the database. * * @param sType, the link type for this link. * @exception java.sql.SQLException * @exception com.compendium.core.datamodel.ModelSessionException */ public void setType(String sType) throws SQLException, ModelSessionException { if (this.sType.equals(sType)) return; if (oModel == null) throw new ModelSessionException("Model is null in Link.setType"); if (oSession == null) throw new ModelSessionException("Session is null in Link.setType"); // call link service to update database ILinkService ls = oModel.getLinkService(); ls.setType(oSession, sId, this.sType, sType); setTypeLocal(sType); }