com.stratelia.webactiv.util
Class Schema
java.lang.Object
com.stratelia.webactiv.util.Schema
- Direct Known Subclasses:
- NotifSchema, OrganizationSchema, PortletSchema
public abstract class Schema
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Schema
public Schema(Connection co)
throws UtilException
- Throws:
UtilException
Schema
public Schema()
throws UtilException
- Throws:
UtilException
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.