Skip to content

Commit

Permalink
olingo: converted all tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rareddy committed Oct 10, 2014
1 parent ad08f09 commit 98f4009
Show file tree
Hide file tree
Showing 24 changed files with 3,033 additions and 2,767 deletions.
2 changes: 1 addition & 1 deletion olingo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<parent>
<artifactId>teiid-parent</artifactId>
<groupId>org.jboss.teiid</groupId>
<version>8.9.0.Alpha3-SNAPSHOT</version>
<version>8.9.0.Beta2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
46 changes: 21 additions & 25 deletions olingo/src/main/java/org/teiid/olingo/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
* See the COPYRIGHT.txt file distributed with this work for information
* regarding copyright ownership. Some portions may be licensed
* to Red Hat, Inc. under one or more contributor license agreements.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
Expand All @@ -34,41 +34,37 @@
import org.teiid.query.sql.lang.Query;

public interface Client {
VDBMetaData getVDB();

MetadataStore getMetadataStore();

BaseResponse executeCall(String sql, List<SQLParam> sqlParams, SingletonPrimitiveType returnType);

void executeSQL(Query query, List<SQLParam> parameters, boolean countQuery, Integer skip, Integer top, QueryResponse respose);

CountResponse executeCount(Query query, List<SQLParam> parameters);

UpdateResponse executeUpdate(Command command, List<SQLParam> parameters);

String getProperty(String name);
VDBMetaData getVDB();
MetadataStore getMetadataStore();
BaseResponse executeCall(String sql, List<SQLParam> sqlParams,
SingletonPrimitiveType returnType);
void executeSQL(Query query, List<SQLParam> parameters, boolean countQuery,
Integer skip, Integer top, QueryResponse respose);
CountResponse executeCount(Query query, List<SQLParam> parameters);
UpdateResponse executeUpdate(Command command, List<SQLParam> parameters);
String getProperty(String name);
}

interface UpdateResponse {
Map<String, Object> getGeneratedKeys();
int getUpdateCount();
Map<String, Object> getGeneratedKeys();
int getUpdateCount();
}

interface CountResponse {
long getCount();
long getCount();
}

interface BaseResponse {
}

interface ProjectedColumn {
String getName();
boolean isVisible();
String getName();
boolean isVisible();
}

interface QueryResponse {
void addRow(ResultSet rs) throws SQLException, TeiidException;
long size();
void setCount(long count);
void setNext(long row);
void addRow(ResultSet rs) throws SQLException, TeiidException;
long size();
void setCount(long count);
void setNext(long row);
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,21 @@
import javax.servlet.http.HttpServletRequest;

public class ContextAwareHttpSerlvetRequest extends HttpServletRequestDelegate {
private String contextPath;

public ContextAwareHttpSerlvetRequest(HttpServletRequest delegate) {
super(delegate);
}

public void setContextPath(String path) {
this.contextPath = path;
}

public String getContextPath() {
if (contextPath != null) {
return contextPath;
}
return super.getContextPath();
}
private String contextPath;

public ContextAwareHttpSerlvetRequest(HttpServletRequest delegate) {
super(delegate);
}

public void setContextPath(String path) {
this.contextPath = path;
}

@Override
public String getContextPath() {
if (contextPath != null) {
return contextPath;
}
return super.getContextPath();
}
}

0 comments on commit 98f4009

Please sign in to comment.