|
||||||||||
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
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)
Deletes all the attribute related to a 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)
Fetches the type name of an attribute |
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)
Inserts the dependency between the business class and the attributes |
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)
Returns the string representation of a class |
java.lang.String |
selectPrimaryKey(int nIdBusinessClass,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Fetches the primary key of a business class |
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 IAttributeDAO
nBusinessId
- The id of the business classattribute
- instance of the Attribute object to insertplugin
- The pluginpublic void insertDependency(int nBusinessClassId, int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nBusinessClassId
- The business class idnAttributeId
- The attribute identifierplugin
- The pluginpublic Attribute load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IAttributeDAO
nId
- The identifier of the attributeplugin
- The plugin
public void delete(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IAttributeDAO
nAttributeId
- The identifier of the attributeplugin
- The pluginpublic void deleteDependency(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAttribute
- The identifier of the attributeplugin
- The pluginpublic void store(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IAttributeDAO
attribute
- The reference of the attributeplugin
- The pluginpublic java.util.List<Attribute> selectAttributesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAttributesList
in interface IAttributeDAO
plugin
- The plugin
public java.lang.String getTypeName(int nIdAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getTypeName
in interface IAttributeDAO
nIdAttribute
- The id of the attributeplugin
- The plugin
public fr.paris.lutece.util.ReferenceList selectAttributeListCombo(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAttributeListCombo
in interface IAttributeDAO
plugin
- The plugin
public void deleteAllAttributesByPluginId(int nIdPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAllAttributesByPluginId
in interface IAttributeDAO
nIdPlugin
- The id of the pluginplugin
- The pluginpublic java.lang.String selectClassDescription(int nIdBusinessClass, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectClassDescription
in interface IAttributeDAO
nIdBusinessClass
- The id of the business classplugin
- The plugin
public java.lang.String selectPrimaryKey(int nIdBusinessClass, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectPrimaryKey
in interface IAttributeDAO
nIdBusinessClass
- The id of the business classplugin
- The plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |