Subversion Repositories XServices

Rev

Rev 39 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 39 Rev 42
Line 137... Line 137...
137
							SBMConnectorPlugin.PLUGIN_ID, e.getMessage(), e));
137
							SBMConnectorPlugin.PLUGIN_ID, e.getMessage(), e));
138
		} 
138
		} 
139
		return list;
139
		return list;
140
	}
140
	}
Line 141... Line 141...
141
	
141
	
142
	public int getResultCount(String tablename, String sql) throws CoreException {
142
	public List<String> getResultCount(String tablename, String sql) throws CoreException {
-
 
143
		List<TTItem> list = new ArrayList<TTItem>();
143
		List<TTItem> list = new ArrayList<TTItem>();
144
		List<String> idlist = new ArrayList<String>();
144
		try {
145
		try {
145
			list = port.getItemsByQueryWithName(
146
			list = port.getItemsByQueryWithName(
146
					getAuth(), 
147
					getAuth(), 
147
					tablename, 
148
					tablename, 
Line 152... Line 153...
152
		} catch (AEWebservicesFaultFault e) {
153
		} catch (AEWebservicesFaultFault e) {
153
			throw new CoreException(
154
			throw new CoreException(
154
					RepositoryStatus.createInternalError(
155
					RepositoryStatus.createInternalError(
155
							SBMConnectorPlugin.PLUGIN_ID, e.getMessage(), e));
156
							SBMConnectorPlugin.PLUGIN_ID, e.getMessage(), e));
156
		}
157
		}
-
 
158
		for (TTItem item : list) {
-
 
159
			idlist.add(item.getGenericItem().getValue().getItemID().getValue());
-
 
160
		}
157
		return list.size();
161
		return idlist;
158
	}
162
	}
Line 159... Line 163...
159
	
163
	
160
	/**
164
	/**
161
	 * Gets a SBM item specified by its internal identifier ([tableid:recordid])
165
	 * Gets a SBM item specified by its internal identifier ([tableid:recordid])