Java Code Examples for com.smartgwt.client.data.DataSource#get()

The following examples show how to use com.smartgwt.client.data.DataSource#get() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MediaDataSource.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
public static MediaDataSource getInstance() {
    if (INSTANCE == null) {
        INSTANCE = (MediaDataSource) DataSource.get(ID);
        // DataSource.get does not work reliably
        INSTANCE = INSTANCE != null ? INSTANCE : new MediaDataSource();
    }
    return INSTANCE;
}
 
Example 2
Source File: RelationDataSource.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
public static RelationDataSource getInstance() {
    if (INSTANCE == null) {
        INSTANCE = (RelationDataSource) DataSource.get(ID);
        // DataSource.get does not work reliably
        INSTANCE = INSTANCE != null ? INSTANCE : new RelationDataSource();
    }
    return INSTANCE;
}
 
Example 3
Source File: DcRecordDataSource.java    From proarc with GNU General Public License v3.0 5 votes vote down vote up
public static DataSource getDcDataSource() {
    DataSource result = DataSource.get("DcDataSource");
    if (result != null) {
        return result;
    } else {
        return createDcDataSource();
    }
}
 
Example 4
Source File: DigitalObjectDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static DigitalObjectDataSource getInstance() {
    DigitalObjectDataSource ds = (DigitalObjectDataSource) DataSource.get(ID);
    return  ds != null ? ds : new DigitalObjectDataSource();
}
 
Example 5
Source File: BibliographyDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static BibliographyDataSource getInstance() {
    BibliographyDataSource ds = (BibliographyDataSource) DataSource.get(ID);
    ds = (ds != null) ? ds : new BibliographyDataSource();
    return ds;
}
 
Example 6
Source File: TextDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
private static TextDataSource getDS(String dsId, String dsUrl) {
    TextDataSource ds = (TextDataSource) DataSource.get(dsId);
    ds = (ds != null) ? ds : new TextDataSource(dsId, dsUrl);
    return ds;
}
 
Example 7
Source File: ImportBatchDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static ImportBatchDataSource getInstance() {
    ImportBatchDataSource ds = (ImportBatchDataSource) DataSource.get(ID);
    ds = ds != null ? ds : new ImportBatchDataSource();
    return ds;
}
 
Example 8
Source File: MetaModelDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static MetaModelDataSource getInstance() {
    MetaModelDataSource ds = (MetaModelDataSource) DataSource.get(ID);
    ds = ds != null ? ds : new MetaModelDataSource();
    return ds;
}
 
Example 9
Source File: BibliographyQueryDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static BibliographyQueryDataSource getInstance() {
    BibliographyQueryDataSource ds = (BibliographyQueryDataSource) DataSource.get(ID);
    ds = (ds != null) ? ds : new BibliographyQueryDataSource();
    return ds;
}
 
Example 10
Source File: UserPermissionDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static UserPermissionDataSource getInstance() {
    UserPermissionDataSource ds = (UserPermissionDataSource) DataSource.get(ID);
    ds = ds != null ? ds : new UserPermissionDataSource();
    return ds;
}
 
Example 11
Source File: DigitalObjectAdministrationDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static DigitalObjectAdministrationDataSource getInstance() {
    DigitalObjectAdministrationDataSource ds = (DigitalObjectAdministrationDataSource) DataSource.get(ID);
    return  ds != null ? ds : new DigitalObjectAdministrationDataSource();
}
 
Example 12
Source File: DcRecordDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static DcRecordDataSource getInstance() {
    DcRecordDataSource ds = (DcRecordDataSource) DataSource.get(ID);
    ds = ds != null ? ds : new DcRecordDataSource();
    return ds;
}
 
Example 13
Source File: UrnNbnResolverDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static UrnNbnResolverDataSource getInstance() {
    UrnNbnResolverDataSource ds = (UrnNbnResolverDataSource) DataSource.get(ID);
    ds = (ds != null) ? ds : new UrnNbnResolverDataSource();
    return ds;
}
 
Example 14
Source File: ImportTreeDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static ImportTreeDataSource getInstance() {
    ImportTreeDataSource ds = (ImportTreeDataSource) DataSource.get(ID);
    return ds != null ? ds : new ImportTreeDataSource();
}
 
Example 15
Source File: SearchDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static SearchDataSource getInstance() {
    SearchDataSource ds = (SearchDataSource) DataSource.get(ID);
    ds = (ds != null) ? ds : new SearchDataSource();
    return ds;
}
 
Example 16
Source File: ModsCustomDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static ModsCustomDataSource getInstance() {
    ModsCustomDataSource ds = (ModsCustomDataSource) DataSource.get(ID);
    ds = ds != null ? ds : new ModsCustomDataSource();
    return ds;
}
 
Example 17
Source File: ImportBatchItemDataSource.java    From proarc with GNU General Public License v3.0 4 votes vote down vote up
public static ImportBatchItemDataSource getInstance() {
    ImportBatchItemDataSource ds = (ImportBatchItemDataSource) DataSource.get(ID);
    ds = ds != null ? ds : new ImportBatchItemDataSource();
    return ds;
}