C# Class NHibernate.Spatial.Dialect.PostGisDialect

Inheritance: NHibernate.Dialect.PostgreSQL82Dialect, ISpatialDialect
显示文件 Open project: nhibernate/NHibernate.Spatial

Public Methods

Method Description
CreateGeometryUserType ( ) : IGeometryUserType

Creates the geometry user type.

GetSpatialAggregateString ( object geometry, SpatialAggregate aggregate ) : NHibernate.SqlCommand.SqlString

Gets the spatial aggregate string.

GetSpatialAnalysisString ( object geometry, SpatialAnalysis analysis, object extraArgument ) : NHibernate.SqlCommand.SqlString

Gets the spatial analysis string.

GetSpatialCreateString ( string schema ) : string

Gets the spatial create string.

GetSpatialCreateString ( string schema, string table, string column, int srid, string subtype, int dimension, bool isNullable ) : string

Gets the spatial create string.

GetSpatialDropString ( string schema ) : string

Gets the spatial drop string.

GetSpatialDropString ( string schema, string table, string column ) : string

Gets the spatial drop string.

GetSpatialFilterString ( string tableAlias, string geometryColumnName, string primaryKeyColumnName, string tableName, NHibernate.SqlCommand.Parameter parameter ) : NHibernate.SqlCommand.SqlString
GetSpatialRelateString ( object geometry, object anotherGeometry, object pattern, bool isStringPattern, bool criterion ) : NHibernate.SqlCommand.SqlString
GetSpatialRelationString ( object geometry, SpatialRelation relation, object anotherGeometry, bool criterion ) : NHibernate.SqlCommand.SqlString
GetSpatialTransformString ( object geometry, int srid ) : NHibernate.SqlCommand.SqlString

Gets the spatial transform string.

GetSpatialValidationString ( object geometry, SpatialValidation validation, bool criterion ) : NHibernate.SqlCommand.SqlString

Gets the spatial validation string.

PostGisDialect ( ) : NHibernate.Dialect

Initializes a new instance of the PostGisDialect class.

SupportsSpatialMetadata ( MetadataClass metadataClass ) : bool

Gets a value indicating whether it supports spatial metadata.

ToBooleanValueString ( bool value ) : string

Protected Methods

Method Description
GetSpatialCreateString ( string schema, string prefix ) : string
RegisterSpatialFunction ( string name ) : void
RegisterSpatialFunction ( string name, IType returnedType ) : void
RegisterSpatialFunction ( string name, IType returnedType, int allowedArgsCount ) : void
RegisterSpatialFunction ( string name, int allowedArgsCount ) : void
RegisterSpatialFunction ( string standardName, string dialectName, IType returnedType ) : void
RegisterSpatialFunction ( string standardName, string dialectName, IType returnedType, int allowedArgsCount ) : void

Private Methods

Method Description
GetSpatialIndexCreateString ( string schema, string table, string column ) : string
GetSpatialIndexDropString ( string schema, string table, string column ) : string
QuoteSchema ( string schema ) : string

Quotes the schema.

RegisterBasicFunctions ( ) : void
RegisterFunctions ( ) : void
RegisterSpatialFunction ( SpatialAnalysis analysis ) : void
RegisterSpatialFunction ( SpatialRelation relation ) : void
RegisterSpatialFunction ( SpatialValidation validation ) : void

Method Details

CreateGeometryUserType() public method

Creates the geometry user type.
public CreateGeometryUserType ( ) : IGeometryUserType
return IGeometryUserType

GetSpatialAggregateString() public method

Gets the spatial aggregate string.
public GetSpatialAggregateString ( object geometry, SpatialAggregate aggregate ) : NHibernate.SqlCommand.SqlString
geometry object The geometry.
aggregate SpatialAggregate The aggregate.
return NHibernate.SqlCommand.SqlString

GetSpatialAnalysisString() public method

Gets the spatial analysis string.
public GetSpatialAnalysisString ( object geometry, SpatialAnalysis analysis, object extraArgument ) : NHibernate.SqlCommand.SqlString
geometry object The geometry.
analysis SpatialAnalysis The analysis.
extraArgument object The extra argument.
return NHibernate.SqlCommand.SqlString

GetSpatialCreateString() public method

Gets the spatial create string.
public GetSpatialCreateString ( string schema ) : string
schema string The schema.
return string

GetSpatialCreateString() protected method

protected GetSpatialCreateString ( string schema, string prefix ) : string
schema string
prefix string
return string

GetSpatialCreateString() public method

Gets the spatial create string.
public GetSpatialCreateString ( string schema, string table, string column, int srid, string subtype, int dimension, bool isNullable ) : string
schema string The schema.
table string The table.
column string The column.
srid int The srid.
subtype string The subtype.
dimension int [3DIS] The dimension
isNullable bool Whether or not the column is nullable
return string

GetSpatialDropString() public method

Gets the spatial drop string.
public GetSpatialDropString ( string schema ) : string
schema string The schema.
return string

GetSpatialDropString() public method

Gets the spatial drop string.
public GetSpatialDropString ( string schema, string table, string column ) : string
schema string The schema.
table string The table.
column string The column.
return string

GetSpatialFilterString() public method

public GetSpatialFilterString ( string tableAlias, string geometryColumnName, string primaryKeyColumnName, string tableName, NHibernate.SqlCommand.Parameter parameter ) : NHibernate.SqlCommand.SqlString
tableAlias string
geometryColumnName string
primaryKeyColumnName string
tableName string
parameter NHibernate.SqlCommand.Parameter
return NHibernate.SqlCommand.SqlString

GetSpatialRelateString() public method

public GetSpatialRelateString ( object geometry, object anotherGeometry, object pattern, bool isStringPattern, bool criterion ) : NHibernate.SqlCommand.SqlString
geometry object
anotherGeometry object
pattern object
isStringPattern bool
criterion bool
return NHibernate.SqlCommand.SqlString

GetSpatialRelationString() public method

public GetSpatialRelationString ( object geometry, SpatialRelation relation, object anotherGeometry, bool criterion ) : NHibernate.SqlCommand.SqlString
geometry object
relation SpatialRelation
anotherGeometry object
criterion bool
return NHibernate.SqlCommand.SqlString

GetSpatialTransformString() public method

Gets the spatial transform string.
public GetSpatialTransformString ( object geometry, int srid ) : NHibernate.SqlCommand.SqlString
geometry object The geometry.
srid int The srid.
return NHibernate.SqlCommand.SqlString

GetSpatialValidationString() public method

Gets the spatial validation string.
public GetSpatialValidationString ( object geometry, SpatialValidation validation, bool criterion ) : NHibernate.SqlCommand.SqlString
geometry object The geometry.
validation SpatialValidation The validation.
criterion bool if set to true [criterion].
return NHibernate.SqlCommand.SqlString

PostGisDialect() public method

Initializes a new instance of the PostGisDialect class.
public PostGisDialect ( ) : NHibernate.Dialect
return NHibernate.Dialect

RegisterSpatialFunction() protected method

protected RegisterSpatialFunction ( string name ) : void
name string
return void

RegisterSpatialFunction() protected method

protected RegisterSpatialFunction ( string name, IType returnedType ) : void
name string
returnedType IType
return void

RegisterSpatialFunction() protected method

protected RegisterSpatialFunction ( string name, IType returnedType, int allowedArgsCount ) : void
name string
returnedType IType
allowedArgsCount int
return void

RegisterSpatialFunction() protected method

protected RegisterSpatialFunction ( string name, int allowedArgsCount ) : void
name string
allowedArgsCount int
return void

RegisterSpatialFunction() protected method

protected RegisterSpatialFunction ( string standardName, string dialectName, IType returnedType ) : void
standardName string
dialectName string
returnedType IType
return void

RegisterSpatialFunction() protected method

protected RegisterSpatialFunction ( string standardName, string dialectName, IType returnedType, int allowedArgsCount ) : void
standardName string
dialectName string
returnedType IType
allowedArgsCount int
return void

SupportsSpatialMetadata() public method

Gets a value indicating whether it supports spatial metadata.
public SupportsSpatialMetadata ( MetadataClass metadataClass ) : bool
metadataClass MetadataClass
return bool

ToBooleanValueString() public method

public ToBooleanValueString ( bool value ) : string
value bool
return string