org.ephman.abra.database
Class ManyToManyFactoryBase
java.lang.Object
org.ephman.abra.database.ManyToManyFactoryBase
- public abstract class ManyToManyFactoryBase
- extends java.lang.Object
a class to implement all the many to many operations
- Version:
- 0.0.1 10/17/00
- Author:
- Paul M. Bethe
Method Summary |
protected void |
addRelationship(DatabaseSession dbSess,
java.lang.String insert,
int oid1,
int oid2)
|
protected java.util.Vector |
executeQuery(DatabaseSession dbSess,
java.lang.String query,
int oid,
FactoryBase fact)
|
protected abstract java.lang.String |
getTableName()
|
protected boolean |
hasRelationship(DatabaseSession dbSess,
int oid1,
int oid2)
|
protected abstract java.lang.String |
makeQueryString()
|
protected void |
removeAllRelationships(DatabaseSession dbSess,
java.lang.String delete,
Identified item)
|
protected void |
removeRelationship(DatabaseSession dbSess,
java.lang.String delete,
int oid1,
int oid2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManyToManyFactoryBase
public ManyToManyFactoryBase()
executeQuery
protected java.util.Vector executeQuery(DatabaseSession dbSess,
java.lang.String query,
int oid,
FactoryBase fact)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getTableName
protected abstract java.lang.String getTableName()
addRelationship
protected void addRelationship(DatabaseSession dbSess,
java.lang.String insert,
int oid1,
int oid2)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
removeRelationship
protected void removeRelationship(DatabaseSession dbSess,
java.lang.String delete,
int oid1,
int oid2)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
removeAllRelationships
protected void removeAllRelationships(DatabaseSession dbSess,
java.lang.String delete,
Identified item)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
hasRelationship
protected boolean hasRelationship(DatabaseSession dbSess,
int oid1,
int oid2)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
makeQueryString
protected abstract java.lang.String makeQueryString()