net.sf.jportlet.impl
Class PortletSettingsImpl

java.lang.Object
  |
  +--net.sf.jportlet.impl.PersistentAttributes
        |
        +--net.sf.jportlet.impl.PortletSettingsImpl
All Implemented Interfaces:
PortletData, PortletSettings

public class PortletSettingsImpl
extends PersistentAttributes
implements PortletSettings

Implementation of PortletSettings. This implementation uses the JDBCService for persisting the data

Author:
Herve Tchepannou

Constructor Summary
PortletSettingsImpl(net.sf.jportlet.portlet.application.PortletProxy proxy, net.sf.jportlet.service.PortletServiceFactory serviceFactory)
           
 
Method Summary
protected  java.lang.String getDeleteSQL()
           
protected  java.lang.String getInsertSQL()
           
protected  java.lang.String getSelectSQL()
           
protected  java.lang.String getUpdateSQL()
           
protected  void prepareDelete(java.lang.String name, java.sql.PreparedStatement stmt)
           
protected  void prepareInsert(java.lang.String name, java.lang.String value, java.sql.PreparedStatement stmt)
           
protected  void prepareSelect(java.sql.PreparedStatement stmt)
           
protected  void prepareUpdate(java.lang.String name, java.lang.String value, java.sql.PreparedStatement stmt)
           
 
Methods inherited from class net.sf.jportlet.impl.PersistentAttributes
getAttribute, getAttribute, getAttributeNames, getPortletName, removeAttribute, setAttribute, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jportlet.portlet.PortletData
getAttribute, getAttribute, getAttributeNames, removeAttribute, setAttribute, store
 

Constructor Detail

PortletSettingsImpl

public PortletSettingsImpl(net.sf.jportlet.portlet.application.PortletProxy proxy,
                           net.sf.jportlet.service.PortletServiceFactory serviceFactory)
Method Detail

getDeleteSQL

protected java.lang.String getDeleteSQL()
Specified by:
getDeleteSQL in class PersistentAttributes
See Also:
net.sf.jportlet.portlet.impl.PersistentAttributes#getDeleteSQL()

getInsertSQL

protected java.lang.String getInsertSQL()
Specified by:
getInsertSQL in class PersistentAttributes
See Also:
net.sf.jportlet.portlet.impl.PersistentAttributes#getInsertSQL()

getSelectSQL

protected java.lang.String getSelectSQL()
Specified by:
getSelectSQL in class PersistentAttributes
See Also:
net.sf.jportlet.portlet.impl.PersistentAttributes#getSelectSQL()

getUpdateSQL

protected java.lang.String getUpdateSQL()
Specified by:
getUpdateSQL in class PersistentAttributes
See Also:
net.sf.jportlet.portlet.impl.PersistentAttributes#getUpdateSQL()

prepareDelete

protected void prepareDelete(java.lang.String name,
                             java.sql.PreparedStatement stmt)
                      throws java.sql.SQLException
Specified by:
prepareDelete in class PersistentAttributes
java.sql.SQLException
See Also:
net.sf.jportlet.portlet.impl.PersistentAttributes#prepareDelete(java.lang.String, java.sql.PreparedStatement)

prepareInsert

protected void prepareInsert(java.lang.String name,
                             java.lang.String value,
                             java.sql.PreparedStatement stmt)
                      throws java.sql.SQLException
Specified by:
prepareInsert in class PersistentAttributes
java.sql.SQLException
See Also:
net.sf.jportlet.portlet.impl.PersistentAttributes#prepareInsert(java.lang.String, java.lang.String, java.sql.PreparedStatement)

prepareSelect

protected void prepareSelect(java.sql.PreparedStatement stmt)
                      throws java.sql.SQLException
Specified by:
prepareSelect in class PersistentAttributes
java.sql.SQLException
See Also:
net.sf.jportlet.portlet.impl.PersistentAttributes#prepareSelect(java.sql.PreparedStatement)

prepareUpdate

protected void prepareUpdate(java.lang.String name,
                             java.lang.String value,
                             java.sql.PreparedStatement stmt)
                      throws java.sql.SQLException
Specified by:
prepareUpdate in class PersistentAttributes
java.sql.SQLException
See Also:
net.sf.jportlet.portlet.impl.PersistentAttributes#prepareUpdate(java.lang.String, java.lang.String, java.sql.PreparedStatement)


Copyright © 2002 Herve Tchepannou. All Rights Reserved.