當前位置: 首頁>>代碼示例>>Java>>正文


Java Status.INTERNAL_ERROR屬性代碼示例

本文整理匯總了Java中org.md2k.datakitapi.status.Status.INTERNAL_ERROR屬性的典型用法代碼示例。如果您正苦於以下問題:Java Status.INTERNAL_ERROR屬性的具體用法?Java Status.INTERNAL_ERROR怎麽用?Java Status.INTERNAL_ERROR使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.md2k.datakitapi.status.Status的用法示例。


在下文中一共展示了Status.INTERNAL_ERROR屬性的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: insertDB

private synchronized Status insertDB(SQLiteDatabase db, String tableName) {
    try {

        if (cValueCount == 0)
            return new Status(Status.SUCCESS);


        long st = System.currentTimeMillis();
        db.beginTransaction();

        for (int i = 0; i < cValueCount; i++)
            db.insert(tableName, null, cValues[i]);
        cValueCount = 0;
        try {
            db.setTransactionSuccessful();
        } finally {
            db.endTransaction();
        }
    } catch (Exception e) {
        return new Status(Status.INTERNAL_ERROR);
    }
    return new Status(Status.SUCCESS);
}
 
開發者ID:MD2Korg,項目名稱:mCerebrum-DataKit,代碼行數:23,代碼來源:DatabaseTable_Data.java

示例2: insert

public Status insert(int ds_id, DataType[] dataTypes) {
    Status status=new Status(Status.SUCCESS);
    if(ds_id==-1 || dataTypes==null)
        return new Status(Status.INTERNAL_ERROR);
    if (listPrivacyListDsId.get(ds_id) == null) {
        status = routingManager.insert(ds_id, dataTypes);
        if(status.getStatusCode()==Status.INTERNAL_ERROR)
            return status;
    }
    if(ds_id==dsIdPrivacy){
        Log.d(TAG,"privacy data...process start...");
        processPrivacyData();
    }
    return status;
}
 
開發者ID:MD2Korg,項目名稱:mCerebrum-DataKit,代碼行數:15,代碼來源:PrivacyManager.java

示例3: insertHF

public Status insertHF(int ds_id, DataTypeDoubleArray[] dataTypes) {
    Status status = new Status(Status.SUCCESS);
    if (ds_id == -1 || dataTypes == null)
        return new Status(Status.INTERNAL_ERROR);
    if (listPrivacyListDsId.get(ds_id) == null) {
        status = routingManager.insertHF(ds_id, dataTypes);
        if (status.getStatusCode() == Status.INTERNAL_ERROR)
            return status;
    }
    if (ds_id == dsIdPrivacy) {
        Log.d(TAG, "privacy data...process start...");
        processPrivacyData();
    }
    return status;
}
 
開發者ID:MD2Korg,項目名稱:mCerebrum-DataKit,代碼行數:15,代碼來源:PrivacyManager.java

示例4: updateSummary

public Status updateSummary(DataSourceClient dataSourceClient, DataType dataType) {
    Status status=new Status(Status.SUCCESS);
    if(dataSourceClient==null || dataType==null)
        return new Status(Status.INTERNAL_ERROR);
    if (listPrivacyListDsId.get(dataSourceClient.getDs_id()) == null) {
        status = routingManager.updateSummary(dataSourceClient.getDataSource(), dataType);
        if(status.getStatusCode()==Status.INTERNAL_ERROR)
            return status;
    }
    return status;
}
 
開發者ID:MD2Korg,項目名稱:mCerebrum-DataKit,代碼行數:11,代碼來源:PrivacyManager.java

示例5: register

public synchronized DataSourceClient register(SQLiteDatabase db, DataSource dataSource) {
    ContentValues cValues = prepareDataSource(dataSource);
    int newRowId;
    newRowId = (int) db.insert(TABLE_NAME, null, cValues);
    if (newRowId == -1) {
        return new DataSourceClient(-1, dataSource, new Status(Status.INTERNAL_ERROR));
    } else return new DataSourceClient(newRowId, dataSource, new Status(Status.SUCCESS));
}
 
開發者ID:MD2Korg,項目名稱:mCerebrum-DataKit,代碼行數:8,代碼來源:DatabaseTable_DataSource.java

示例6: receivedData

public Status receivedData(int ds_id, DataType[] dataTypes, boolean isUpdate) {
    if (publishers.get(ds_id) != null)
        return publishers.get(ds_id).receivedData(dataTypes, isUpdate);
    else return new Status(Status.INTERNAL_ERROR);
}
 
開發者ID:MD2Korg,項目名稱:mCerebrum-DataKit,代碼行數:5,代碼來源:Publishers.java

示例7: receivedDataHF

public Status receivedDataHF(int ds_id, DataTypeDoubleArray[] dataTypes) {
    if (publishers.get(ds_id) != null)
        return publishers.get(ds_id).receivedDataHF(dataTypes);
    else return new Status(Status.INTERNAL_ERROR);
}
 
開發者ID:MD2Korg,項目名稱:mCerebrum-DataKit,代碼行數:5,代碼來源:Publishers.java


注:本文中的org.md2k.datakitapi.status.Status.INTERNAL_ERROR屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。