
org.tinystruct.data.Data Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2013, 2017 James Mover Zhou
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package org.tinystruct.data;
import org.tinystruct.ApplicationException;
import org.tinystruct.data.component.Condition;
import org.tinystruct.data.component.Row;
import org.tinystruct.data.component.Table;
public interface Data {
public String getClassPath();
public String getClassName();
public void setTableName(String attribute);
public Object setId(Object Id);
public Object getId();
public boolean append() throws ApplicationException;
public boolean update() throws ApplicationException;
public boolean delete() throws ApplicationException;
public Data setRequestFields(String fields);
public Data orderBy(String[] fieldNames);
public Table find(String SQL, Object[] parameters) throws ApplicationException;
public Table find(Condition condition, Object[] parameters) throws ApplicationException;
public Table findWith(String where, Object[] parameters) throws ApplicationException;
public Row findOne(String SQL, Object[] parameters) throws ApplicationException;
public Row findOneById() throws ApplicationException;
public Row findOneByKey(String PK, String value) throws ApplicationException;
public Table findAll() throws ApplicationException;
public Repository getRepository();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy