Anonymous avatar Anonymous committed 7fe6e5c

Comments (0)

Files changed (5)

   <component name="CodeStyleProjectProfileManger">
     <option name="PROJECT_PROFILE" />
     <option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />
-    <scopes />
-    <profiles />
   </component>
   <component name="CodeStyleSettingsManager">
     <option name="PER_PROJECT_SETTINGS" />
     <option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />
     <scopes />
     <profiles>
-      <profile version="1.0">
+      <profile version="1.0" is_locked="false">
         <option name="myName" value="Project Default" />
         <option name="myLocal" value="false" />
         <used_levels>
           </server>
         </used_levels>
         <inspection_tool class="InfiniteLoopStatement" level="WARNING" enabled="false" />
-        <inspection_tool class="ILLEGAL_DEPENDENCY" level="WARNING" enabled="true" />
         <inspection_tool class="ResultSetIndexZero" level="ERROR" enabled="true" />
         <inspection_tool class="RedundantTypeArguments" level="WARNING" enabled="false" />
-        <inspection_tool class="HardCodedString" level="WARNING" enabled="false" />
         <inspection_tool class="SerializableWithUnconstructableAncestor" level="WARNING" enabled="true" />
         <inspection_tool class="ConstantConditions" level="WARNING" enabled="false">
           <option name="SUGGEST_NULLABLE_ANNOTATIONS" value="false" />
         </inspection_tool>
-        <inspection_tool class="DuplicateStringLiteral" level="WARNING" enabled="false" />
         <inspection_tool class="ReadResolveAndWriteReplaceProtected" level="WARNING" enabled="true" />
         <inspection_tool class="LengthOneStringsInConcatenation" level="WARNING" enabled="true" />
-        <inspection_tool class="UNUSED_THROWS" level="WARNING" enabled="true" />
-        <inspection_tool class="EJB_ERROR" level="ERROR" enabled="true" />
         <inspection_tool class="ReturnFromFinallyBlock" level="WARNING" enabled="false" />
         <inspection_tool class="CloneCallsSuperClone" level="WARNING" enabled="false" />
         <inspection_tool class="UnnecessaryBoxing" level="WARNING" enabled="false" />
-        <inspection_tool class="WRONG_PACKAGE_STATEMENT" level="WARNING" enabled="true" />
         <inspection_tool class="ManualArrayCopy" level="WARNING" enabled="false" />
         <inspection_tool class="IgnoreResultOfCall" level="WARNING" enabled="false">
           <option name="m_reportAllNonLibraryCalls" value="false" />
           <option name="callCheckString" value="java.io.InputStream,read,java.io.InputStream,skip,java.lang.StringBuffer,toString,java.lang.StringBuilder,toString,java.lang.String,.*,java.math.BigInteger,.*,java.math.BigDecimal,.*,java.net.InetAddress,.*" />
         </inspection_tool>
         <inspection_tool class="ThrowFromFinallyBlock" level="WARNING" enabled="false" />
-        <inspection_tool class="UNKNOWN_JAVADOC_TAG" level="ERROR" enabled="true" />
         <inspection_tool class="AbstractMethodOverridesAbstractMethod" level="WARNING" enabled="true" />
         <inspection_tool class="FinalStaticMethod" level="WARNING" enabled="false" />
         <inspection_tool class="SuspiciousMethodCalls" level="WARNING" enabled="false" />
         <inspection_tool class="ResultOfObjectAllocationIgnored" level="WARNING" enabled="true" />
-        <inspection_tool class="ACCESS_STATIC_VIA_INSTANCE" level="WARNING" enabled="true" />
         <inspection_tool class="UnnecessaryUnboxing" level="WARNING" enabled="false" />
         <inspection_tool class="NoExplicitFinalizeCalls" level="WARNING" enabled="false" />
         <inspection_tool class="FinalPrivateMethod" level="WARNING" enabled="false" />
-        <inspection_tool class="EJB_WARNING" level="WARNING" enabled="true" />
-        <inspection_tool class="StringLiteral" level="WARNING" enabled="false" />
-        <inspection_tool class="DEPRECATED_SYMBOL" level="WARNING" enabled="true" />
         <inspection_tool class="SynchronizeOnNonFinalField" level="WARNING" enabled="false" />
         <inspection_tool class="TrivialIf" level="WARNING" enabled="false" />
-        <inspection_tool class="JAVADOC_ERROR" level="ERROR" enabled="true" />
         <inspection_tool class="ObjectEqualsNull" level="WARNING" enabled="false" />
         <inspection_tool class="UnnecessaryBlockStatement" level="WARNING" enabled="true" />
         <inspection_tool class="EmptyFinallyBlock" level="WARNING" enabled="false" />
         <inspection_tool class="AssertAsName" level="WARNING" enabled="true" />
         <inspection_tool class="TextLabelInSwitchStatement" level="ERROR" enabled="true" />
         <inspection_tool class="OctalLiteral" level="WARNING" enabled="false" />
-        <inspection_tool class="ThrowGenericClass" level="WARNING" enabled="false" />
         <inspection_tool class="InfiniteRecursion" level="WARNING" enabled="false" />
         <inspection_tool class="EmptyCatchBlock" level="WARNING" enabled="false">
           <option name="m_includeComments" value="true" />
         <inspection_tool class="EmptySynchronizedStatement" level="WARNING" enabled="true" />
         <inspection_tool class="UnnecessaryDefault" level="WARNING" enabled="true" />
         <inspection_tool class="IncompatibleMask" level="WARNING" enabled="false" />
-        <inspection_tool class="SILLY_ASSIGNMENT" level="WARNING" enabled="true" />
         <inspection_tool class="ExtendsObject" level="WARNING" enabled="false" />
         <inspection_tool class="SerialVersionUIDNotStaticFinal" level="WARNING" enabled="true" />
         <inspection_tool class="EmptyTryBlock" level="WARNING" enabled="false" />
     <option name="GENERATE_IIOP_STUBS" value="false" />
     <option name="ADDITIONAL_OPTIONS_STRING" value="" />
   </component>
+  <component name="StarteamVcsAdapter" />
+  <component name="VssVcs" />
+  <component name="com.intellij.jsf.UserDefinedFacesConfigs">
+    <option name="USER_DEFINED_CONFIGS">
+      <value>
+        <list size="0" />
+      </value>
+    </option>
+  </component>
   <component name="libraryTable" />
   <component name="uidesigner-configuration">
     <option name="INSTRUMENT_CLASSES" value="true" />

providers/ejb3/ejb3.iml

         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module" module-name="propertyset" />
     <orderEntry type="module-library">
       <library>
         <CLASSES>
-          <root url="jar://$MODULE_DIR$/lib/pitchfork.jar!/" />
+          <root url="jar://$MODULE_DIR$/lib/ejb3.jar!/" />
         </CLASSES>
         <JAVADOC />
         <SOURCES />
       </library>
     </orderEntry>
+    <orderEntry type="module" module-name="propertyset" />
     <orderEntryProperties />
   </component>
 </module>
Add a comment to this file

providers/ejb3/lib/ejb3.jar

Binary file added.

providers/ejb3/src/com/opensymphony/module/propertyset/ejb3/EJBPropertySetImpl.java

 import javax.annotation.PostConstruct;
 import javax.ejb.Stateful;
 import javax.ejb.TransactionAttribute;
+import javax.ejb.TransactionAttributeType;
 import javax.ejb.Remove;
 import javax.persistence.EntityManager;
 import javax.persistence.EntityTransaction;
  *         Time: 4:51:53 PM
  */
 @Stateful(name = "OSPropertySet")
+@TransactionAttribute(TransactionAttributeType.SUPPORTS)
 public class EJBPropertySetImpl extends AbstractPropertySet implements EJBPropertySet
 {
   private EntityManager entityManager;
     return getType(entityName, entityId, key);
   }
 
+  @TransactionAttribute
   public int getType(String entityName, long entityId, String key) throws PropertyException
   {
     EntryPK pk = new EntryPK(entityName, entityId, key);
     return exists(entityName, entityId, key);
   }
 
+  @TransactionAttribute
   public boolean exists(String entityName, long entityId, String key) throws PropertyException
   {
     EntryPK pk = new EntryPK(entityName, entityId, key);
     return true;
   }
 
+  @TransactionAttribute
   protected void setImpl(int type, String key, Object value) throws PropertyException
   {
     setImpl(entityName, entityId, type, key, value);
     return get(entityName, entityId, type, key);
   }
 
+  @TransactionAttribute
   protected Object get(String entityName, long entityId, int type, String key) throws PropertyException
   {
     EntryPK pk = new EntryPK(entityName, entityId, key);

providers/ejb3/src/com/opensymphony/module/propertyset/ejb3/PropertyEntry.java

     this.type = type;
   }
 
+  @Lob
   public byte[] getData()
   {
     return data;
     this.data = data;
   }
 
+  @Lob
   public byte[] getObjectData()
   {
     return objectData;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.