public class DataProviderImpl extends Object implements DataProvider
Modifier and Type | Field and Description |
---|---|
boolean |
canDelete |
boolean |
canEdit |
boolean |
canEditProperties |
protected String |
code |
protected DataLoader |
dataLoader |
protected String |
dataPropertiesXML |
protected String |
dataProviderUid |
protected String |
dataProviderXML |
protected Map<String,String> |
descriptions |
protected Long |
id |
Constructor and Description |
---|
DataProviderImpl() |
protected Long id
protected String code
public boolean canEdit
public boolean canEditProperties
public boolean canDelete
protected String dataProviderUid
protected String dataProviderXML
protected String dataPropertiesXML
protected transient DataLoader dataLoader
public boolean isReady()
isReady
in interface DataProvider
public boolean isCanDelete()
isCanDelete
in interface DataProvider
public void setCanDelete(boolean canDelete)
setCanDelete
in interface DataProvider
public boolean isCanEdit()
isCanEdit
in interface DataProvider
public void setCanEdit(boolean canEdit)
setCanEdit
in interface DataProvider
public boolean isCanEditProperties()
isCanEditProperties
in interface DataProvider
public void setCanEditProperties(boolean canEditProperties)
setCanEditProperties
in interface DataProvider
public boolean isPersistent()
isPersistent
in interface DataProvider
public Long getId()
getId
in interface DataProvider
public void setId(Long id)
setId
in interface DataProvider
public String getCode()
getCode
in interface DataProvider
public void setCode(String code)
setCode
in interface DataProvider
public String getDescription(Locale l)
getDescription
in interface DataProvider
public void setDescription(String descr, Locale l)
setDescription
in interface DataProvider
public Map<Locale,String> getDescriptionI18nMap()
getDescriptionI18nMap
in interface DataProvider
public DataProviderType getDataProviderType()
getDataProviderType
in interface DataProvider
public DataLoader getDataLoader()
getDataLoader
in interface DataProvider
public void setDataLoader(DataLoader dataLoader)
setDataLoader
in interface DataProvider
public boolean save() throws Exception
save
in interface DataProvider
Exception
public boolean delete() throws Exception
delete
in interface DataProvider
Exception
public DataSet getDataSet() throws Exception
getDataSet
in interface DataProvider
Exception
public DataSet refreshDataSet() throws Exception
refreshDataSet
in interface DataProvider
Exception
public DataSet filterDataSet(DataFilter filter) throws Exception
filterDataSet
in interface DataProvider
Exception
protected void serializeDataLoader()
protected void deserializeDataLoader()
public void deserializeDataProperties(DataSet dataSet) throws Exception
Exception
protected String getDataProviderUid()
protected void setDataProviderUid(String dataProviderUid)
protected String getDataProviderXML()
protected void setDataProviderXML(String dataProviderXML)
protected String getDataPropertiesXML()
protected void setDataPropertiesXML(String dataPropertiesXML)
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.