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