added constant apc prefix
added get method for use with compilecondition method
Added validator class
fixed getNextMax/MinId methods in query execution
fixed source indentation
replace all occurencies of __FUNCTION__ with __METHOD__