public class SQLBuilderBase extends java.lang.Object implements SQLBuilder
SQLBuilder.AlterTableBuilder, SQLBuilder.Column, SQLBuilder.ColumnDescriptor, SQLBuilder.CountBuilder, SQLBuilder.CreateIndexBuilder, SQLBuilder.CreateTableBuilder, SQLBuilder.DeleteBuilder, SQLBuilder.DropIndexBuilder, SQLBuilder.DropTableBuilder, SQLBuilder.FromBuilder, SQLBuilder.GrantBuilder, SQLBuilder.GrantRoleBuilder, SQLBuilder.InsertBuilder, SQLBuilder.InsertColumnBuilder, SQLBuilder.JoinBuilder, SQLBuilder.MergeBuilder, SQLBuilder.OrderByBuilder, SQLBuilder.Privilege, SQLBuilder.SelectBuilder, SQLBuilder.SelectColumnBuilder, SQLBuilder.Statement, SQLBuilder.StatementPart, SQLBuilder.TableNameBuilder, SQLBuilder.UpdateBuilder, SQLBuilder.UpdateColumnBuilder, SQLBuilder.UpdateTableStatisticsBuilder
DEFAULT_RECOMENDED_SQL_LENGTH, FEATURE_ATTRIBUTE_DESCRIPTOR, PROP_ADD_TABLE_NAME_TO_COLUMNS, PROP_FEATURE_TYPE, PROP_JDBCHELPER, PROP_QUERY, PROP_SQLBUILDER, PROP_SYMBOLTABLE, PROP_TABLE, PROP_TABLENAME
Constructor and Description |
---|
SQLBuilderBase() |
protected static final Logger LOGGER
protected SQLBuilder.SelectBuilder select
protected SQLBuilder.UpdateBuilder update
protected SQLBuilder.MergeBuilder merge
protected SQLBuilder.InsertBuilder insert
protected SQLBuilder.DeleteBuilder delete
protected SQLBuilder.AlterTableBuilder alter_table
protected SQLBuilder.CreateTableBuilder create_table
protected SQLBuilder.GrantBuilder grant
protected SQLBuilder.DropTableBuilder drop_table
protected SQLBuilder.UpdateTableStatisticsBuilder update_table_statistics
protected SQLBuilder.CreateIndexBuilder create_index
protected SQLBuilder.DropIndexBuilder drop_index
protected SQLBuilder.TableNameBuilder table_name
protected GeometryExpressionBuilder expressionBuilder
protected java.lang.String defaultSchema
protected boolean supportSchemas
protected boolean hasSpatialFunctions
protected GeometryExpressionBuilderHelper.GeometrySupportType geometrySupportType
protected boolean allowAutomaticValues
protected java.lang.String constant_true
protected java.lang.String constant_false
protected java.lang.String type_boolean
protected java.lang.String type_byte
protected java.lang.String type_bytearray
protected java.lang.String type_geometry
protected java.lang.String type_char
protected java.lang.String type_date
protected java.lang.String type_double
protected java.lang.String type_decimal_ps
protected java.lang.String type_decimal_p
protected java.lang.String type_float
protected java.lang.String type_int
protected java.lang.String type_long
protected java.lang.String type_string
protected java.lang.String type_string_0
protected java.lang.String type_string_p
protected java.lang.String type_time
protected java.lang.String type_timestamp
protected java.lang.String type_version
protected java.lang.String type_URI
protected java.lang.String type_URL
protected java.lang.String type_FILE
protected java.lang.String type_FOLDER
protected java.lang.String STMT_DELETE_FROM_table_WHERE_expresion
protected java.lang.String STMT_DELETE_FROM_table
protected java.lang.String STMT_INSERT_INTO_table_columns_VALUES_values
protected java.lang.String STMT_MERGE_INTO_table_KEY_column_columns_VALUES_values
protected java.lang.String STMT_UPDATE_TABLE_STATISTICS_table
protected java.lang.String STMT_DROP_TABLE_table
protected java.lang.String STMT_DELETE_GEOMETRY_COLUMN_FROM_TABLE_schema_table
protected java.lang.String STMT_DELETE_GEOMETRY_COLUMN_FROM_TABLE_table
protected java.lang.String STMT_UPDATE_table_SET_columnsAndValues_WHERE_expresion
protected java.lang.String STMT_UPDATE_table_SET_columnsAndValues
protected java.lang.String STMT_GRANT_privileges_ON_table_TO_role
protected java.lang.String[] aggregateFunctionNames
public void setProperties(java.lang.Class filter, java.lang.Object... values)
setProperties
in interface SQLBuilder
public void setProperties(ExpressionBuilder.Visitable visitable, java.lang.Class filter, java.lang.Object... values)
setProperties
in interface SQLBuilder
public java.lang.String quote_for_identifiers()
public java.lang.String quote_for_strings()
public java.lang.String as_identifier(java.lang.String id)
as_identifier
in interface SQLBuilder
public java.lang.String as_clob(java.lang.String s)
as_clob
in interface SQLBuilder
public java.lang.String as_string(java.lang.String s)
as_string
in interface SQLBuilder
public java.lang.String as_string(byte[] data)
as_string
in interface SQLBuilder
public java.lang.String as_string(boolean value)
as_string
in interface SQLBuilder
public java.lang.String as_string(java.lang.Number value)
as_string
in interface SQLBuilder
public java.lang.String as_string(java.lang.Object value)
as_string
in interface SQLBuilder
public GeometryExpressionBuilder expression()
expression
in interface SQLBuilder
public boolean has_spatial_functions()
has_spatial_functions
in interface SQLBuilder
public GeometryExpressionBuilderHelper.GeometrySupportType geometry_support_type()
geometry_support_type
in interface SQLBuilder
protected GeometryExpressionBuilder createExpressionBuilder()
public java.lang.Object srs_id(IProjection projection)
srs_id
in interface SQLBuilder
public java.lang.String default_schema()
default_schema
in interface SQLBuilder
public boolean support_schemas()
support_schemas
in interface SQLBuilder
public java.lang.String sqltype(int type, int size, int precision, int scale, int geomType, int geomSubtype)
sqltype
in interface SQLBuilder
public java.lang.Object sqlgeometrytype(int type, int subtype)
sqlgeometrytype
in interface SQLBuilder
public java.lang.Object sqlgeometrydimension(int type, int subtype)
sqlgeometrydimension
in interface SQLBuilder
public SQLBuilder.SelectColumnBuilder column()
column
in interface SQLBuilder
public SQLBuilder.TableNameBuilder createTableNameBuilder()
createTableNameBuilder
in interface SQLBuilder
protected SQLBuilder.SelectColumnBuilder createSelectColumnBuilder()
protected SQLBuilder.UpdateColumnBuilder createUpdateColumnBuilder()
protected SQLBuilder.InsertColumnBuilder createInsertColumnBuilder()
protected SQLBuilder.OrderByBuilder createOrderByBuilder()
protected SQLBuilder.FromBuilder createFromBuilder()
public SQLBuilder.SelectBuilder createSelectBuilder()
createSelectBuilder
in interface SQLBuilder
protected SQLBuilder.UpdateBuilder createUpdateBuilder()
protected SQLBuilder.DeleteBuilder createDeleteBuilder()
protected SQLBuilder.GrantBuilder createGrantBuilder()
protected SQLBuilder.GrantRoleBuilder createGrantRoleBuilder(SQLBuilder.TableNameBuilder table, java.lang.String role)
protected SQLBuilder.DropTableBuilder createDropTableBuilder()
protected SQLBuilder.CreateTableBuilder createCreateTableBuilder()
protected SQLBuilder.AlterTableBuilder createAlterTableBuilder()
protected SQLBuilder.InsertBuilder createInsertBuilder()
protected SQLBuilder.MergeBuilder createMergeBuilder()
protected SQLBuilder.UpdateTableStatisticsBuilder createUpdateTableStatisticsBuilder()
public SQLBuilder.CreateIndexBuilder createCreateIndexBuilder()
public SQLBuilder.DropIndexBuilder createDropIndexBuilder()
public SQLBuilder.SelectBuilder select()
select
in interface SQLBuilder
public SQLBuilder.UpdateBuilder update()
update
in interface SQLBuilder
public SQLBuilder.UpdateTableStatisticsBuilder update_table_statistics()
update_table_statistics
in interface SQLBuilder
public SQLBuilder.DropTableBuilder drop_table()
drop_table
in interface SQLBuilder
public SQLBuilder.CreateIndexBuilder create_index()
create_index
in interface SQLBuilder
public SQLBuilder.DropIndexBuilder drop_index()
drop_index
in interface SQLBuilder
public SQLBuilder.DeleteBuilder delete()
delete
in interface SQLBuilder
public SQLBuilder.InsertBuilder insert()
insert
in interface SQLBuilder
public SQLBuilder.MergeBuilder merge()
merge
in interface SQLBuilder
public SQLBuilder.TableNameBuilder table_name()
table_name
in interface SQLBuilder
public SQLBuilder.AlterTableBuilder alter_table()
alter_table
in interface SQLBuilder
public SQLBuilder.CreateTableBuilder create_table()
create_table
in interface SQLBuilder
public SQLBuilder.GrantBuilder grant()
grant
in interface SQLBuilder
public SQLBuilder.Column column(java.lang.String name)
column
in interface SQLBuilder
public SQLBuilder.Column column(SQLBuilder.TableNameBuilder table, java.lang.String name)
column
in interface SQLBuilder
public SQLBuilder.Column column_from(ExpressionBuilder.Variable variable)
column_from
in interface SQLBuilder
public SQLBuilder.Column column_from(SQLBuilder.TableNameBuilder table, ExpressionBuilder.Variable variable)
column_from
in interface SQLBuilder
protected SQLBuilderBase.JoinBase createJoin(java.lang.String type, SQLBuilder.TableNameBuilder table, ExpressionBuilder.Value expression)
public void accept(ExpressionBuilder.Visitor visitor, ExpressionBuilder.VisitorFilter filter)
accept
in interface ExpressionBuilder.Visitable
public Formatter formatter()
formatter
in interface SQLBuilder
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(Formatter formatter)
toString
in interface SQLBuilder
public SQLBuilder.CountBuilder count()
count
in interface SQLBuilder
public java.util.List<ExpressionBuilder.Parameter> parameters()
parameters
in interface SQLBuilder
public java.util.List<ExpressionBuilder.Variable> variables()
variables
in interface SQLBuilder
public java.util.List<java.lang.String> parameters_names()
parameters_names
in interface SQLBuilder
public java.util.List<java.lang.String> variables_names()
variables_names
in interface SQLBuilder
public boolean isAggregateFunction(java.lang.String funcname)
isAggregateFunction
in interface SQLBuilder
public int getMaxRecomendedSQLLength()
getMaxRecomendedSQLLength
in interface SQLBuilder
public java.lang.String getConstrainName(SQLBuilder.TableNameBuilder table, java.lang.String columnName, java.lang.String constrainType)
getConstrainName
in interface SQLBuilder