directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r539734 - in /directory/shared/trunk/ldap/src/main: antlr/TriggerSpecification.g java/org/apache/directory/shared/ldap/trigger/TriggerSpecification.java
Date Sat, 19 May 2007 11:35:24 GMT
Author: ersiner
Date: Sat May 19 04:35:24 2007
New Revision: 539734

URL: http://svn.apache.org/viewvc?view=rev&rev=539734
Log:
Generalized Trigger code.

Modified:
    directory/shared/trunk/ldap/src/main/antlr/TriggerSpecification.g
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerSpecification.java

Modified: directory/shared/trunk/ldap/src/main/antlr/TriggerSpecification.g
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/antlr/TriggerSpecification.g?view=diff&rev=539734&r1=539733&r2=539734
==============================================================================
--- directory/shared/trunk/ldap/src/main/antlr/TriggerSpecification.g (original)
+++ directory/shared/trunk/ldap/src/main/antlr/TriggerSpecification.g Sat May 19 04:35:24
2007
@@ -29,6 +29,8 @@
 
 import org.apache.directory.shared.ldap.name.LdapDN;
 import org.apache.directory.shared.ldap.schema.NormalizerMappingResolver;
+import org.apache.directory.shared.ldap.trigger.StoredProcedureOption;
+import org.apache.directory.shared.ldap.trigger.StoredProcedureParameter;
 import org.apache.directory.shared.ldap.trigger.TriggerSpecification.SPSpec;
 
 import org.slf4j.Logger;
@@ -79,9 +81,9 @@
     
     private String triggerStoredProcedureName;
     
-	private List triggerStoredProcedureParameters;
+	private List<StoredProcedureParameter> triggerStoredProcedureParameters;
 	
-	private List triggerStoredProcedureOptions;
+	private List<StoredProcedureOption> triggerStoredProcedureOptions;
     
     private List<SPSpec> spSpecs;   
     
@@ -238,8 +240,8 @@
     ID_CALL
     {
     	triggerStoredProcedureName = null;
-    	triggerStoredProcedureParameters = new ArrayList();
-		triggerStoredProcedureOptions = new ArrayList();
+    	triggerStoredProcedureParameters = new ArrayList<StoredProcedureParameter>();
+		triggerStoredProcedureOptions = new ArrayList<StoredProcedureOption>();
     }
     ( SP )+ triggerStoredProcedureName=fullyQualifiedStoredProcedureName ( SP )*
         ( genericStoredProcedureOptionList ( SP )* )?

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerSpecification.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerSpecification.java?view=diff&rev=539734&r1=539733&r2=539734
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerSpecification.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerSpecification.java
Sat May 19 04:35:24 2007
@@ -20,7 +20,6 @@
 
 package org.apache.directory.shared.ldap.trigger;
 
-import java.util.Iterator;
 import java.util.List;
 
 import org.apache.commons.lang.NullArgumentException;
@@ -41,7 +40,6 @@
     private List<SPSpec> spSpecs; 
     
     
-    
     public TriggerSpecification( LdapOperation ldapOperation, ActionTime actionTime, List<SPSpec>
spSpecs )
     {
         super();
@@ -78,11 +76,11 @@
     {
     	private String name;
         
-        private List<String> options;
+        private List<StoredProcedureOption> options;
         
-        private List<String> parameters;
+        private List<StoredProcedureParameter> parameters;
 
-        public SPSpec(String name, List<String> options, List<String> parameters)
{
+        public SPSpec(String name, List<StoredProcedureOption> options, List<StoredProcedureParameter>
parameters) {
 			super();
 			this.name = name;
 			this.options = options;
@@ -93,11 +91,11 @@
 			return name;
 		}
 
-		public List<String> getOptions() {
+		public List<StoredProcedureOption> getOptions() {
 			return options;
 		}
 
-		public List<String> getParameters() {
+		public List<StoredProcedureParameter> getParameters() {
 			return parameters;
 		}
 
@@ -138,15 +136,6 @@
 			return true;
 		}
 
-		
-
     }
-
-
-
-
-
-	
-    
     
 }



Mime
View raw message