[jboss-svn-commits] JBL Code SVN: r24952 - labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Jan 27 13:09:06 EST 2009


Author: salaboy21
Date: 2009-01-27 13:09:06 -0500 (Tue, 27 Jan 2009)
New Revision: 24952

Removed:
   labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/EJB3PersistedVariable.java
   labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/EJB3VariableConverter.java
   labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/EJB3VariableTypeFinder.java
   labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/PersistedVariable.java
   labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/VariableConverter.java
   labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/VariableTypeFinder.java
Log:
name refactoring

Deleted: labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/EJB3PersistedVariable.java
===================================================================
--- labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/EJB3PersistedVariable.java	2009-01-27 16:35:43 UTC (rev 24951)
+++ labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/EJB3PersistedVariable.java	2009-01-27 18:09:06 UTC (rev 24952)
@@ -1,73 +0,0 @@
-/*
- *  Copyright 2009 salaboy.
- * 
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- * 
- *       http://www.apache.org/licenses/LICENSE-2.0
- * 
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *  under the License.
- */
-
-package org.drools.persistence.processinstance;
-
-import javax.persistence.Column;
-import javax.persistence.DiscriminatorValue;
-import javax.persistence.Entity;
-import javax.persistence.Transient;
-import org.hibernate.annotations.Any;
-import org.hibernate.annotations.AnyMetaDef;
-import org.hibernate.annotations.Cascade;
-import org.hibernate.annotations.CascadeType;
-import org.hibernate.annotations.MetaValue;
-
-
-
-/**
- *
- * @author salaboy
- */
-
- at Entity
-public class EJB3PersistedVariable extends PersistedVariable {
-  
-
-    @Transient
-    private Object realVariable;
-  
-    /**
-     * @return the realVariable
-     */
-
-    public Object getRealVariable() {
-        return realVariable;
-    }
-
-    /**
-     * @param realVariable the realVariable to set
-     */
-    
-    public void setRealVariable(Object realVariable) {
-        this.realVariable = realVariable;
-    }
-
-
-    public EJB3PersistedVariable(){
-        setConverter(this.getClass().toString());
-    }
-
-    @Override
-    public String getConverter() {
-        return getConverter();
-    }
-
-  
-
- 
-}

Deleted: labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/EJB3VariableConverter.java
===================================================================
--- labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/EJB3VariableConverter.java	2009-01-27 16:35:43 UTC (rev 24951)
+++ labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/EJB3VariableConverter.java	2009-01-27 18:09:06 UTC (rev 24952)
@@ -1,55 +0,0 @@
-/*
- *  Copyright 2009 salaboy.
- * 
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- * 
- *       http://www.apache.org/licenses/LICENSE-2.0
- * 
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *  under the License.
- */
-
-package org.drools.persistence.processinstance;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Field;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-
-/**
- *
- * @author salaboy
- */
-public class EJB3VariableConverter implements VariableConverter {
-
-    @PersistenceContext EntityManager em;
-
-    public PersistedVariable convertToPersistedVariable(String name, Object o) {
-        PersistedVariable variable = new EJB3PersistedVariable();
-        try {
-            
-            variable.setName(name);
-            Field id = o.getClass().getDeclaredField("id");
-            //((EJB3PersistedVariable)variable).setRealVariable(o);
-            
-        } catch (NoSuchFieldException ex) {
-            Logger.getLogger(EJB3VariableConverter.class.getName()).log(Level.SEVERE, null, ex);
-        } catch (SecurityException ex) {
-            Logger.getLogger(EJB3VariableConverter.class.getName()).log(Level.SEVERE, null, ex);
-        }
-        return variable;
-    }
-
-    public Object convertFromPersistedVariable(PersistedVariable variable) {
-        throw new UnsupportedOperationException("Not supported yet.");
-    }
-
-}

Deleted: labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/EJB3VariableTypeFinder.java
===================================================================
--- labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/EJB3VariableTypeFinder.java	2009-01-27 16:35:43 UTC (rev 24951)
+++ labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/EJB3VariableTypeFinder.java	2009-01-27 18:09:06 UTC (rev 24952)
@@ -1,34 +0,0 @@
-/*
- *  Copyright 2009 salaboy.
- * 
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- * 
- *       http://www.apache.org/licenses/LICENSE-2.0
- * 
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *  under the License.
- */
-
-package org.drools.persistence.processinstance;
-
-/**
- *
- * @author salaboy
- */
-public class EJB3VariableTypeFinder implements VariableTypeFinder{
-
-    public boolean accept(Object o) {
-        return true;
-    }
-
-    public String getType() {
-        return "org.drools.persistence.processinstance.EJB3PersistedVariable";
-    }
-
-}

Deleted: labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/PersistedVariable.java
===================================================================
--- labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/PersistedVariable.java	2009-01-27 16:35:43 UTC (rev 24951)
+++ labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/PersistedVariable.java	2009-01-27 18:09:06 UTC (rev 24952)
@@ -1,97 +0,0 @@
-/*
- *  Copyright 2009 salaboy.
- * 
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- * 
- *       http://www.apache.org/licenses/LICENSE-2.0
- * 
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *  under the License.
- */
-
-package org.drools.persistence.processinstance;
-
-import java.io.Serializable;
-
-
-
-import javax.persistence.Column;
-import javax.persistence.DiscriminatorColumn;
-import javax.persistence.DiscriminatorType;
-import javax.persistence.DiscriminatorValue;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Inheritance;
-import javax.persistence.InheritanceType;
-
-import javax.persistence.JoinColumn;
-import org.hibernate.annotations.Any;
-import org.hibernate.annotations.AnyMetaDef;
-import org.hibernate.annotations.MetaValue;
-
-
-/**
- *
- * @author salaboy
- */
- at Entity
- at Inheritance(strategy=InheritanceType.SINGLE_TABLE)
- at DiscriminatorColumn(name="TYPE", discriminatorType=DiscriminatorType.STRING,length=50)
- at DiscriminatorValue("GEN")
-public class PersistedVariable implements Serializable {
-    @Id @GeneratedValue(strategy=GenerationType.AUTO)
-    private Long id;
-    private String name;
-    private String converter;
-
-
-
-    public Long getId() {
-        return id;
-    }
-
-    public void setId(Long id) {
-        this.id = id;
-    }
-
-    /**
-     * @return the name
-     */
-    public String getName() {
-        return name;
-    }
-
-    /**
-     * @param name the name to set
-     */
-    public void setName(String name) {
-        this.name = name;
-    }
-
-   
-    /**
-     * @return the converter
-     */
-    public String getConverter() {
-        return converter;
-    }
-
-    /**
-     * @param converter the converter to set
-     */
-    public void setConverter(String converter) {
-        this.converter = converter;
-    }
-
-  
-
-  
-}

Deleted: labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/VariableConverter.java
===================================================================
--- labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/VariableConverter.java	2009-01-27 16:35:43 UTC (rev 24951)
+++ labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/VariableConverter.java	2009-01-27 18:09:06 UTC (rev 24952)
@@ -1,32 +0,0 @@
-/*
- *  Copyright 2009 salaboy.
- * 
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- * 
- *       http://www.apache.org/licenses/LICENSE-2.0
- * 
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *  under the License.
- */
-
-package org.drools.persistence.processinstance;
-
-/**
- *
- * @author salaboy
- */
-
-public interface VariableConverter {
-    public PersistedVariable convertToPersistedVariable(String name, Object o);
-
-    public Object convertFromPersistedVariable(PersistedVariable variable);
-
-    
-
-}

Deleted: labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/VariableTypeFinder.java
===================================================================
--- labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/VariableTypeFinder.java	2009-01-27 16:35:43 UTC (rev 24951)
+++ labs/jbossrules/branches/salaboy_VariablePersistenceStrategy/drools-process/drools-process-enterprise/src/main/java/org/drools/persistence/processinstance/VariableTypeFinder.java	2009-01-27 18:09:06 UTC (rev 24952)
@@ -1,29 +0,0 @@
-/*
- *  Copyright 2009 salaboy.
- * 
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- * 
- *       http://www.apache.org/licenses/LICENSE-2.0
- * 
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
- *  under the License.
- */
-
-package org.drools.persistence.processinstance;
-
-/**
- *
- * @author salaboy
- */
-public interface VariableTypeFinder {
-
-    public boolean accept(Object o);
-    public String getType();
-
-}




More information about the jboss-svn-commits mailing list