|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.pluginwizard.business.model.AttributeDAO
public final class AttributeDAO
This class provides Data Access methods for Attribute objects
| Constructor Summary | |
|---|---|
AttributeDAO()
|
|
| Method Summary | |
|---|---|
void |
delete(int nAttributeId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
deleteAllAttributesByPluginId(int nIdPlugin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
void |
deleteDependency(int nIdAttribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the dependency |
java.lang.String |
getTypeName(int nIdAttribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
void |
insert(int nBusinessId,
Attribute attribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
void |
insertDependency(int nBusinessClassId,
int nAttributeId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
Attribute |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the attribute from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
fr.paris.lutece.util.ReferenceList |
selectAttributeListCombo(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of types of the attribute for the business class |
java.util.List<Attribute> |
selectAttributesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the attributes and returns them as a List |
java.lang.String |
selectClassDescription(int nIdBusinessClass,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
java.lang.String |
selectPrimaryKey(int nIdBusinessClass,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
|
void |
store(Attribute attribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AttributeDAO()
| Method Detail |
|---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin
public void insert(int nBusinessId,
Attribute attribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IAttributeDAOattribute - instance of the Attribute object to insertplugin - The plugin
public void insertDependency(int nBusinessClassId,
int nAttributeId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
pluginFeature - instance of the PluginFeature object to insertplugin - The plugin
public Attribute load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IAttributeDAOnId - The identifier of the attributeplugin - The plugin
public void delete(int nAttributeId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IAttributeDAOnAttributeId - The identifier of the attributeplugin - The plugin
public void deleteDependency(int nIdAttribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAttribute - The identifier of the attributeplugin - The plugin
public void store(Attribute attribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IAttributeDAOattribute - The reference of the attributeplugin - The pluginpublic java.util.List<Attribute> selectAttributesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAttributesList in interface IAttributeDAOplugin - The plugin
public java.lang.String getTypeName(int nIdAttribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getTypeName in interface IAttributeDAOnIdAttribute - int identifier of the Attributeplugin - plugin the Plugin
public fr.paris.lutece.util.ReferenceList selectAttributeListCombo(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAttributeListCombo in interface IAttributeDAOplugin - The plugin
public void deleteAllAttributesByPluginId(int nIdPlugin,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAllAttributesByPluginId in interface IAttributeDAO
public java.lang.String selectClassDescription(int nIdBusinessClass,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectClassDescription in interface IAttributeDAO
public java.lang.String selectPrimaryKey(int nIdBusinessClass,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPrimaryKey in interface IAttributeDAO
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||