lumis.portal.localization
Class CustomStringLocalizationDaoJdbc

Package class diagram package CustomStringLocalizationDaoJdbc
java.lang.Object
  extended by lumis.portal.localization.CustomStringLocalizationDaoJdbc
All Implemented Interfaces:
ICustomStringLocalizationDao, IStringLocalizationDao

public class CustomStringLocalizationDaoJdbc
extends Object
implements ICustomStringLocalizationDao

DAO class that read custom strings from database

Since:
4.0.0

Constructor Summary
CustomStringLocalizationDaoJdbc()
           
 
Method Summary
 void addOrUpdate(CustomStringConfig customStringConfig, ITransaction transaction)
          Add or Update the specified custom string
 void delete(String customStringId, ITransaction transaction)
          Delete CustomString
 CustomStringConfig get(String customStringId, ITransaction transaction)
          Get the CustomString object
 String getIdByStringInfo(CustomStringConfig customStringConfig, ITransaction transaction)
          Get CustomStringId from stringId, resourcePath and localeCode
 Map<String,String> getStringTable(String resourcePath, Locale locale)
          Get the string table of the string localization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomStringLocalizationDaoJdbc

public CustomStringLocalizationDaoJdbc()
Method Detail

getStringTable

public Map<String,String> getStringTable(String resourcePath,
                                         Locale locale)
                                  throws DaoException
Description copied from interface: IStringLocalizationDao
Get the string table of the string localization.

Specified by:
getStringTable in interface IStringLocalizationDao
Returns:
Throws:
DaoException

addOrUpdate

public void addOrUpdate(CustomStringConfig customStringConfig,
                        ITransaction transaction)
                 throws DaoException,
                        PortalException
Description copied from interface: ICustomStringLocalizationDao
Add or Update the specified custom string

Specified by:
addOrUpdate in interface ICustomStringLocalizationDao
Throws:
DaoException
PortalException

get

public CustomStringConfig get(String customStringId,
                              ITransaction transaction)
                       throws PortalException
Description copied from interface: ICustomStringLocalizationDao
Get the CustomString object

Specified by:
get in interface ICustomStringLocalizationDao
Returns:
Throws:
PortalException

delete

public void delete(String customStringId,
                   ITransaction transaction)
            throws PortalException
Description copied from interface: ICustomStringLocalizationDao
Delete CustomString

Specified by:
delete in interface ICustomStringLocalizationDao
Throws:
PortalException

getIdByStringInfo

public String getIdByStringInfo(CustomStringConfig customStringConfig,
                                ITransaction transaction)
                         throws PortalException
Description copied from interface: ICustomStringLocalizationDao
Get CustomStringId from stringId, resourcePath and localeCode

Specified by:
getIdByStringInfo in interface ICustomStringLocalizationDao
Returns:
Throws:
PortalException


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.