Changeset 7597
- Timestamp:
- Feb 22, 2019, 9:06:54 AM (5 years ago)
- Location:
- trunk/src/core/net/sf/basedb/core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/Install.java
r7573 r7597 188 188 progressStep++; 189 189 if (progress != null) progress.display((int)(progressStep*progress_factor), "--Creating quota types..."); 190 createQuotaType(QuotaType.TOTAL, "Total", "Total quota" , true);191 createQuotaType(QuotaType.FILE, "Files", "Quota for files" , true);192 createQuotaType(QuotaType.RAW_DATA, "Raw data", "Quota for raw data" , false);193 createQuotaType(QuotaType.EXPERIMENT, "Experiment", "Quota for experiment" , false);190 createQuotaType(QuotaType.TOTAL, "Total", "Total quota"); 191 createQuotaType(QuotaType.FILE, "Files", "Quota for files"); 192 createQuotaType(QuotaType.RAW_DATA, "Raw data", "Quota for raw data"); 193 createQuotaType(QuotaType.EXPERIMENT, "Experiment", "Quota for experiment"); 194 194 195 195 // Quota … … 1150 1150 Create a {@link QuotaType}. 1151 1151 */ 1152 @SuppressWarnings("deprecation") 1153 private static QuotaTypeData createQuotaType(String systemId, String name, String description, boolean secondaryLocation) 1152 private static QuotaTypeData createQuotaType(String systemId, String name, String description) 1154 1153 throws BaseException 1155 1154 { … … 1184 1183 quotaType.setName(name); 1185 1184 quotaType.setDescription(description); 1186 quotaType.setSecondaryLocation(secondaryLocation);1187 1185 HibernateUtil.saveData(session, quotaType); 1188 1186 HibernateUtil.commit(tx); -
trunk/src/core/net/sf/basedb/core/QuotaType.java
r7548 r7597 219 219 // ------------------------------------------- 220 220 221 /**222 Check if items using quota from this quota type can be stored223 in the secondary location or not.224 @return <code>true</code> if the secondary location can be used, <code>false</code> otherwise225 @deprecated In 3.14, no replacement226 */227 @Deprecated228 public boolean hasSecondaryLocation()229 {230 return getData().getSecondaryLocation();231 }232 221 } -
trunk/src/core/net/sf/basedb/core/Update.java
r7595 r7597 673 673 } 674 674 675 if (schemaVersion < 14 3)675 if (schemaVersion < 144) 676 676 { 677 677 // Note! 143 and 144 is a two-step update due to DROP COLUMN … … 2080 2080 column and all stored contexts using the 'action' column. 2081 2081 Update the QuotaValues table by removing all entries with 2082 location=2 2082 location=2. Remove the 'secondary_location' column from the 2083 QuotaTypes table. 2083 2084 @return The new schema version (=144) 2084 2085 */ … … 2123 2124 } 2124 2125 2125 // Drop the 'Files.action' column2126 // Drop the 'Files.action' and 'QuotaTypes.secondary_location' columns 2126 2127 dropColumn(session, "Files", "action", null); 2127 2128 dropColumn(session, "QuotaTypes", "secondary_location", null); 2129 2128 2130 // Update the schema version number 2129 2131 setSchemaVersionInTransaction(session, schemaVersion); -
trunk/src/core/net/sf/basedb/core/data/QuotaTypeData.java
r7548 r7597 102 102 // ------------------------------------------- 103 103 104 private boolean secondaryLocation;105 /**106 If this quota type can use disk quota in the secondary location or not.107 108 @hibernate.property column="`secondary_location`" type="boolean" not-null="true" update="false"109 @deprecated In 3.14, no replacement110 */111 @Deprecated112 public boolean getSecondaryLocation()113 {114 return secondaryLocation;115 }116 @Deprecated117 public void setSecondaryLocation(boolean secondaryLocation)118 {119 this.secondaryLocation = secondaryLocation;120 }121 122 104 }
Note: See TracChangeset
for help on using the changeset viewer.