Changeset 7642
- Timestamp:
- Mar 12, 2019, 7:53:27 AM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 6 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/DerivedBioAssay.java
r7381 r7642 513 513 // ------------------------------------------- 514 514 515 /**516 Get the physical bioassay that is the root bioassay for this derived517 bioassay set. This property is always inherited down to child events518 so this method never return null.519 @deprecated In 3.2, replaced with {@link #getPhysicalBioAssays()}.520 @return Always null521 */522 @Deprecated523 public PhysicalBioAssay getPhysicalBioAssay()524 {525 return null;526 }527 528 515 public void testFixChildren() 529 516 { … … 594 581 } 595 582 596 597 /**598 Get the parent derived bioassay set.599 @deprecated In 3.2, replaced with {@link #getParents()}600 @return Always null601 */602 @Deprecated603 public DerivedBioAssay getParent()604 {605 return null;606 }607 608 609 583 /** 610 584 Add a derived bioassay as a parent to this derived bioassay. -
trunk/src/core/net/sf/basedb/core/ItemContext.java
r7610 r7642 1764 1764 1765 1765 /** 1766 @deprecated In 3.1, use {@link #configureQuery(DbControl, SqlQuery, List)} instead1767 */1768 @Deprecated1769 public void configureQuery(DbControl dc, AbstractSqlQuery query, List<String> selectionList)1770 {1771 configureQuery(dc, (SqlQuery)query, selectionList);1772 }1773 1774 /**1775 1766 Use the settings in this context to configure a dynamic query. 1776 1767 <ul> … … 1901 1892 1902 1893 /** 1903 @deprecated In 3.9.2, use {@link #getDynamicExpression(DbControl, SqlQuery, String)} instead1904 */1905 @Deprecated1906 public static Expression getDynamicExpression(DbControl dc, String propertyDef)1907 {1908 return getDynamicExpression(dc, null, propertyDef);1909 }1910 1911 1912 /**1913 1894 Create an {@link Expression} from a string. If the string starts with: 1914 1895 … … 2018 1999 2019 2000 /** 2020 @deprecated In 3.9.2, use {@link #getDynamicSelect(DbControl, SqlQuery, String)} instead2021 */2022 @Deprecated2023 public static Select getDynamicSelect(DbControl dc, String propertyDef)2024 {2025 return getDynamicSelect(dc, null, propertyDef);2026 }2027 2028 /**2029 2001 Same as {@link #getDynamicExpression(DbControl, String)} but generates 2030 2002 a select object instead. -
trunk/src/core/net/sf/basedb/core/PluginSessionControl.java
r6437 r7642 61 61 throw new PermissionDeniedException("login"); 62 62 } 63 64 /**65 @throws PermissionDeniedException Always66 */67 @Override68 @Deprecated69 public synchronized void login(String login, String password, String comment)70 throws ItemNotFoundException, PermissionDeniedException, InvalidPasswordException, BaseException71 {72 throw new PermissionDeniedException("login");73 }74 63 75 64 @Override -
trunk/src/core/net/sf/basedb/core/PropertyFilter.java
r7605 r7642 1104 1104 1105 1105 /** 1106 @deprecated In 3.9.2, use {@link #getDynamicRestriction(DbControl, SqlQuery)} instead1107 */1108 @Deprecated1109 public Restriction getDynamicRestriction(DbControl dc)1110 {1111 return getDynamicRestriction(dc, null);1112 }1113 1114 /**1115 1106 @since 3.9.2 1116 1107 */ -
trunk/src/core/net/sf/basedb/core/SessionControl.java
r7622 r7642 400 400 } 401 401 402 /**403 @deprecated In 3.3, use {@link #login(LoginRequest)} instead404 */405 @Deprecated406 public synchronized void login(String login, String password, String comment)407 {408 LoginRequest loginRequest = new LoginRequest();409 loginRequest.setLogin(login);410 loginRequest.setPassword(password);411 loginRequest.setComment(comment);412 login(loginRequest);413 }414 415 402 /** 416 403 Log in to BASE. The method checks that the given login is valid, -
trunk/src/core/net/sf/basedb/core/VirtualTable.java
r5888 r7642 81 81 return allColumns; 82 82 } 83 84 @Override 85 @Deprecated 86 public VirtualColumn[] getColumns(RawDataType rdt) 87 { 88 VirtualColumn[] columns = super.getColumns(rdt); 89 VirtualColumn[] allColumns = new VirtualColumn[columns.length + rdt.getChannels()]; 90 System.arraycopy(columns, 0, allColumns, 0, columns.length); 91 for (int i = 0; i < rdt.getChannels(); ++i) 92 { 93 allColumns[i+columns.length] = VirtualColumn.channelRaw(i+1); 94 } 95 return allColumns; 96 } 83 97 84 }, 98 85 … … 278 265 } 279 266 280 /**281 @throws UnsupportedOperationException Must use the non-deprecated methods282 */283 @Override284 @Deprecated285 public VirtualColumn[] getColumns(RawDataType rdt)286 {287 throw new UnsupportedOperationException("getColumns(RawDataType)");288 }289 267 290 268 /** … … 371 349 /** 372 350 Get all columns in this table. 373 @param rdt The raw data type of the experiment374 @deprecated In 3.1, use {@link #getColumns(VirtualDb)} or375 {@link #getColumns(Experiment)} instead376 */377 @Deprecated378 public VirtualColumn[] getColumns(RawDataType rdt)379 {380 return Arrays.copyOf(columns, columns.length);381 }382 383 /**384 Get all columns in this table.385 351 @param vdb The virtual database this table belongs to 386 352 @since 3.1 … … 420 386 421 387 /** 422 Get the number of bytes a single row in the database occupies.423 The number doesn't include any variable length columns, ie. string424 columns. The caller should add the string length to the value425 returned from this method.426 @param rdt The raw data type of the experiment427 @deprecated In 3.1, use {@link #getBytesPerRow(Experiment)}428 or {@link #getBytesPerRow(VirtualDb)} instead429 */430 @Deprecated431 public long getBytesPerRow(RawDataType rdt)432 {433 long bytesPerRow = 0;434 for (VirtualColumn vc : getColumns(rdt))435 {436 bytesPerRow += vc.getTypeWrapper().getApproximateSize();437 }438 return bytesPerRow;439 }440 441 /**442 388 @see #getBytesPerRow(VirtualDb) 443 389 @since 3.1 -
trunk/src/core/net/sf/basedb/core/log/EntityDetails.java
r6898 r7642 227 227 } 228 228 return propertyIsDirty; 229 }230 231 /**232 Create a new ChangeHistoryDetailData object from the information233 in this object assuming that the entity is a subclass of234 {@link BasicData}.235 @param detailedProperties If TRUE, the {@link ChangeHistoryDetailData#getChangeInfo()}236 is populated with a list of the names of the modified properties (only237 relevant for UPDATE changes)238 @return A new ChangeHistoryDetailData instance239 @deprecated In 3.3. Use {@link #toChangeDetails(boolean, boolean)} instead240 */241 @Deprecated242 public ChangeHistoryDetailData toChangeHistoryDetailData(boolean detailedProperties)243 {244 return toChangeHistoryDetailData((BasicData)entity, changeType, detailedProperties);245 }246 247 /**248 Create a new ChangeHistoryDetailData object using a mix of the information249 in this object, and the given parameters.250 @param data The entity that was changed251 @param changeType The change type252 @param detailedProperties If TRUE, the {@link ChangeHistoryDetailData#getChangeInfo()}253 is populated with a list of the names of the modified properties (only254 relevant for UPDATE changes)255 @return A new ChangeHistoryDetailData instance256 @deprecated In 3.3. Use {@link #toChangeDetails(Item, int, String, ChangeType, boolean, boolean)} instead257 */258 @Deprecated259 public ChangeHistoryDetailData toChangeHistoryDetailData(BasicData data, ChangeType changeType, boolean detailedProperties)260 {261 ChangeHistoryDetailData details = new ChangeHistoryDetailData();262 details.setChangeType(changeType.getValue());263 details.setItemId(data.getId());264 details.setItemType(Item.fromDataObject(data).getValue());265 if (detailedProperties)266 {267 details.setChangeInfo(getModifiedProperties("Updated: ", ", ", null));268 }269 return details;270 229 } 271 230 -
trunk/src/core/net/sf/basedb/util/JarClassLoader.java
r7622 r7642 146 146 { 147 147 return new JarClassLoader(jarPath); 148 }149 150 151 /**152 Unload the class loader for the given JAR file. The class loader will153 not be unloaded if the calling application has object references to the154 class loader or any class loaded by the class loader. However, if the155 {@link #getInstance(String)} method is called again, a new class loader156 instance will be created.157 158 @param jarPath The path to the JAR file159 @deprecated In 3.3.4, use {@link #newInstance(String)} or {@link #getInstance(String, boolean)} with autoUnload=true instead160 */161 @Deprecated162 public static final void unload(String jarPath)163 {164 synchronized (classLoaders)165 {166 classLoaders.remove(jarPath);167 }168 148 } 169 149 -
trunk/src/core/net/sf/basedb/util/extensions/Registry.java
r7605 r7642 199 199 200 200 /** 201 Note that this method uses the class loader from the 'eventHandler' as202 the third parameter!203 @since 2.8204 @deprecated In 3.10, use {@link #registerEventHandler(EventHandler, EventFilter, ClassLoader)} instead205 */206 @Deprecated207 public synchronized void registerEventHandler(EventHandler eventHandler, EventFilter filter)208 {209 if (eventHandler == null) return;210 registerEventHandler(eventHandler, filter, eventHandler.getClass().getClassLoader());211 }212 213 /**214 201 Register an event handler for responding to events happening to 215 202 extension points and extensions in the registry. The registry itself … … 325 312 326 313 /** 327 @deprecated In 3.2, use {@link #registerExtensionPoint(ExtensionPoint, ClassLoader)} instead328 */329 @Deprecated330 public synchronized <A extends Action> void331 registerExtensionPoint(ExtensionPoint<A> extensionPoint)332 {333 registerExtensionPoint(extensionPoint, null);334 }335 336 /**337 314 Register an extension point. If the extension point already exists, 338 315 the description and renderer factory is updated. The action class … … 464 441 RegisteredExtensionPoint<?> rep = extensionPoints.get(id); 465 442 return rep == null ? null : rep.getLastError(); 466 }467 468 /**469 @deprecated In 3.2, use {@link #registerExtension(Extension, ClassLoader)} instead470 */471 @Deprecated472 public synchronized <A extends Action> void registerExtension(Extension<A> extension)473 {474 registerExtension(extension, null);475 443 } 476 444 -
trunk/src/core/net/sf/basedb/util/extensions/manager/processor/ExtractResourcesProcessor.java
r6444 r7642 240 240 241 241 /** 242 Set a flag indicating if already existing files should243 always be updated or not.244 245 @param forceOverwrite TRUE to force overwriting existing files,246 FALSE to only overwrite files if they are different from247 the files in the JAR248 @deprecated In 3.1, no replacement since all files must be overwritten to ensure249 proper functionality250 */251 @Deprecated252 public void setForceOverwrite(boolean forceOverwrite)253 {}254 255 /**256 242 Get the number of files that was successfully processed. 257 243 */ -
trunk/src/core/net/sf/basedb/util/overview/OverviewUtil.java
r7605 r7642 73 73 74 74 /** 75 @return Same as {@link #getStaticRules()}76 @deprecated In 3.2, use {@link #getStaticRules()} or {@link #getAllRules(DbControl, GenericOverview)} instead77 */78 @Deprecated79 public static Map<String, List<ValidationRuleAction>> getValidators()80 {81 return getStaticRules();82 }83 84 /**85 75 Get all static (built-in) validation rules grouped by relationship. The key of the map 86 76 is a title that groups related validation rules, for example: -
trunk/src/core/net/sf/basedb/util/overview/ValidationOptions.java
r6047 r7642 73 73 } 74 74 75 /** 76 @deprecated In 3.2, use {@link #getSeverity(ValidationRuleAction)} instead 77 */ 78 @Deprecated 79 public Severity getSeverity(Validator validator) 80 { 81 return getSeverity((ValidationRuleAction)validator); 82 } 83 75 84 76 /** 85 77 Get the severity level for the specified validator rule. If no option … … 97 89 } 98 90 99 /**100 @deprecated In 3.2, use {@link #setSeverity(ValidationRuleAction, Severity)} instead101 */102 @Deprecated103 public void setSeverity(Validator validator, Severity severity)104 {105 setSeverity((ValidationRuleAction)validator, severity);106 }107 108 91 /** 109 92 Set a severity level for the specified validation rule. … … 124 107 } 125 108 126 127 /**128 @since 2.13129 @deprecated In 3.2, use {@link #getOption(ValidationRuleAction, String, String)} instead130 */131 @Deprecated132 public String getOption(Validator validator, String key, String defaultValue)133 {134 return getOption((ValidationRuleAction)validator, key, defaultValue);135 }136 137 109 /** 138 110 Get the configured option for a validator rule. … … 149 121 if (value == null) value = defaultValue; 150 122 return value; 151 }152 153 154 /**155 @since 2.13156 @deprecated In 3.2, use {@link #setOption(ValidationRuleAction, String, String)} instead157 */158 @Deprecated159 public void setOption(Validator validator, String key, String value)160 {161 setOption((ValidationRuleAction)validator, key, value);162 123 } 163 124 -
trunk/src/plugins/core/core-plugins.xml
r7637 r7642 609 609 </plugin-definition> 610 610 611 <!-- Used for backwards compatibility with older server installations -->612 <plugin-definition id="LabeledExtractImporter">613 <about>614 <name>Labeled extract importer (deprecated)</name>615 <description>616 Imports and updates labeled extracts in a batch.617 </description>618 </about>619 <plugin-class>net.sf.basedb.plugins.batchimport.LabeledExtractImporter</plugin-class>620 <settings>621 <property name="everyone-use">1</property>622 <property name="deprecated">1</property>623 </settings>624 </plugin-definition>625 626 <!-- Used for backwards compatibility with older server installations -->627 <plugin-definition id="HybridizationImporter">628 <about>629 <name>Hybridization importer (deprecated)</name>630 <description>631 Imports and updates hybridizations in a batch.632 </description>633 </about>634 <plugin-class>net.sf.basedb.plugins.batchimport.HybridizationImporter</plugin-class>635 <settings>636 <property name="everyone-use">1</property>637 <property name="deprecated">1</property>638 </settings>639 </plugin-definition>640 641 611 <plugin-definition id="PhysicalBioAssayImporter"> 642 612 <about> … … 649 619 <settings> 650 620 <property name="everyone-use">1</property> 651 </settings>652 </plugin-definition>653 654 <!-- Used for backwards compatibility with older server installations -->655 <plugin-definition id="ScanImporter">656 <about>657 <name>Scan importer (deprecated)</name>658 <description>659 Imports and updates scans in a batch.660 </description>661 </about>662 <plugin-class>net.sf.basedb.plugins.batchimport.ScanImporter</plugin-class>663 <settings>664 <property name="everyone-use">1</property>665 <property name="deprecated">1</property>666 621 </settings> 667 622 </plugin-definition>
Note: See TracChangeset
for help on using the changeset viewer.