net.sf.jportlet.impl
Class PersistentAttributes

java.lang.Object
  |
  +--net.sf.jportlet.impl.PersistentAttributes
Direct Known Subclasses:
PortletDataImpl, PortletSettingsImpl

public abstract class PersistentAttributes
extends java.lang.Object

Base class of all classes that contains persistent attributes

Author:
Herve Tchepannou

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

Constructor Detail

PersistentAttributes

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

getAttribute

public java.lang.String getAttribute(java.lang.String name)

getAttribute

public java.lang.String getAttribute(java.lang.String name,
                                     java.lang.String defaultValue)

getAttributeNames

public java.util.Enumeration getAttributeNames()

getDeleteSQL

protected abstract java.lang.String getDeleteSQL()

getInsertSQL

protected abstract java.lang.String getInsertSQL()

getPortletName

protected java.lang.String getPortletName()

getSelectSQL

protected abstract java.lang.String getSelectSQL()

getUpdateSQL

protected abstract java.lang.String getUpdateSQL()

prepareDelete

protected abstract void prepareDelete(java.lang.String name,
                                      java.sql.PreparedStatement stmt)
                               throws java.sql.SQLException
java.sql.SQLException

prepareInsert

protected abstract void prepareInsert(java.lang.String name,
                                      java.lang.String value,
                                      java.sql.PreparedStatement stmt)
                               throws java.sql.SQLException
java.sql.SQLException

prepareSelect

protected abstract void prepareSelect(java.sql.PreparedStatement stmt)
                               throws java.sql.SQLException
java.sql.SQLException

prepareUpdate

protected abstract void prepareUpdate(java.lang.String name,
                                      java.lang.String value,
                                      java.sql.PreparedStatement stmt)
                               throws java.sql.SQLException
java.sql.SQLException

removeAttribute

public void removeAttribute(java.lang.String name)

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.String value)

store

public void store()
           throws PortletException
PortletException


Copyright © 2002 Herve Tchepannou. All Rights Reserved.