Creating Object Using Function With Sql Oracle