Subversion Repository Public Repository

litesoft

Diff Revisions 150 vs 151 for /trunk/Java/core/Server/src/org/litesoft/orsup/nonpublic/UnfilteringFinderImpl.java

Diff revisions: vs.
  @@ -6,11 +6,9 @@
6 6 import org.litesoft.orsup.selection.*;
7 7 import org.litesoft.orsup.transact.*;
8 8
9 - public class UnfilteringFinderImpl extends AbstractNonTransactionalFinder<UnfilteringFinder>
10 - implements UnfilteringFinder
9 + public class UnfilteringFinderImpl extends AbstractNonTransactionalFinder<UnfilteringFinder> implements UnfilteringFinder
11 10 {
12 - protected UnfilteringFinderImpl( ORFacilitatorInternalExtension pCommonSupport,
13 - boolean pIncludingImmortalInactives )
11 + protected UnfilteringFinderImpl( ORFacilitatorInternalExtension pCommonSupport, boolean pIncludingImmortalInactives )
14 12 {
15 13 super( pCommonSupport, pIncludingImmortalInactives, null );
16 14 }
  @@ -50,8 +48,7 @@
50 48 * @throws DBException - Exception regarding the OR layer
51 49 */
52 50 @Override
53 - public final long count( Class<? extends PersistentObject> pPersistedObjectClass,
54 - WhereClause pSelectionWhereClause )
51 + public final long count( Class<? extends PersistentObject> pPersistedObjectClass, WhereClause pSelectionWhereClause )
55 52 throws DBException
56 53 {
57 54 return count( pPersistedObjectClass.getName(), pSelectionWhereClause );
  @@ -70,27 +67,22 @@
70 67 * @throws DBException - Exception regarding the OR layer
71 68 */
72 69 @Override
73 - public final PersistentObject<?> snagOne( String pPersistedObjectRegistrationName,
74 - WhereClause pSelectionWhereClause, OrderBy pOrderBy,
75 - ColumnUpdateValuePair... pUpdateValuePairs )
70 + public final PersistentObject<?> snagOne( String pPersistedObjectRegistrationName, WhereClause pSelectionWhereClause, OrderBy pOrderBy, ColumnUpdateValuePair... pUpdateValuePairs )
76 71 throws UnsupportedOperationException, DBException
77 72 {
78 73 MetaDataForPO metaDataForPO = getRequiredMetaDataForPO( pPersistedObjectRegistrationName );
79 74 if ( !metaDataForPO.isSnagable() )
80 75 {
81 - throw new UnsupportedOperationException(
82 - pPersistedObjectRegistrationName + " is not flagged as 'Snaggable'" );
76 + throw new UnsupportedOperationException( pPersistedObjectRegistrationName + " is not flagged as 'Snaggable'" );
83 77 }
84 78 SimpleColumnDefinition zKeyCD = getKeyCD( metaDataForPO, ", and is therefore not 'Snaggable'" );
85 79
86 - AttributeAccessorSCD zSnagCD =
87 - metaDataForPO.getAccessorSCDrequired( metaDataForPO.getSnagAttributeName() );
80 + AttributeAccessorSCD zSnagCD = metaDataForPO.getAccessorSCDrequired( metaDataForPO.getSnagAttributeName() );
88 81
89 82 Long zUniqueSnagValue = mCommonSupport.getNextSequenceNumber( "Snags" );
90 83
91 84 PersistenceHelper helper = getPersistenceHelper();
92 - if ( !helper.snagOne( metaDataForPO, zKeyCD, zSnagCD, zUniqueSnagValue, pSelectionWhereClause,
93 - pOrderBy, pUpdateValuePairs ) )
85 + if ( !helper.snagOne( metaDataForPO, zKeyCD, zSnagCD, zUniqueSnagValue, pSelectionWhereClause, pOrderBy, pUpdateValuePairs ) )
94 86 {
95 87 return null;
96 88 }
  @@ -109,14 +101,10 @@
109 101 * @throws UnsupportedOperationException - if the PO type does not support 'snaging'
110 102 * @throws DBException - Exception regarding the OR layer
111 103 */
112 - @SuppressWarnings({"unchecked"})
113 - @Override
114 - public final <T extends PersistentObject> T snagOne( Class<T> pPersistedObjectClass,
115 - WhereClause pSelectionWhereClause, OrderBy pOrderBy,
116 - ColumnUpdateValuePair... pUpdateValuePairs )
104 + @SuppressWarnings({"unchecked"}) @Override
105 + public final <T extends PersistentObject> T snagOne( Class<T> pPersistedObjectClass, WhereClause pSelectionWhereClause, OrderBy pOrderBy, ColumnUpdateValuePair... pUpdateValuePairs )
117 106 throws UnsupportedOperationException, DBException
118 107 {
119 - return (T) snagOne( pPersistedObjectClass.getName(), pSelectionWhereClause, pOrderBy,
120 - pUpdateValuePairs );
108 + return (T) snagOne( pPersistedObjectClass.getName(), pSelectionWhereClause, pOrderBy, pUpdateValuePairs );
121 109 }
122 110 }