when a company purchases an investment security whether that be equity or debt it must be classified in one of three ways per accounting standards held to maturity held for trading or available for sale 
an available for sale security is one that is sold before it reaches maturity any unrealized gains or losses on the security must be recorded as accumulated comprehensive income until it is sold 