Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * See the file LICENSE for redistribution information.
  * Copyright (c) 2002, 2013 Oracle and/or its affiliates.  All rights reserved.
Describes the result of the Database.preload operation.
public class PreloadStatus implements Serializable {
    private static final long serialVersionUID = 903470137L;
        /* For toString. */
    private String statusName;
    /* Make the constructor public for serializability testing. */
    public PreloadStatus(String statusName) {
        this. = statusName;
    public String toString() {
        return "PreloadStatus." + ;

Database.preload was successful.
    public static final PreloadStatus SUCCESS =
        new PreloadStatus("SUCCESS");

Database.preload filled maxBytes of the cache.
    public static final PreloadStatus FILLED_CACHE =
        new PreloadStatus("FILLED_CACHE");

Database.preload took more than maxMillisecs.
    public static final PreloadStatus EXCEEDED_TIME =
        new PreloadStatus("EXCEEDED_TIME");

The user requested that preload stop during a call to ProgressListener.progress().
    public static final PreloadStatus USER_HALT_REQUEST =
        new PreloadStatus("USER_HALT_REQUEST");
New to GrepCode? Check out our FAQ X