Assembla home | Assembla project page
 

Changeset 73 for core/trunk

Show
Ignore:
Timestamp:
07/06/08 18:20:47 (5 months ago)
Author:
restamon
Message:

Look-up table back-end

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • core/trunk/pom.xml

    r70 r73  
    9797  </reporting> 
    9898 
     99  <build> 
     100    <resources> 
     101      <resource> 
     102        <directory>src/main/resources</directory> 
     103      </resource> 
     104      <resource> 
     105        <directory>src/main/java</directory> 
     106        <includes> 
     107          <include>**/*.xml</include> 
     108        </includes> 
     109      </resource> 
     110    </resources> 
     111    <testResources> 
     112      <testResource> 
     113        <directory>src/test/resources</directory> 
     114      </testResource> 
     115            <testResource> 
     116                <directory>src/test/spring</directory> 
     117                <includes> 
     118                    <include>**/*.xml</include> 
     119                </includes> 
     120            </testResource> 
     121    </testResources> 
     122  </build> 
     123 
    99124  <dependencies> 
    100125    <dependency> 
     
    139164    </dependency> 
    140165    <dependency> 
     166      <groupId>commons-dbcp</groupId> 
     167      <artifactId>commons-dbcp</artifactId> 
     168      <version>20030825.184428</version> 
     169    </dependency> 
     170    <dependency> 
     171      <groupId>commons-pool</groupId> 
     172      <artifactId>commons-pool</artifactId> 
     173      <version>20030825.183949</version> 
     174    </dependency> 
     175    <dependency> 
     176      <groupId>org.springframework</groupId> 
     177      <artifactId>spring</artifactId> 
     178      <version>2.5.5</version> 
     179    </dependency> 
     180    <dependency> 
     181      <groupId>org.springframework</groupId> 
     182      <artifactId>spring-hibernate3</artifactId> 
     183      <version>2.0.8</version> 
     184    </dependency> 
     185    <dependency> 
    141186      <groupId>org.springframework.security</groupId> 
    142187      <artifactId>spring-security-core</artifactId> 
    143       <version>2.0.1</version> 
     188      <version>2.0.3</version> 
     189    </dependency> 
     190    <dependency> 
     191      <groupId>org.springframework</groupId> 
     192      <artifactId>spring-test</artifactId> 
     193      <version>2.5.5</version> 
     194      <scope>test</scope> 
     195    </dependency> 
     196    <dependency> 
     197      <groupId>mysql</groupId> 
     198      <artifactId>mysql-connector-java</artifactId> 
     199      <version>5.1.6</version> 
     200      <scope>test</scope> 
     201    </dependency> 
     202    <dependency> 
     203      <groupId>aspectj</groupId> 
     204      <artifactId>aspectjweaver</artifactId> 
     205      <version>1.5.4</version> 
     206    </dependency> 
     207    <dependency> 
     208      <groupId>log4j</groupId> 
     209      <artifactId>log4j</artifactId> 
     210      <version>1.2.9</version> 
    144211    </dependency> 
    145212  </dependencies> 
  • core/trunk/src/main/java/org/restafarian/core/beans/LookupTable.java

    r72 r73  
    11package org.restafarian.core.beans; 
     2 
     3import java.util.ArrayList; 
     4import java.util.List; 
    25 
    36/** 
     
    912        private String name = null; 
    1013        private String description = null; 
    11         private LookupTableProperty[] property = null; 
     14        private List property = null; 
     15 
     16        public void addProperty(LookupTableProperty lookupTableProperty) { 
     17                if (property == null) { 
     18                        property = new ArrayList(); 
     19                } 
     20                lookupTableProperty.setTableId(id); 
     21                lookupTableProperty.setSequence(property.size()); 
     22                property.add(lookupTableProperty); 
     23        } 
     24 
     25        public LookupTableProperty getProperty(int sequence) { 
     26                LookupTableProperty lookupTableProperty = null; 
     27 
     28                if (property != null && property.size() > sequence) { 
     29                        lookupTableProperty = (LookupTableProperty) property.get(sequence); 
     30                } 
     31 
     32                return lookupTableProperty; 
     33        } 
     34 
     35        public void setProperty(int sequence, LookupTableProperty lookupTableProperty) { 
     36                if (property != null && property.size() > sequence) { 
     37                        property.set(sequence, lookupTableProperty); 
     38                } 
     39        } 
    1240 
    1341        public String getDescription() { 
    1442                return description; 
    1543        } 
     44 
    1645        public void setDescription(String description) { 
    1746                this.description = description; 
    1847        } 
     48 
    1949        public String getId() { 
    2050                return id; 
    2151        } 
     52 
    2253        public void setId(String id) { 
    2354                this.id = id; 
    2455        } 
     56 
    2557        public String getName() { 
    2658                return name; 
    2759        } 
     60 
    2861        public void setName(String name) { 
    2962                this.name = name; 
    3063        } 
    31         public LookupTableProperty[] getProperty() { 
     64 
     65        public List getProperty() { 
    3266                return property; 
    3367        } 
    34         public void setProperty(LookupTableProperty[] property) { 
     68 
     69        public void setProperty(List property) { 
    3570                this.property = property; 
    3671        } 
  • core/trunk/src/main/java/org/restafarian/core/beans/LookupTableProperty.java

    r72 r73  
    88        private int id = -1; 
    99        private String tableId = null; 
     10        private int sequence = 0; 
    1011        private String name = null; 
    1112        private String type = null; 
     
    4647                this.notes = notes; 
    4748        } 
     49        public int getSequence() { 
     50                return sequence; 
     51        } 
     52        public void setSequence(int sequence) { 
     53                this.sequence = sequence; 
     54        } 
    4855        public String getSize() { 
    4956                return size;