Prechádzať zdrojové kódy

完善数据库存储知识库添加采用spring中配置数据源功能

jacky6024 8 rokov pred
rodič
commit
82c3212432

+ 0 - 3
urule-console/src/main/java/com/bstek/urule/console/repository/database/DbPersistenceManager.java

@@ -1074,9 +1074,6 @@ public class DbPersistenceManager extends AbstractBundlePersistenceManager imple
         }
     }
 
-    /**
-     * @inheritDoc
-     */
     public String toString() {
         return name;
     }

+ 0 - 14
urule-console/src/main/java/com/bstek/urule/console/repository/database/journal/DatabaseJournal.java

@@ -292,8 +292,6 @@ public class DatabaseJournal extends AbstractJournal implements DatabaseAware{
      * <code>url</code> have been specified and optionally deduces a valid
      * database type. Should be overridden by subclasses that use a different way to
      * create a connection and therefore require other arguments.
-     *
-     * @see #getConnection()
      * @throws JournalException if initialization fails
      */
     protected void init() throws JournalException {
@@ -394,7 +392,6 @@ public class DatabaseJournal extends AbstractJournal implements DatabaseAware{
     }
 
     /**
-     * {@inheritDoc}
      * <p>
      * This journal is locked by incrementing the current value in the table
      * named <code>GLOBAL_REVISION</code>, which effectively write-locks this
@@ -428,10 +425,6 @@ public class DatabaseJournal extends AbstractJournal implements DatabaseAware{
             }
         }
     }
-
-    /**
-     * {@inheritDoc}
-     */
     protected void doUnlock(boolean successful) {
         endBatch(successful);
     }
@@ -453,8 +446,6 @@ public class DatabaseJournal extends AbstractJournal implements DatabaseAware{
     }
 
     /**
-     * {@inheritDoc}
-     * <p>
      * Save away the locked revision inside the newly appended record.
      */
     protected void appending(AppendRecord record) {
@@ -462,8 +453,6 @@ public class DatabaseJournal extends AbstractJournal implements DatabaseAware{
     }
 
     /**
-     * {@inheritDoc}
-     * <p>
      * We have already saved away the revision for this record.
      */
     protected void append(AppendRecord record, InputStream in, int length)
@@ -479,9 +468,6 @@ public class DatabaseJournal extends AbstractJournal implements DatabaseAware{
         }
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public void close() {
         if (janitorThread != null) {
             janitorThread.interrupt();

+ 0 - 11
urule-console/src/main/java/com/bstek/urule/console/repository/database/journal/DatabaseRecordIterator.java

@@ -70,19 +70,11 @@ public class DatabaseRecordIterator implements RecordIterator {
      * Flag indicating whether EOF was reached.
      */
     private boolean isEOF;
-
-    /**
-     * Create a new instance of this class.
-     */
     public DatabaseRecordIterator(ResultSet rs, NamespaceResolver resolver, NamePathResolver npResolver) {
         this.rs = rs;
         this.resolver = resolver;
         this.npResolver = npResolver;
     }
-
-    /**
-     * {@inheritDoc}
-     */
     public boolean hasNext() {
         try {
             if (!isEOF && record == null) {
@@ -117,9 +109,6 @@ public class DatabaseRecordIterator implements RecordIterator {
         return lastRecord;
     }
 
-    /**
-     * {@inheritDoc}
-     */
     public void close() {
         if (lastRecord != null) {
             close(lastRecord);

+ 0 - 1
urule-console/src/main/java/com/bstek/urule/console/repository/database/manager/DerbyPersistenceManager.java

@@ -270,7 +270,6 @@ public class DerbyPersistenceManager extends DbPersistenceManager {
      * database.
      *
      * @throws SQLException if an error occurs
-     * @see DatabasePersistenceManager#closeConnection(Connection)
      */
     public void close() throws Exception {
         super.close();