Azavea.Open.DAO.SQL.SqlDaDdlLayer.GetGeneratorType C# (CSharp) Method

GetGeneratorType() protected method

For a column, returns the type of generator used for it.
protected GetGeneratorType ( string col, ClassMapping mapping ) : GeneratorType
col string Column to look up.
mapping ClassMapping Mapping for the class we're creating a table for.
return GeneratorType
        protected GeneratorType GetGeneratorType(string col, ClassMapping mapping)
        {
            bool isId = mapping.IdGeneratorsByDataCol.ContainsKey(col);
            GeneratorType gen = GeneratorType.NONE;
            if (isId)
            {
                gen = mapping.IdGeneratorsByDataCol[col];
            }
            return gen;
        }