com.stratelia.webactiv.util
Class Schema

java.lang.Object
  extended by com.stratelia.webactiv.util.Schema
Direct Known Subclasses:
NotifSchema, OrganizationSchema, PortletSchema

public abstract class Schema
extends Object


Constructor Summary
Schema()
           
Schema(Connection co)
           
 
Method Summary
 void close()
           
 void commit()
           
protected  void createConnection()
           
 Connection getConnection()
           
protected abstract  String getJNDIName()
           
 PreparedStatement getStatement(String query)
          All the statements are prepared and cached
 boolean isManaged()
          Return the value of the managed property.
 boolean isOk()
           
 void rollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schema

public Schema(Connection co)
       throws UtilException
Throws:
UtilException

Schema

public Schema()
       throws UtilException
Throws:
UtilException
Method Detail

getJNDIName

protected abstract String getJNDIName()

createConnection

protected final void createConnection()
                               throws UtilException
Throws:
UtilException

commit

public void commit()
            throws UtilException
Throws:
UtilException

rollback

public void rollback()
              throws UtilException
Throws:
UtilException

close

public void close()

isOk

public boolean isOk()
Returns:
true if the connection can be used.

isManaged

public boolean isManaged()
Return the value of the managed property.

Returns:
the value of managed.

getStatement

public PreparedStatement getStatement(String query)
                               throws SQLException
All the statements are prepared and cached

Throws:
SQLException

getConnection

public Connection getConnection()


Copyright © 2016 Silverpeas. All Rights Reserved.