本文整理匯總了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);
}
示例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;
}
示例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;
}
示例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;
}
示例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));
}
示例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);
}
示例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);
}