Code example for ResultSet

Methods: getObject

0
			stmt.setDouble(param, d);
		} 
	} 
 
	public static  Double getDouble(ResultSet rs, int i) throws SQLException {
		Double d = (Double) rs.getObject(i);
		return d;
	} 
	 
	public static  UUID getOwnerId(BaseResource file) {
		if (file instanceof User) {
			return file.getNameNodeId();
		} else if (file instanceof Web) {
			return file.getNameNodeId();
		} else { 
			Folder parent = file.getParent();
			if (parent != null) {
				return getOwnerId(parent);
			} else { 
				return null; 
			}