Source Code Cross Referenced for BaseNotificationStatusManager.java in  » Issue-Tracking » scarab-0.21 » org » tigris » scarab » om » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Issue Tracking » scarab 0.21 » org.tigris.scarab.om 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.tigris.scarab.om;
002:
003:        import java.math.BigDecimal;
004:        import java.util.Date;
005:        import java.util.List;
006:
007:        import org.apache.torque.Torque;
008:        import org.apache.torque.TorqueException;
009:        import org.apache.torque.manager.AbstractBaseManager;
010:        import org.apache.torque.manager.CacheListener;
011:        import org.apache.torque.manager.MethodResultCache;
012:        import org.apache.torque.om.ObjectKey;
013:        import org.apache.torque.om.SimpleKey;
014:        import org.apache.torque.om.Persistent;
015:        import org.apache.torque.util.Criteria;
016:
017:        /**
018:         * This class manages NotificationStatus objects.
019:         * This class was autogenerated by Torque  *
020:         * You should not use this class directly.  It should not even be
021:         * extended all references should be to NotificationStatusManager
022:         */
023:        public abstract class BaseNotificationStatusManager extends
024:                AbstractBaseManager {
025:            /** The name of the manager */
026:            protected static final String MANAGED_CLASS = "org.tigris.scarab.om.NotificationStatus";
027:
028:            /** The name of our class to pass to Torque as the default manager. */
029:            protected static final String DEFAULT_MANAGER_CLASS = "org.tigris.scarab.om.NotificationStatusManager";
030:
031:            /**
032:             * Retrieves an implementation of the manager, based on the settings in
033:             * the configuration.
034:             *
035:             * @return an implementation of NotificationStatusManager.
036:             */
037:            public static NotificationStatusManager getManager() {
038:                return (NotificationStatusManager) Torque.getManager(
039:                        NotificationStatusManager.MANAGED_CLASS,
040:                        NotificationStatusManager.DEFAULT_MANAGER_CLASS);
041:            }
042:
043:            /**
044:             * Static accessor for the @see #getInstanceImpl().
045:             *
046:             * @return a <code>NotificationStatus</code> value
047:             * @exception TorqueException if an error occurs
048:             */
049:            public static NotificationStatus getInstance()
050:                    throws TorqueException {
051:                return getManager().getInstanceImpl();
052:            }
053:
054:            /**
055:             * Static accessor for the @see #getInstanceImpl(ObjectKey).
056:             *
057:             * @param id an <code>ObjectKey</code> value
058:             * @return a <code>NotificationStatus</code> value
059:             * @exception TorqueException if an error occurs
060:             */
061:            public static NotificationStatus getInstance(ObjectKey id)
062:                    throws TorqueException {
063:                return getManager().getInstanceImpl(id);
064:            }
065:
066:            /**
067:             * Static accessor for the @see #getCachedInstanceImpl(ObjectKey).
068:             * Loads <code>NotificationStatus</code> from cache, returns 
069:             * <code>null</code>, if instance is not in cache
070:             *
071:             * @param id an <code>ObjectKey</code> value
072:             * @return a <code>NotificationStatus</code> value
073:             * @exception TorqueException if an error occurs
074:             */
075:            public static NotificationStatus getCachedInstance(ObjectKey id)
076:                    throws TorqueException {
077:                return getManager().getCachedInstanceImpl(id);
078:            }
079:
080:            /**
081:             * Static accessor for the @see #getInstanceImpl(ObjectKey, boolean).
082:             *
083:             * @param id an <code>ObjectKey</code> value
084:             * @param fromCache if true, look for cached NotificationStatuss before loading
085:             * from storage.
086:             * @return a <code>NotificationStatus</code> value
087:             * @exception TorqueException if an error occurs
088:             */
089:            public static NotificationStatus getInstance(ObjectKey id,
090:                    boolean fromCache) throws TorqueException {
091:                return getManager().getInstanceImpl(id, fromCache);
092:            }
093:
094:            /**
095:             * Static accessor for the @see #getInstancesImpl(List).
096:             *
097:             * @param ids a <code>List</code> value
098:             * @return a <code>List</code> value
099:             * @exception TorqueException if an error occurs
100:             */
101:            public static List getInstances(List ids) throws TorqueException {
102:                return getManager().getInstancesImpl(ids);
103:            }
104:
105:            /**
106:             * Static accessor for the @see #getInstancesImpl(List, boolean).
107:             *
108:             * @param ids a <code>List</code> value
109:             * @param fromCache if true, look for cached NotificationStatuss before loading
110:             * from storage.
111:             * @return a <code>List</code> value
112:             * @exception TorqueException if an error occurs
113:             */
114:            public static List getInstances(List ids, boolean fromCache)
115:                    throws TorqueException {
116:                return getManager().getInstancesImpl(ids, fromCache);
117:            }
118:
119:            public static void putInstance(Persistent om)
120:                    throws TorqueException {
121:                getManager().putInstanceImpl(om);
122:            }
123:
124:            public static void clear() throws TorqueException {
125:                getManager().clearImpl();
126:            }
127:
128:            public static boolean exists(NotificationStatus obj)
129:                    throws TorqueException {
130:                return getManager().existsImpl(obj);
131:            }
132:
133:            public static MethodResultCache getMethodResult() {
134:                return getManager().getMethodResultCache();
135:            }
136:
137:            public static void addCacheListener(CacheListener listener) {
138:                getManager().addCacheListenerImpl(listener);
139:            }
140:
141:            /**
142:             * Creates a new <code>BaseNotificationStatusManager</code> instance.
143:             *
144:             * @exception TorqueException if an error occurs
145:             */
146:            public BaseNotificationStatusManager() throws TorqueException {
147:                setClassName("org.tigris.scarab.om.NotificationStatus");
148:            }
149:
150:            /**
151:             * Get a fresh instance of a NotificationStatusManager
152:             */
153:            protected NotificationStatus getInstanceImpl()
154:                    throws TorqueException {
155:                NotificationStatus obj = null;
156:                try {
157:                    obj = (NotificationStatus) getOMInstance();
158:                } catch (Exception e) {
159:                    throw new TorqueException(e);
160:                }
161:                return obj;
162:            }
163:
164:            /**
165:             * Get a NotificationStatus with the given id.
166:             *
167:             * @param id <code>ObjectKey</code> value
168:             */
169:            protected NotificationStatus getInstanceImpl(ObjectKey id)
170:                    throws TorqueException {
171:                return (NotificationStatus) getOMInstance(id);
172:            }
173:
174:            /**
175:             * Get a NotificationStatus with the given id from the cache. Returns 
176:             * <code>null</code> if instance is not in cache
177:             *
178:             * @param id <code>ObjectKey</code> value
179:             */
180:            protected NotificationStatus getCachedInstanceImpl(ObjectKey id)
181:                    throws TorqueException {
182:                return (NotificationStatus) cacheGet(id);
183:            }
184:
185:            /**
186:             * Get a NotificationStatus with the given id.
187:             *
188:             * @param id <code>ObjectKey</code> value
189:             * @param fromCache if true, look for cached NotificationStatuss before loading
190:             * from storage.
191:             */
192:            protected NotificationStatus getInstanceImpl(ObjectKey id,
193:                    boolean fromCache) throws TorqueException {
194:                return (NotificationStatus) getOMInstance(id, fromCache);
195:            }
196:
197:            /**
198:             * Gets a list of NotificationStatuss based on id's.
199:             *
200:             * @param ids a List of <code>ObjectKeys</code> value
201:             * @return a <code>List</code> of NotificationStatuss
202:             * @exception TorqueException if an error occurs
203:             */
204:            protected List getInstancesImpl(List ids) throws TorqueException {
205:                return getOMs(ids);
206:            }
207:
208:            /**
209:             * Gets a list of NotificationStatuss based on id's.
210:             *
211:             * @param ids a List of <code>ObjectKeys</code> value
212:             * @param fromCache if true, look for cached NotificationStatuss before loading
213:             * from storage.
214:             * @return a <code>List</code> of NotificationStatuss
215:             * @exception TorqueException if an error occurs
216:             */
217:            protected List getInstancesImpl(List ids, boolean fromCache)
218:                    throws TorqueException {
219:                return getOMs(ids, fromCache);
220:            }
221:
222:            /**
223:             * check for a duplicate project name
224:             */
225:            protected boolean existsImpl(NotificationStatus om)
226:                    throws TorqueException {
227:                Criteria crit = NotificationStatusPeer
228:                        .buildCriteria((NotificationStatus) om);
229:                return NotificationStatusPeer.doSelect(crit).size() > 0;
230:            }
231:
232:            protected Persistent retrieveStoredOM(ObjectKey id)
233:                    throws TorqueException {
234:                return NotificationStatusPeer.retrieveByPK(id);
235:            }
236:
237:            /**
238:             * Gets a list of ModuleEntities based on id's.
239:             *
240:             * @param ids a <code>NumberKey[]</code> value
241:             * @return a <code>List</code> value
242:             * @exception TorqueException if an error occurs
243:             */
244:            protected List retrieveStoredOMs(List ids) throws TorqueException {
245:                return NotificationStatusPeer.retrieveByPKs(ids);
246:            }
247:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.