Azavea.Open.DAO.OleDb.OleDbDescriptor.MakeBitwiseAndClause C# (CSharp) Method

MakeBitwiseAndClause() public method

public MakeBitwiseAndClause ( string columnName ) : SqlClauseWithValue
columnName string
return Azavea.Open.DAO.SQL.SqlClauseWithValue
        public override SqlClauseWithValue MakeBitwiseAndClause(string columnName)
        {
            StringBuilder sb = DbCaches.StringBuilders.Get();
            SqlClauseWithValue retVal = DbCaches.Clauses.Get();
            switch (Type)
            {
                case DatabaseType.SQLSERVER:
                    sb.Append(" (");
                    sb.Append(columnName);
                    sb.Append(" & ");
                    retVal.PartBeforeValue = sb.ToString();
                    retVal.PartAfterValue = ")";
                    break;
                default:
                    throw new NotImplementedException("Bitwise and is not supported for this connection: " + this);
            }
            DbCaches.StringBuilders.Return(sb);
            return retVal;
        }