Méthode | Description | |
---|---|---|
CreateGeometry ( object input ) : object |
Creates a geometry object from the string input.
|
|
CreateQuery ( ClassMapping mapping, |
||
PostgreSqlDaLayer ( |
Construct the layer. Should typically be called only by the appropriate ConnectionDescriptor.
|
Méthode | Description | |
---|---|---|
AddColDefinition ( StringBuilder sb, string col, ClassMapping mapping, string separator, ICollection |
Add the definition for the given column to the create table statement.
|
|
ExpressionToQuery ( |
Converts a single Expression to SQL (mapping the columns as appropriate) and appends to the given string builder. The expression's SQL will already be wrapped in parends, so you do not need to add them here.
|
|
GetAsciiStringType ( ) : string |
PostgreSQL encoding is specified by the database not by the column, so we just use TEXT again.
|
|
GetAutoType ( |
Returns the DDL for the type of an automatically incrementing column. Some databases only store autonums in one col type so baseType may be ignored.
|
|
GetBooleanType ( ) : string |
Returns the SQL type used to store a boolean in the DB.
|
|
GetByteArrayType ( ) : string |
Returns the SQL type used to store a byte array in the DB.
|
|
GetLongType ( ) : string |
Returns the SQL type used to store a long in the DB.
|
|
GetStringType ( ) : string |
Returns the SQL type used to store a "normal" (unicode) string in the DB.
|
|
PreProcessPropertyValues ( string table, object>.IDictionary |
Overriden to convert IGeometries to correctly-encoded strings that PostGIS can recognize. This is called prior to inserting or updating these values in the table.
|
protected AddColDefinition ( StringBuilder sb, string col, ClassMapping mapping, string separator, ICollection |
||
sb | StringBuilder | Current create table statement to append to. |
col | string | Name of the column to add a definition for. |
mapping | ClassMapping | Classmapping we're creating a table for. |
separator | string | Separator to use before appending to sb. |
extraStatements | ICollection |
If adding this column requires any additional /// SQL statements to be run afterwards, put them here. |
Résultat | bool |
public CreateGeometry ( object input ) : object | ||
input | object | An "e" well known text string. |
Résultat | object |
public CreateQuery ( ClassMapping mapping, |
||
mapping | ClassMapping | |
crit | ||
Résultat | IDaQuery |
protected ExpressionToQuery ( |
||
queryToAddTo | Query we're adding the expression to. | |
expr | IExpression | The expression. NOTE: It should NOT be null. This method does not check. |
mapping | ClassMapping | Class mapping for the class we're dealing with. |
colPrefix | string | What to prefix column names with, I.E. "Table." for "Table.Column". /// May be null if no prefix is desired. May be something other than /// the table name if the tables are being aliased. |
booleanOperator | string | The boolean operator (AND or OR) to insert before /// this expression. Blank ("") if we don't need one. |
Résultat | bool |
protected GetAutoType ( |
||
baseType | The data type of the column (nominally). | |
Résultat | string |
public PostgreSqlDaLayer ( |
||
connDesc | Connection to the PostGreSQL / PostGIS DB we'll be using. | |
Résultat | System |
protected PreProcessPropertyValues ( string table, object>.IDictionary |
||
table | string | The table these values will be inserted or updated into. |
propValues | object>.IDictionary | A dictionary of "column"/value pairs for the object to insert or update. |
Résultat | void |