wish help you to fix your issue There are no ternary operators in Quartz or AppKit, and almost certainly not in UIKit, either. All drawing in Quartz-land is from a single source (image, color, gradient, etc.) into a single destination (context). You can have two source images, one as the “source” and the other as the “pattern”/“brush”. For actual pattern drawing, you can use a CGPattern instead of the second image.
this one helps. If you are asking technically whether Hibernate calls have to be in a transaction, the answer is no. Each call (update, insert, or delete) will be done as an atomic action. After the function returns the request to the database will be complete. When the database actually commits the change is up to Hibernate, the driver, and the database itself. If you are asking whether or not you should put credits or debits into a transaction state, the answer depends on the requirements of the application.