get( id )and
check( id )methods. The former returns a populated bean, the latter a boolean. There may also be convenience methods, like
getByName( name )or
getDraft( id ). Under the hood, they all utilize a private method, which returns the result of a query, based on the parameters. I’m trying to name that private method. I initially used
getByProperty( id ), but it bothers me that the name doesn’t differentiate it from related public methods that return objects.
find…function passing the PK as the only property (and just taking the first element of the array as the data we need internally).