[Mydm-cvs] MyDM/src/java/org/mydm/core EDocumentFactory.java,1.7,1.8
Status: Pre-Alpha
Brought to you by:
vkdasari
From: <vkd...@us...> - 2004-03-04 22:11:03
|
Update of /cvsroot/mydm/MyDM/src/java/org/mydm/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24209/src/java/org/mydm/core Modified Files: EDocumentFactory.java Log Message: refactoring due to the changed to Metadata Class. (Metadata Class's constructor is made private and all methods are made static) Index: EDocumentFactory.java =================================================================== RCS file: /cvsroot/mydm/MyDM/src/java/org/mydm/core/EDocumentFactory.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** EDocumentFactory.java 3 Mar 2004 18:58:27 -0000 1.7 --- EDocumentFactory.java 4 Mar 2004 21:49:33 -0000 1.8 *************** *** 38,42 **** public class EDocumentFactory { - private static MetaData md = MetaData.getInstance(); private static final ConnectionPool CP = ConnectionPool.getInstance(); private static Logger log = Logger.getLogger("org.mydm.core.EDocumentFactory"); --- 38,41 ---- *************** *** 57,68 **** } // Get the metadata elements for this genre ! String[] genele = md.getGenreEleAry(rs.getString("type")); // Get the mapping of metadata elements to db elements ! HashMap ETD = md.getAllEleHash(); // set basic information ! edoc.setId(Integer.parseInt(rs.getString("id"))); ! edoc.setCollectionID(Integer.parseInt(rs.getString("collection_ref"))); edoc.setGenreName(rs.getString("type")); --- 56,68 ---- } // Get the metadata elements for this genre ! String[] genele = MetaData.getGenreEleAry(rs.getInt("genre_id")); // Get the mapping of metadata elements to db elements ! HashMap ETD = MetaData.getAllEleHash(); // set basic information ! edoc.setId(rs.getInt("id")); ! edoc.setGenid(rs.getInt("genre_id")); ! edoc.setCollectionID(rs.getInt("collection_ref")); edoc.setGenreName(rs.getString("type")); |