Interface IEntryTypeDAO
- All Known Implementing Classes:
EntryTypeDAO
public interface IEntryTypeDAO
interface IEntryTypeDAO
-
Method Summary
Modifier and TypeMethodDescriptionintcountDerivedEntryTypes(int nIdType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count the entry types derived from an entry typeintcountEntries(int nIdType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count the entries using an entry typevoiddelete(int nIdType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete an entry typevoidInsert a new entry typeload(int idKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the entry type from the tableLoad the data of all entry type associated with a given plugin and returns them in a listselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all entry type and returns them in a listintselectMaxOrder(String strPlugin, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the highest display order of the entry types of a pluginvoidUpdates the EntryType
-
Method Details
-
load
Load the data of the entry type from the table- Parameters:
idKey- The identifier of the entry typeplugin- the plugin- Returns:
- the instance of the EntryType
-
select
Load the data of all entry type associated with a given plugin and returns them in a list- Parameters:
strPlugin- The name of plugin to get entry types ofplugin- the plugin- Returns:
- the list of entry type associated with the plugin
-
selectAll
Load the data of all entry type and returns them in a list- Parameters:
strPlugin- The name of plugin to get entry types ofplugin- the plugin- Returns:
- the list of entry type associated with the plugin
-
store
Updates the EntryType- Parameters:
entryType-plugin-
-
insert
Insert a new entry type- Parameters:
entryType- the entry type to insert, its id is set after the insertionplugin- the plugin
-
delete
void delete(int nIdType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete an entry type- Parameters:
nIdType- the id of the entry typeplugin- the plugin
-
selectMaxOrder
Get the highest display order of the entry types of a plugin- Parameters:
strPlugin- the name of the plugin owning the entry typesplugin- the plugin- Returns:
- the highest display order, 0 if the plugin has no entry type
-
countEntries
int countEntries(int nIdType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count the entries using an entry type- Parameters:
nIdType- the id of the entry typeplugin- the plugin- Returns:
- the number of entries of this type
-
countDerivedEntryTypes
int countDerivedEntryTypes(int nIdType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count the entry types derived from an entry type- Parameters:
nIdType- the id of the entry typeplugin- the plugin- Returns:
- the number of entry types derived from it
-