I have a custom SObject named Book.
This custom Object has a few Fields:
- Price
- Pages
- AmountInStock
How would I go about to get some methods onto Book, such as:
- String toXML()
- Boolean isAvailable()
I come from a strong MVC Pattern use in Rails so I am hoping I can get this set up instead of having to use static methods.
I have seen that some people use Wrapper Apex Classes like BookWrapper, but is that the best way to go?