public abstract class AbstractSqlBuilder extends Object implements SqlBuilder
SqlBuilder.SqlStruct
Constructor and Description |
---|
AbstractSqlBuilder() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildPreparedParameterSql(ColumnMetaData column)
Enables override for databases like PostgreSQL that need special handling for enumerations.
|
protected abstract String |
buildSelectLimitSql(int limit,
int offset)
Creates select SQL limit clause.
|
SqlBuilder.SqlStruct |
buildSelectSql(SqlResourceMetaData metaData,
String mainSql,
Request request)
Creates select SQL.
|
Map<String,SqlBuilder.SqlStruct> |
buildWriteSql(SqlResourceMetaData metaData,
Request request,
boolean doParent)
Creates update, insert or delete SQL.
|
public SqlBuilder.SqlStruct buildSelectSql(SqlResourceMetaData metaData, String mainSql, Request request) throws InvalidRequestException
buildSelectSql
in interface SqlBuilder
InvalidRequestException
public Map<String,SqlBuilder.SqlStruct> buildWriteSql(SqlResourceMetaData metaData, Request request, boolean doParent) throws InvalidRequestException
buildWriteSql
in interface SqlBuilder
InvalidRequestException
protected abstract String buildSelectLimitSql(int limit, int offset)
protected String buildPreparedParameterSql(ColumnMetaData column)
Copyright © 2011-2018 restSQL Project Contributors