// Path: src/main/java/in/cubestack/android/lib/storm/core/StormException.java
// public class StormException extends Exception {
// 
// 	private static final long serialVersionUID = -563476450614494464L;
// 
// 	public StormException(Throwable throwable) {
// 		super(throwable);
// 	}
// 	
// 	public StormException(String msg) {
// 		super(msg);
// 	}
// 
// 	public StormException(String msg, Exception exception) {
// 		super(msg, exception);
// 	}
// 	
// 	
// }
// 
// Path: src/main/java/in/cubestack/android/lib/storm/criteria/Order.java
// public class Order {
// 
// 	private SortOrder sortOrder;
// 	private String orderSql;
// 	private TableInformation information;
// 	private QueryGenerator queryGenerator = new QueryGenerator();
// 
// 	public Order(SortOrder order, TableInformation information) {
// 		this.sortOrder = order;
// 		this.information = information;
// 	}
// 
// 	public static <T> Order orderFor(Class<T> entity, String[] props, SortOrder sortOrder) {
// 		try {
// 			TableInformation information = EntityMetaDataCache.getMetaData(entity);
// 			Order order = new Order(sortOrder, information);
// 			validate(props, information);
// 			order.addProperty(props);
// 			return order;
// 		} catch (Exception e) {
// 			throw new StormRuntimeException("Invalid entity, please check your mapppings for " + entity, e);
// 		}
// 	}
// 
// 	private static void validate(String[] props, TableInformation tabInformation) {
// 		for(String prop: props) {
// 			ColumnMetaData columnInfo = tabInformation.getColumnMetaData(prop);
// 			if(columnInfo == null) {
// 				throw new StormRuntimeException("Could not find column mapped to alias " + prop +". Pl check your mapppings for " + tabInformation.getMappedClass());
// 			}
// 		}
// 	}
// 
// 	public void addProperty(String[] props) {
// 		orderSql = queryGenerator.orderBy(props, information, sortOrder);
// 	}
// 
// 	public String orderSql() {
// 		return orderSql;
// 	}
// 
// }
// 
// Path: src/main/java/in/cubestack/android/lib/storm/criteria/Projection.java
// public interface Projection {
// 	
// 	Projection add(String property);
// 	
// 	Projection sum(String property);
// 	
// 	Projection count(String property);
// 
// 	Projection max(String property);
// 	
// 	Projection min(String property);
// 
// 	Projection average(String property);
// 
// 	Projection total(String property);
// 	
// 	List<SQLFunction> getAggregateFunctions() ;
// 	List<String> getColumns();
// }
// 
// Path: src/main/java/in/cubestack/android/lib/storm/criteria/Restriction.java
// public interface Restriction {
// 
// 	public String toSqlString();
// 
// 	boolean valueStored();
// 
// 	String[] values();
// 
// 	Restriction page(int page);
// 
// 	Restriction limit(int offset, int limit);
// 
// 	public Object sqlString(Order order);
// 	
// 	public TableInformation getTableInformation();
// }
// 
// Path: src/main/java/in/cubestack/android/lib/storm/criteria/Restrictions.java
// public interface Restrictions {
// 
// 	public Restriction equals(String property, Object value);
// 
// 	public Restriction notEquals(String property, Object value);
// 
// 	public Restriction lessThen(String property, Object value);
// 
// 	public Restriction greaterThen(String property, Object value);
// 
// 	public Restriction like(String property, String value);
// 
// 	public Restriction likeIgnoreCase(String property, String value);
// 
// 	public Restriction or(Restriction expression1, Restriction expression2);
// 
// 	public Restriction and(Restriction expression1, Restriction expression2);
// 
// 	public Projection projection();
// 
// 	Restriction isNull(String property);
// 
// 	Restriction notNull(String property);
// 
// 	Restriction forAll();
// 
// 	Restriction in(String property, List<String> value);
// }


import in.cubestack.android.lib.storm.core.StormException;
import in.cubestack.android.lib.storm.criteria.Order;
import in.cubestack.android.lib.storm.criteria.Projection;
import in.cubestack.android.lib.storm.criteria.Restriction;
import in.cubestack.android.lib.storm.criteria.Restrictions;
import java.util.Collection;
import java.util.List;

package in.cubestack.android.lib.storm.service;



/**
 * A core Android SQLite ORM framework build for speed and raw execution.
 * Copyright (c) 2014 CubeStack. Version built for Flash Back..
 * <p/>
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * <p/>
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * <p/>
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
public interface StormService {

	public <E> Projection projectionFor(Class<E> entity) throws StormException;


// Path: src/main/java/in/cubestack/android/lib/storm/core/StormException.java
// public class StormException extends Exception {
// 
// 	private static final long serialVersionUID = -563476450614494464L;
// 
// 	public StormException(Throwable throwable) {
// 		super(throwable);
// 	}
// 	
// 	public StormException(String msg) {
// 		super(msg);
// 	}
// 
// 	public StormException(String msg, Exception exception) {
// 		super(msg, exception);
// 	}
// 	
// 	
// }
// 
// Path: src/main/java/in/cubestack/android/lib/storm/criteria/Order.java
// public class Order {
// 
// 	private SortOrder sortOrder;
// 	private String orderSql;
// 	private TableInformation information;
// 	private QueryGenerator queryGenerator = new QueryGenerator();
// 
// 	public Order(SortOrder order, TableInformation information) {
// 		this.sortOrder = order;
// 		this.information = information;
// 	}
// 
// 	public static <T> Order orderFor(Class<T> entity, String[] props, SortOrder sortOrder) {
// 		try {
// 			TableInformation information = EntityMetaDataCache.getMetaData(entity);
// 			Order order = new Order(sortOrder, information);
// 			validate(props, information);
// 			order.addProperty(props);
// 			return order;
// 		} catch (Exception e) {
// 			throw new StormRuntimeException("Invalid entity, please check your mapppings for " + entity, e);
// 		}
// 	}
// 
// 	private static void validate(String[] props, TableInformation tabInformation) {
// 		for(String prop: props) {
// 			ColumnMetaData columnInfo = tabInformation.getColumnMetaData(prop);
// 			if(columnInfo == null) {
// 				throw new StormRuntimeException("Could not find column mapped to alias " + prop +". Pl check your mapppings for " + tabInformation.getMappedClass());
// 			}
// 		}
// 	}
// 
// 	public void addProperty(String[] props) {
// 		orderSql = queryGenerator.orderBy(props, information, sortOrder);
// 	}
// 
// 	public String orderSql() {
// 		return orderSql;
// 	}
// 
// }
// 
// Path: src/main/java/in/cubestack/android/lib/storm/criteria/Projection.java
// public interface Projection {
// 	
// 	Projection add(String property);
// 	
// 	Projection sum(String property);
// 	
// 	Projection count(String property);
// 
// 	Projection max(String property);
// 	
// 	Projection min(String property);
// 
// 	Projection average(String property);
// 
// 	Projection total(String property);
// 	
// 	List<SQLFunction> getAggregateFunctions() ;
// 	List<String> getColumns();
// }
// 
// Path: src/main/java/in/cubestack/android/lib/storm/criteria/Restriction.java
// public interface Restriction {
// 
// 	public String toSqlString();
// 
// 	boolean valueStored();
// 
// 	String[] values();
// 
// 	Restriction page(int page);
// 
// 	Restriction limit(int offset, int limit);
// 
// 	public Object sqlString(Order order);
// 	
// 	public TableInformation getTableInformation();
// }
// 
// Path: src/main/java/in/cubestack/android/lib/storm/criteria/Restrictions.java
// public interface Restrictions {
// 
// 	public Restriction equals(String property, Object value);
// 
// 	public Restriction notEquals(String property, Object value);
// 
// 	public Restriction lessThen(String property, Object value);
// 
// 	public Restriction greaterThen(String property, Object value);
// 
// 	public Restriction like(String property, String value);
// 
// 	public Restriction likeIgnoreCase(String property, String value);
// 
// 	public Restriction or(Restriction expression1, Restriction expression2);
// 
// 	public Restriction and(Restriction expression1, Restriction expression2);
// 
// 	public Projection projection();
// 
// 	Restriction isNull(String property);
// 
// 	Restriction notNull(String property);
// 
// 	Restriction forAll();
// 
// 	Restriction in(String property, List<String> value);
// }


// Path: src/main/java/in/cubestack/android/lib/storm/service/StormService.java
import in.cubestack.android.lib.storm.core.StormException;
import in.cubestack.android.lib.storm.criteria.Order;
import in.cubestack.android.lib.storm.criteria.Projection;
import in.cubestack.android.lib.storm.criteria.Restriction;
import in.cubestack.android.lib.storm.criteria.Restrictions;
import java.util.Collection;
import java.util.List;

package in.cubestack.android.lib.storm.service;



/**
 * A core Android SQLite ORM framework build for speed and raw execution.
 * Copyright (c) 2014 CubeStack. Version built for Flash Back..
 * <p/>
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * <p/>
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * <p/>
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
public interface StormService {

	public <E> Projection projectionFor(Class<E> entity) throws StormException;


	public <E> Restrictions restrictionsFor(Class<E> entity) throws StormException;
