Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -5,27 +5,22 @@
5 5 import org.litesoft.orsup.base.*;
6 6 import org.litesoft.orsup.selection.*;
7 7
8 - public abstract class AbstractNonTransactionalFinder<FT extends NonTransactionalFinder> extends AbstractFinder
9 - implements NonTransactionalFinder<FT>
8 + public abstract class AbstractNonTransactionalFinder<FT extends NonTransactionalFinder> extends AbstractFinder implements NonTransactionalFinder<FT>
10 9 {
11 - protected AbstractNonTransactionalFinder( ORFacilitatorInternalExtension pCommonSupport,
12 - boolean pIncludingImmortalInactives,
13 - POQueryFilterFactory pPOQueryFilterFactory )
10 + protected AbstractNonTransactionalFinder( ORFacilitatorInternalExtension pCommonSupport, boolean pIncludingImmortalInactives, POQueryFilterFactory pPOQueryFilterFactory )
14 11 {
15 12 super( pCommonSupport, LOGGER, pIncludingImmortalInactives, pPOQueryFilterFactory );
16 13 }
17 14
18 15 abstract protected FT create( boolean pIncludingImmortalInactives );
19 16
20 - @SuppressWarnings({"unchecked"})
21 - @Override
17 + @SuppressWarnings({"unchecked"}) @Override
22 18 public final FT includeImmortalInactives()
23 19 {
24 20 return isIncludingImmortalInactives() ? (FT) this : create( true );
25 21 }
26 22
27 - @SuppressWarnings({"unchecked"})
28 - @Override
23 + @SuppressWarnings({"unchecked"}) @Override
29 24 public final FT excludeImmortalInactives()
30 25 {
31 26 return isIncludingImmortalInactives() ? create( false ) : (FT) this;
  @@ -50,8 +45,7 @@
50 45 * @throws DBException - other Exception regarding the OR layer
51 46 */
52 47 @Override
53 - public final POKeyIterator findAllKeysCursored( String pPersistedObjectRegistrationName,
54 - WhereClause pSelectionWhereClause, OrderBy pOrderBy )
48 + public final POKeyIterator findAllKeysCursored( String pPersistedObjectRegistrationName, WhereClause pSelectionWhereClause, OrderBy pOrderBy )
55 49 throws IllegalStateException, UnsupportedOperationException, DBException
56 50 {
57 51 return LLfindAllKeysCursored( pPersistedObjectRegistrationName, pSelectionWhereClause, pOrderBy );
  @@ -69,8 +63,7 @@
69 63 * @throws DBException - other Exception regarding the OR layer
70 64 */
71 65 @Override
72 - public final POKeyIterator findAllKeysCursored( Class<? extends PersistentObject> pPersistedObjectClass,
73 - WhereClause pSelectionWhereClause, OrderBy pOrderBy )
66 + public final POKeyIterator findAllKeysCursored( Class<? extends PersistentObject> pPersistedObjectClass, WhereClause pSelectionWhereClause, OrderBy pOrderBy )
74 67 throws IllegalStateException, UnsupportedOperationException, DBException
75 68 {
76 69 return findAllKeysCursored( pPersistedObjectClass.getName(), pSelectionWhereClause, pOrderBy );
  @@ -88,8 +81,7 @@
88 81 * @throws DBException - other Exception regarding the OR layer
89 82 */
90 83 @Override
91 - public final POKeyIterator findAllKeysCursored( String pPersistedObjectRegistrationName,
92 - WhereClause pSelectionWhereClause )
84 + public final POKeyIterator findAllKeysCursored( String pPersistedObjectRegistrationName, WhereClause pSelectionWhereClause )
93 85 throws IllegalStateException, UnsupportedOperationException, DBException
94 86 {
95 87 return findAllKeysCursored( pPersistedObjectRegistrationName, pSelectionWhereClause, null );
  @@ -106,8 +98,7 @@
106 98 * @throws DBException - other Exception regarding the OR layer
107 99 */
108 100 @Override
109 - public final POKeyIterator findAllKeysCursored( Class<? extends PersistentObject> pPersistedObjectClass,
110 - WhereClause pSelectionWhereClause )
101 + public final POKeyIterator findAllKeysCursored( Class<? extends PersistentObject> pPersistedObjectClass, WhereClause pSelectionWhereClause )
111 102 throws IllegalStateException, UnsupportedOperationException, DBException
112 103 {
113 104 return findAllKeysCursored( pPersistedObjectClass.getName(), pSelectionWhereClause, null );
  @@ -124,8 +115,7 @@
124 115 * @throws DBException - Exception regarding the OR layer
125 116 */
126 117 @Override
127 - public final POQueryIterator findAllCursored( String pPersistedObjectRegistrationName,
128 - WhereClause pSelectionWhereClause, OrderBy pOrderBy )
118 + public final POQueryIterator findAllCursored( String pPersistedObjectRegistrationName, WhereClause pSelectionWhereClause, OrderBy pOrderBy )
129 119 throws DBException
130 120 {
131 121 return LLfindAllCursored( pPersistedObjectRegistrationName, pSelectionWhereClause, pOrderBy );
  @@ -140,14 +130,11 @@
140 130 *
141 131 * @throws DBException - Exception regarding the OR layer
142 132 */
143 - @SuppressWarnings({"unchecked"})
144 - @Override
145 - public final <T extends PersistentObject> POQueryIterator<T> findAllCursored(
146 - Class<T> pPersistedObjectClass, WhereClause pSelectionWhereClause, OrderBy pOrderBy )
133 + @SuppressWarnings({"unchecked"}) @Override
134 + public final <T extends PersistentObject> POQueryIterator<T> findAllCursored( Class<T> pPersistedObjectClass, WhereClause pSelectionWhereClause, OrderBy pOrderBy )
147 135 throws DBException
148 136 {
149 - return (POQueryIterator<T>) findAllCursored( pPersistedObjectClass.getName(), pSelectionWhereClause,
150 - pOrderBy );
137 + return (POQueryIterator<T>) findAllCursored( pPersistedObjectClass.getName(), pSelectionWhereClause, pOrderBy );
151 138 }
152 139
153 140 /**
  @@ -160,8 +147,7 @@
160 147 * @throws DBException - Exception regarding the OR layer
161 148 */
162 149 @Override
163 - public final POQueryIterator findAllCursored( String pPersistedObjectRegistrationName,
164 - WhereClause pSelectionWhereClause )
150 + public final POQueryIterator findAllCursored( String pPersistedObjectRegistrationName, WhereClause pSelectionWhereClause )
165 151 throws DBException
166 152 {
167 153 return findAllCursored( pPersistedObjectRegistrationName, pSelectionWhereClause, null );
  @@ -175,10 +161,8 @@
175 161 *
176 162 * @throws DBException - Exception regarding the OR layer
177 163 */
178 - @SuppressWarnings({"unchecked"})
179 - @Override
180 - public final <T extends PersistentObject> POQueryIterator<T> findAllCursored(
181 - Class<T> pPersistedObjectClass, WhereClause pSelectionWhereClause )
164 + @SuppressWarnings({"unchecked"}) @Override
165 + public final <T extends PersistentObject> POQueryIterator<T> findAllCursored( Class<T> pPersistedObjectClass, WhereClause pSelectionWhereClause )
182 166 throws DBException
183 167 {
184 168 return (POQueryIterator<T>) findAllCursored( pPersistedObjectClass.getName(), pSelectionWhereClause );
  @@ -204,12 +188,10 @@
204 188 WhereClause pSelectionWhereClause, OrderBy pOrderBy )
205 189 throws IllegalStateException, UnsupportedOperationException, DBException
206 190 {
207 - MetaDataForPOinternalExtension metaDataForPO =
208 - getRequiredMetaDataForPO( pPersistedObjectRegistrationName );
191 + MetaDataForPOinternalExtension metaDataForPO = getRequiredMetaDataForPO( pPersistedObjectRegistrationName );
209 192 POKeyQueryFilter zKeyFilter = POKeyQueryFilter.Force.type( createPOQueryFilter( metaDataForPO ) );
210 193 ORPersistenceHelper helper = (ORPersistenceHelper) getPersistenceHelper();
211 194 return helper.findAllKeysCursored( zKeyFilter, isIncludingImmortalInactives(), metaDataForPO, //
212 - getKeyCD( metaDataForPO, ", so can't findAllKeys" ),
213 - pSelectionWhereClause, pOrderBy );
195 + getKeyCD( metaDataForPO, ", so can't findAllKeys" ), pSelectionWhereClause, pOrderBy );
214 196 }
215 197 }