com.fastchar.database.sql.FastSqlServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastchar Show documentation
Show all versions of fastchar Show documentation
FastChar is Web+ORM Framework in Java.
package com.fastchar.database.sql;
import com.fastchar.core.FastChar;
import com.fastchar.core.FastEntity;
import com.fastchar.database.info.FastColumnInfo;
import com.fastchar.database.info.FastSqlInfo;
import com.fastchar.enums.FastDatabaseType;
import com.fastchar.exception.FastSqlException;
import com.fastchar.local.FastCharLocal;
import com.fastchar.utils.FastStringUtils;
import java.util.*;
public class FastSqlServer extends FastSql {
public static boolean isOverride(String type) {
if (FastStringUtils.isNotEmpty(type)) {
return FastDatabaseType.SQL_SERVER.name().equalsIgnoreCase(type);
}
return false;
}
public FastSqlServer() {
this.type = FastDatabaseType.SQL_SERVER.name().toLowerCase();
}
@Override
public FastSqlInfo buildInsertSql(FastEntity> entity, String... checks) {
if (entity == null) {
return null;
}
entity.markSetDefaultValue("insert");
entity.setDefaultValue();
entity.unmarkSetDefaultValue();
Set allKeys = entity.allKeys();
List columns = new ArrayList<>(allKeys.size());
List placeholders = new ArrayList<>(allKeys.size());
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy