Revision 415
Added by Matt Jones over 24 years ago
src/edu/ucsb/nceas/metacat/DocumentImpl.java | ||
---|---|---|
77 | 77 |
} |
78 | 78 |
|
79 | 79 |
/** |
80 |
* Construct a new document instance, writing the contents to the database |
|
80 |
* Construct a new document instance, writing the contents to the database. |
|
81 |
* This method is called from DBSAXHandler because we need to know the |
|
82 |
* root element name for documents without a DOCTYPE before creating it. |
|
81 | 83 |
* |
82 | 84 |
* @param conn the JDBC Connection to which all information is written |
83 | 85 |
* @param rootnodeid - sequence id of the root node in the document |
... | ... | |
104 | 106 |
writeDocumentToDB(action); |
105 | 107 |
} |
106 | 108 |
|
107 |
/** |
|
108 |
* Construct a new document instance, used for deleting documents |
|
109 |
* |
|
110 |
* @param conn the JDBC Connection to which all information is written |
|
111 |
*/ |
|
112 |
public DocumentImpl (Connection conn) |
|
113 |
{ |
|
114 |
this.conn = conn; |
|
115 |
} |
|
116 |
|
|
117 | 109 |
/** |
118 | 110 |
* get the document name |
119 | 111 |
*/ |
Also available in: Unified diff
Minor update to remove unneeded constructor in DocumentImpl class.