C# Class Azavea.Open.DAO.OleDb.OleDbAccessDaLayer

Implements a FastDao layer customized for PostGreSQL (optionally with PostGIS installed).
Inheritance: Azavea.Open.DAO.SQL.SqlDaDdlLayer
Afficher le fichier Open project: azavea/net-dao-oledb

Méthodes publiques

Méthode Description
OleDbAccessDaLayer ( OleDbDescriptor connDesc ) : System

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

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".

Méthodes protégées

Méthode Description
GetAsciiStringType ( ) : string

Returns the SQL type used to store an ascii string in the DB. MS Access does not seem to differentiate between encodings.

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.

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.

Method Details

GetAsciiStringType() protected méthode

Returns the SQL type used to store an ascii string in the DB. MS Access does not seem to differentiate between encodings.
protected GetAsciiStringType ( ) : string
Résultat string

GetAutoType() protected méthode

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).
Résultat string

GetByteArrayType() protected méthode

Returns the SQL type used to store a byte array in the DB.
protected GetByteArrayType ( ) : string
Résultat string

GetDateTimeType() protected méthode

Returns the SQL type used to store a DateTime in the DB.
protected GetDateTimeType ( ) : string
Résultat string

GetLongType() protected méthode

Returns the SQL type used to store a long in the DB.
protected GetLongType ( ) : string
Résultat string

GetStringType() protected méthode

Returns the SQL type used to store a "normal" (unicode) string in the DB.
protected GetStringType ( ) : string
Résultat string

OleDbAccessDaLayer() public méthode

Construct the layer. Should typically be called only by the appropriate ConnectionDescriptor.
public OleDbAccessDaLayer ( OleDbDescriptor connDesc ) : System
connDesc OleDbDescriptor Connection to the Firebird DB we'll be using.
Résultat System

StoreRoomMissing() public méthode

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".
public StoreRoomMissing ( ClassMapping mapping ) : bool
mapping ClassMapping
Résultat bool