Changeset 4040
- Timestamp:
- Dec 5, 2007, 4:49:05 PM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/ItemModifiedException.java
r3679 r4040 58 58 item is specified in the message like: 59 59 <code>[net.sf.basedb.core.data.XxxxData#id]</code>. 60 @param ex Exception generated by Hibernate. 60 61 */ 61 62 public ItemModifiedException(org.hibernate.StaleStateException ex) … … 66 67 /** 67 68 A pattern to extract the <code>Xxxx</code> and <code>id</code> parts 68 from a string contain ting <code>[net.sf.basedb.core.data.XxxxData#id]</code>.69 from a string containing <code>[net.sf.basedb.core.data.XxxxData#id]</code>. 69 70 */ 70 71 private static final Pattern FIND_WHAT = Pattern.compile("\\[net\\.sf\\.basedb\\.core\\.data\\.(\\w+)Data\\#(\\d+)\\]"); -
trunk/src/core/net/sf/basedb/core/Message.java
r3679 r4040 56 56 @param dc The <code>DbControl</code> which will be used for 57 57 permission checking and database access 58 @param to The user who should receive the message. 59 @param fromName Name of the sender. 60 @param fromUser The user who sends this message. 61 @param job Which job this message is about. 58 62 @return The new <code>Message</code> item 59 63 @throws BaseException If there is an error -
trunk/src/core/net/sf/basedb/core/NameableUtil.java
r3679 r4040 40 40 /** 41 41 Set the name of a {@link NameableData} object. 42 @param nameableData A NameableData object to set a name on. 43 @param name The name to be set. 42 44 @throws InvalidDataException If the name is null or is longer 43 45 than {@link Nameable#MAX_NAME_LENGTH} constant … … 53 55 /** 54 56 Set the description of a {@link NameableData} object. 57 @param nameableData A NameableData to set description on. 58 @param description The description to be set. 55 59 @throws InvalidDataException If the description is longer 56 60 than {@link Nameable#MAX_DESCRIPTION_LENGTH} constant -
trunk/src/core/net/sf/basedb/core/Operator.java
r3775 r4040 168 168 /** 169 169 Get the integer value that is used when storing an operator in the database. 170 @return an Integer 170 171 */ 171 172 public int getValue() … … 176 177 /** 177 178 Get the symbol for this operator, useful for display in client applications. 179 @return a String object 178 180 */ 179 181 public String getSymbol() … … 185 187 Get the SQL symbol for this operator. This can be used when creating 186 188 SQL/HQL queries. 189 @return A String object 187 190 */ 188 191 public String getSqlSymbol() … … 201 204 /** 202 205 Get the <code>Operator</code> object when you know the integer code. 206 @param value The integer code 207 @return an Operator object. 203 208 */ 204 209 public static Operator fromValue(int value) -
trunk/src/core/net/sf/basedb/core/OwnableUtil.java
r3679 r4040 41 41 /** 42 42 Set the owner of a {@link OwnableData} object. 43 @param ownableData Data object to set owner on. 44 @param owner User to be set as an owner. 43 45 @throws InvalidDataException If the owner is null 44 46 */ -
trunk/src/core/net/sf/basedb/core/ParameterType.java
r3789 r4040 229 229 /** 230 230 Check if a list of values contain invalid values. 231 @param name The name of the parameter, used for better exception messages. 231 232 @param values A list of objects to check 232 233 @throws InvalidDataException If the list contains too many values as -
trunk/src/core/net/sf/basedb/core/Plate.java
r4020 r4040 371 371 of source plates used by the plate mapping. If the plate is not a parent, -1 372 372 is returned. 373 @param parent The plate to get source index of, if it's a parent. Null is not allowed. 373 374 @return The source index or -1 if the plate is not a parent plate 374 375 @throws InvalidDataException If the parent is null -
trunk/src/core/net/sf/basedb/core/PlatformVariant.java
r4020 r4040 433 433 already been registered this method does nothing. 434 434 @param type The file type 435 @param required TRUE if this file type should be required by the platform, FALSE otherwise. 435 436 @throws PermissionDeniedException If the logged in user doesn't 436 437 have write permission to the platform -
trunk/src/core/net/sf/basedb/core/PluginConfiguration.java
r4020 r4040 72 72 @param dc The <code>DbControl</code> which will be used for 73 73 permission checking and database access. 74 @return The new <code>PluginDefinition</code> item 74 @param pd PluginDefinition to create a configuration for. 75 @return The new <code>PluginConfiguration</code> item 75 76 @throws InvalidDataException If the plugin definition is null 76 77 @throws PermissionDeniedException If the logged in user doesn't have -
trunk/src/core/net/sf/basedb/core/PluginDefinition.java
r4020 r4040 1070 1070 /** 1071 1071 Get an instance of the plugin implementation. 1072 @param <P> The kind of returned object that extends Plugin. 1072 1073 @param clazz The class of the plugin which must be a subclass of <code>Plugin</code> 1073 1074 @param jarPath Overrides the default JAR path for a plugin, null to use the default -
trunk/src/core/net/sf/basedb/core/PluginResponse.java
r3679 r4040 133 133 134 134 /** 135 SAve all parameters that has been configured during the configuration sequence to135 aAve all parameters that has been configured during the configuration sequence to 136 136 the database. 137 @param dc An open DbControl to use when accessing the database. 137 138 */ 138 139 public void saveParameters(DbControl dc) -
trunk/src/core/net/sf/basedb/core/Type.java
r4023 r4040 277 277 /** 278 278 Get the integer value that is used when storing a type in the database. 279 @return an int. 279 280 */ 280 281 public int getValue() … … 285 286 /** 286 287 Get the class of objects that can be used as values for this type. 288 @return a Class 287 289 @see #isCorrectType(Object) 288 290 */ … … 294 296 /** 295 297 Get the string value representation of this type. 298 @return a java.lang.String 296 299 */ 297 300 public String getStringValue() … … 315 318 to choose from. For example, the <code>BOOLEAN</code> and <code>TEXT</code> 316 319 type can't be enumerated. 320 @return TRUE if it does, FALSE otherwise. 317 321 */ 318 322 public boolean canEnumerate() … … 332 336 /** 333 337 Check if an object is a value of the correct type. Null is allowed. 338 @param value Value object to be checked. 334 339 @throws InvalidDataException If the value isn't of the correct type 335 340 */ … … 345 350 /** 346 351 Check if a list of values contain only objects of the correct type. 352 @param values List of objects to be checked. 347 353 @throws InvalidDataException If the list contains one or more nulls or 348 354 values of incorrect object type … … 366 372 /** 367 373 Check if the value is an object of the correct type. 374 @param value Value object to be checked. 375 @return TRUE if it is of correct type, FALSE otherwise. 368 376 */ 369 377 public boolean isCorrectType(Object value) … … 380 388 /** 381 389 Get the size in bytes an object of this type requires when 382 stored in the database. If the value i fnull, 0 is returned,390 stored in the database. If the value is null, 0 is returned, 383 391 otherwise the actual value is only used if it 384 392 affects the size, ie. it is a string. 385 393 @param value The value to get the size of 394 @return an integer 386 395 */ 387 396 public abstract int sizeOf(Object value); … … 391 400 returns null. Each numeric type overrides this method to create a number of 392 401 the correct type. 402 @param num The number to convert. 403 @return Null if this method not have been overridden. 393 404 @since 2.2 394 405 */ … … 439 450 @param nullIfException TRUE to return null for unparsable numeric values, or 440 451 FALSE to throw an exception 452 @return a java.lang.Object, or null. 441 453 @throws NumberFormatException If the type is numerical and the string can't be 442 454 parsed as a number and the nullIfException parameter is false … … 492 504 Parse an array of strings and try to convert them to values 493 505 of the correct object type. 506 @param values An array of values to parse through. 494 507 @return An array of objects, or null of the array is null 495 508 @throws InvalidDataException If at least one of the strings could not … … 510 523 /** 511 524 Get the <code>Type</code> object when you know the integer code. 525 @param value The integer code to get the Type object for. 526 @return a net.sf.basedb.core.Type object 512 527 */ 513 528 public static Type fromValue(int value) … … 519 534 /** 520 535 Get the <code>Type</code> object when you know the string value. 536 @param value The string value to get the Type object for. 537 @return a net.sf.basedb.core.Type object. 521 538 */ 522 539 public static Type fromValue(String value) -
trunk/src/core/net/sf/basedb/util/NestedIterator.java
r3675 r4040 56 56 /** 57 57 Create a new <code>ArrayIterator</code> object. 58 @param collections An array of Collection objects. 58 59 */ 59 60 public NestedIterator(Collection<? extends E>... collections) -
trunk/src/core/net/sf/basedb/util/XMLUtil.java
r4023 r4040 88 88 @param rootElement The name of the root element tag 89 89 @param systemId The system id in the DOCTYPE section 90 @return a {@link org.jdom.Document} object 90 91 */ 91 92 public static Document createDom(String rootElement, String systemId) … … 185 186 @param attribute The name of the attribute 186 187 @param defaultValue The default value to return 188 @return an integer. 187 189 */ 188 190 public static int getIntAttribute(Element el, String attribute, int defaultValue) … … 208 210 @param attribute The name of the attribute 209 211 @param defaultValue The default value to return 212 @return TRUE if the attribute has a true value, FALSE if it has a false value 210 213 */ 211 214 public static boolean getBooleanAttribute(Element el, String attribute, boolean defaultValue) -
trunk/src/core/net/sf/basedb/util/jep/NotInReporterListFunction.java
r3675 r4040 64 64 to dynamically evaluate expressions. It should only be used for converting 65 65 JEP formulas to {@link Restriction}:s. 66 @param dc Open DbControl to use when accessing database and checking permissions. 66 67 @see Jep#formulaToRestriction(String, JepFunction[]) 67 68 */ -
trunk/src/plugins/core/net/sf/basedb/plugins/MedianRatioNormalization.java
r3887 r4040 307 307 median calculation 308 308 @param blockGroupSize 309 @param progress Progress reporter for the caller to keep track of the plugin's progress. Null is allowed. 309 310 @return The normalized bioassayset 310 311 @since 2.5
Note: See TracChangeset
for help on using the changeset viewer.