KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > facilities > factories > FacilityFactory


1 /*
2  * Created on Dec 9, 2004
3  *
4  * TODO To change the template for this generated file go to
5  * Window - Preferences - Java - Code Style - Code Templates
6  */

7 package com.dotmarketing.portlets.facilities.factories;
8
9 import com.dotmarketing.factories.InodeFactory;
10 import com.dotmarketing.portlets.facilities.model.Facility;
11
12 /**
13  * @author maria
14  *
15  * TODO To change the template for this generated type comment go to
16  * Window - Preferences - Java - Code Style - Code Templates
17  */

18 public class FacilityFactory {
19     
20     public static Facility getFacility(String JavaDoc inode) {
21         return (Facility) InodeFactory.getInode(inode,Facility.class);
22     }
23     
24     public static void deleteFacility(Facility f) {
25         InodeFactory.deleteInode(f);
26     }
27
28 }
29
Popular Tags