litesoft
@ 151
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
// This Source Code is in the Public Domain per: http://litesoft.org/License.txt package org.litesoft.orsup.base; import org.litesoft.db.*; import org.litesoft.orsup.selection.*; import org.litesoft.orsup.transact.*; public interface UnfilteringFinder extends NonTransactionalFinder<UnfilteringFinder> { public Transaction createUnaugmentedTransaction(); /** * @param pPersistedObjectRegistrationName * - Persisted Object Class Name (getClass().getName()) * @param pSelectionWhereClause - null means all * * @throws DBException - Exception regarding the OR layer */ public long count( String pPersistedObjectRegistrationName, WhereClause pSelectionWhereClause ) throws DBException; /** * @param pPersistedObjectClass - Persisted Object Class (getClass()) * @param pSelectionWhereClause - null means all * * @throws DBException - Exception regarding the OR layer */ public long count( Class<? extends PersistentObject> pPersistedObjectClass, WhereClause pSelectionWhereClause ) throws DBException; /** * @param pPersistedObjectRegistrationName * - Persisted Object Class Name (getClass().getName()) * @param pSelectionWhereClause - null means all, which will only succeed if the table only has one entry * @param pOrderBy - null means order immaterial * @param pUpdateValuePairs - additional columns to set * * @return 'snaged' PO or Null if no POs available to be 'snaged' * * @throws UnsupportedOperationException - if the PO type does not support 'snaging' * @throws DBException - other Exception regarding the OR layer */ public PersistentObject<?> snagOne( String pPersistedObjectRegistrationName, WhereClause pSelectionWhereClause, OrderBy pOrderBy, ColumnUpdateValuePair... pUpdateValuePairs ) throws UnsupportedOperationException, DBException; /** * @param pPersistedObjectClass - Persisted Object Class (getClass()) * @param pSelectionWhereClause - null means all, which will only succeed if the table only has one entry * @param pOrderBy - null means order immaterial * @param pUpdateValuePairs - additional columns to set * * @return 'snaged' PO or Null if no POs available to be 'snaged' * * @throws UnsupportedOperationException - if the PO type does not support 'snaging' * @throws DBException - other Exception regarding the OR layer */ public <T extends PersistentObject> T snagOne( Class<T> pPersistedObjectClass, WhereClause pSelectionWhereClause, OrderBy pOrderBy, ColumnUpdateValuePair... pUpdateValuePairs ) throws UnsupportedOperationException, DBException; } |