Source Code Cross Referenced for IEntityLockStore.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » concurrency » locking » 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 » Portal » uPortal_rel 2 6 1 GA » org.jasig.portal.concurrency.locking 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /* Copyright 2002 The JA-SIG Collaborative.  All rights reserved.
02:         *  See license distributed with this file and
03:         *  available online at http://www.uportal.org/license.html
04:         */
05:
06:        package org.jasig.portal.concurrency.locking;
07:
08:        import java.util.Date;
09:
10:        import org.jasig.portal.concurrency.IEntityLock;
11:        import org.jasig.portal.concurrency.LockingException;
12:
13:        /**
14:         * Interface for finding and maintaining <code>IEntityLocks</code>.
15:         * @author Dan Ellentuck
16:         * @version $Revision: 34757 $
17:         */
18:        public interface IEntityLockStore {
19:            /**
20:             * Adds this IEntityLock to the store.
21:             * @param lock org.jasig.portal.concurrency.locking.IEntityLock
22:             */
23:            public void add(IEntityLock lock) throws LockingException;
24:
25:            /**
26:             * Deletes this IEntityLock from the store.
27:             * @param lock org.jasig.portal.concurrency.locking.IEntityLock
28:             */
29:            public void delete(IEntityLock lock) throws LockingException;
30:
31:            /**
32:             * Delete all IEntityLocks from the store.
33:             */
34:            public void deleteAll() throws LockingException;
35:
36:            /**
37:             * Deletes the expired IEntityLocks from the underlying store.
38:             * @param expiration java.util.Date
39:             */
40:            public void deleteExpired(Date expiration) throws LockingException;
41:
42:            /**
43:             * Returns an IEntityLock[] based on the params, any or all of which may be null.
44:             * A null param means any value, so <code>find(myType,myKey,null,null,null)</code>
45:             * will return all <code>IEntityLocks</code> for myType and myKey.
46:             *
47:             * @return org.jasig.portal.groups.IEntityLock[]
48:             * @param entityType Class
49:             * @param entityKey String
50:             * @param lockType Integer - so we can accept a null value.
51:             * @param expiration Date
52:             * @param lockOwner String
53:             * @exception LockingException - wraps an Exception specific to the store.
54:             */
55:            public IEntityLock[] find(Class entityType, String entityKey,
56:                    Integer lockType, Date expiration, String lockOwner)
57:                    throws LockingException;
58:
59:            /**
60:             * Returns an IEntityLock[] containing unexpired locks, based on the params,
61:             * any or all of which may be null EXCEPT FOR <code>expiration</code>.  A null
62:             * param means any value, so <code> find(expir,myType,myKey,null,null)</code>
63:             * will return all <code>IEntityLocks</code> for myType and myKey unexpired
64:             * as of <code>expiration</code>.
65:             *
66:             * @param expiration Date
67:             * @param entityType Class
68:             * @param entityKey String
69:             * @param lockType Integer - so we can accept a null value.
70:             * @param lockOwner String
71:             * @exception LockingException - wraps an Exception specific to the store.
72:             */
73:            public IEntityLock[] findUnexpired(Date expiration,
74:                    Class entityType, String entityKey, Integer lockType,
75:                    String lockOwner) throws LockingException;
76:
77:            /**
78:             * Updates the lock's <code>expiration</code> in the underlying store.
79:             * @param lock org.jasig.portal.concurrency.locking.IEntityLock
80:             * @param newExpiration java.util.Date
81:             */
82:            public void update(IEntityLock lock, Date newExpiration)
83:                    throws LockingException;
84:
85:            /**
86:             * Updates the lock's <code>expiration</code> and <code>lockType</code> in the
87:             * underlying store.  Param <code>lockType</code> may be null.
88:             * @param lock org.jasig.portal.concurrency.locking.IEntityLock
89:             * @param newExpiration java.util.Date
90:             * @param newLockType Integer
91:             */
92:            public void update(IEntityLock lock, Date newExpiration,
93:                    Integer newLockType) throws LockingException;
94:
95:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.