![JAR search and dependency download from the Maven repository](/logo.png)
org.javalite.activejdbc.dialects.Dialect Maven / Gradle / Ivy
/*
Copyright 2009-2016 Igor Polevoy
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.javalite.activejdbc.dialects;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import org.javalite.activejdbc.MetaModel;
import org.javalite.activejdbc.associations.Many2ManyAssociation;
/**
* @author Eric Nielsen
*/
public interface Dialect extends Serializable{
String formSelect(String tableName, String[] columns, String subQuery, List orderBys, long limit, long offset);
Object overrideDriverTypeConversion(MetaModel mm, String attributeName, Object value);
String selectStar(String table);
String selectStar(String table, String where);
String selectStarParametrized(String table, String... parameters);
String selectCount(String from);
String selectCount(String table, String where);
String selectExists(MetaModel mm);
String selectManyToManyAssociation(Many2ManyAssociation association, String sourceFkColumnName, int questionsCount);
String insertManyToManyAssociation(Many2ManyAssociation association);
String insertParametrized(MetaModel metaModel, List columns, boolean containsId);
String deleteManyToManyAssociation(Many2ManyAssociation association);
String insert(MetaModel metaModel, Map attributes, String ... replacements);
String update(MetaModel metaModel, Map attributes, String ... replacements);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy