org.nakedobjects.persistence.sql
Interface SqlObjectMapper
- All Known Implementing Classes:
- SimpleSqlObjectMapper
- public interface SqlObjectMapper
isFirstInstance
public boolean isFirstInstance(NakedObject pattern,
NakedObject instance)
throws ObjectStoreException
- Throws:
ObjectStoreException
isLastInstance
public boolean isLastInstance(NakedObject pattern,
NakedObject instance)
throws ObjectStoreException
- Throws:
ObjectStoreException
getNakedClass
public NakedClass getNakedClass()
delete
public void delete(NakedObject object)
throws ObjectStoreException
- Throws:
ObjectStoreException
hasInstances
public boolean hasInstances()
throws ObjectStoreException
- Throws:
ObjectStoreException
insert
public void insert(NakedObject object,
long key)
throws ObjectStoreException
- Throws:
ObjectStoreException
nextInstances
public java.util.Vector nextInstances(NakedObject pattern,
NakedObject fromObject,
int count)
throws ObjectStoreException
- Throws:
ObjectStoreException
previousInstances
public java.util.Vector previousInstances(NakedObject pattern,
NakedObject toObject,
int count)
throws ObjectStoreException
- Throws:
ObjectStoreException
readObject
public NakedObject readObject(NakedObject object)
throws ObjectNotFoundException,
ObjectStoreException
- Throws:
ObjectNotFoundException
ObjectStoreException
update
public void update(NakedObject object)
throws ObjectStoreException
- Throws:
ObjectStoreException
numberOfInstances
public int numberOfInstances(NakedObject pattern)
throws ObjectStoreException
- Throws:
ObjectStoreException
createKey
public long createKey()
throws ObjectStoreException
- Throws:
ObjectStoreException