C# Класс Azavea.Open.DAO.Firebird.FirebirdDaLayer

Implements a FastDao layer customized for PostGreSQL (optionally with PostGIS installed).
Наследование: Azavea.Open.DAO.SQL.SqlDaDdlLayer
Показать файл Открыть проект

Открытые методы

Метод Описание
FirebirdDaLayer ( FirebirdDescriptor connDesc ) : System

Construct the layer. Should typically be called only by the appropriate ConnectionDescriptor.

SequenceExists ( string name ) : bool

Returns whether a sequence with this name exists or not. Firebird doesn't appear to support the SQL standard information_schema.

StoreRoomMissing ( ClassMapping mapping ) : bool

Returns true if you need to call "CreateStoreRoom" before storing any data. This method is "Missing" not "Exists" because implementations that do not use a store room can return "false" from this method without breaking either a user's app or the spirit of the method. Store room typically corresponds to "table". Firebird doesn't appear to support the SQL standard information_schema.

Защищенные методы

Метод Описание
GetAutoType ( Type baseType ) : string

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.

GetDateTimeType ( ) : string

Returns the SQL type used to store a DateTime 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. NOTE: At the moment just uses varchar, so will rely on whatever the DB is using for an encoding.

Описание методов

FirebirdDaLayer() публичный Метод

Construct the layer. Should typically be called only by the appropriate ConnectionDescriptor.
public FirebirdDaLayer ( FirebirdDescriptor connDesc ) : System
connDesc FirebirdDescriptor Connection to the Firebird DB we'll be using.
Результат System

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.
protected GetAutoType ( Type baseType ) : string
baseType System.Type The data type of the column (nominally).
Результат string

GetBooleanType() защищенный Метод

Returns the SQL type used to store a boolean in the DB.
protected GetBooleanType ( ) : string
Результат string

GetByteArrayType() защищенный Метод

Returns the SQL type used to store a byte array in the DB.
protected GetByteArrayType ( ) : string
Результат string

GetDateTimeType() защищенный Метод

Returns the SQL type used to store a DateTime in the DB.
protected GetDateTimeType ( ) : string
Результат string

GetLongType() защищенный Метод

Returns the SQL type used to store a long in the DB.
protected GetLongType ( ) : string
Результат string

GetStringType() защищенный Метод

Returns the SQL type used to store a "normal" (unicode) string in the DB. NOTE: At the moment just uses varchar, so will rely on whatever the DB is using for an encoding.
protected GetStringType ( ) : string
Результат string

SequenceExists() публичный Метод

Returns whether a sequence with this name exists or not. Firebird doesn't appear to support the SQL standard information_schema.
public SequenceExists ( string name ) : bool
name string Name of the sequence to check for.
Результат bool

StoreRoomMissing() публичный Метод

Returns true if you need to call "CreateStoreRoom" before storing any data. This method is "Missing" not "Exists" because implementations that do not use a store room can return "false" from this method without breaking either a user's app or the spirit of the method. Store room typically corresponds to "table". Firebird doesn't appear to support the SQL standard information_schema.
public StoreRoomMissing ( ClassMapping mapping ) : bool
mapping ClassMapping
Результат bool