no.sintef.assetrepository.dao
Class VersionedAssetDAOImpl

java.lang.Object
  extended byno.sintef.assetrepository.dao.AbstractDAO
      extended byno.sintef.assetrepository.dao.VersionedAssetDAOImpl
All Implemented Interfaces:
no.sintef.assetrepository.dao.VersionedAssetDAO

public class VersionedAssetDAOImpl
extends AbstractDAO
implements no.sintef.assetrepository.dao.VersionedAssetDAO

Author:
fvr TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
VersionedAssetDAOImpl()
           
 
Method Summary
 no.sintef.assetrepository.interfaces.VersionedAssetPK create(no.sintef.assetrepository.entity.VersionedAssetEJB ejb)
           
protected  java.lang.Object createJaxbObject(javax.ejb.EntityBean ejb)
           
 java.util.Collection findAll()
           
 no.sintef.assetrepository.interfaces.VersionedAssetPK findByPrimaryKey(no.sintef.assetrepository.interfaces.VersionedAssetPK pk)
           
 java.util.Collection findByType(no.sintef.assetrepository.interfaces.AssetTypePK typePk)
           
protected  java.lang.String getId(java.lang.Object o)
           
protected  java.lang.Object getPrimaryKey(java.lang.String id)
           
protected  java.lang.String getSingleResourceQuery(java.lang.String id)
           
 void load(no.sintef.assetrepository.interfaces.VersionedAssetPK pk, no.sintef.assetrepository.entity.VersionedAssetEJB ejb)
           
 void remove(no.sintef.assetrepository.interfaces.VersionedAssetPK pk)
           
protected  void setJaxbObject(javax.ejb.EntityBean ejb, java.lang.Object jaxbObject)
           
 void store(no.sintef.assetrepository.entity.VersionedAssetEJB ejb)
           
 
Methods inherited from class no.sintef.assetrepository.dao.AbstractDAO
create, createIOid, findByPrimaryKey, getPrimaryKeys, init, load, oidsToPks, pksToOids, remove, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface no.sintef.assetrepository.dao.VersionedAssetDAO
init
 

Constructor Detail

VersionedAssetDAOImpl

public VersionedAssetDAOImpl()
Method Detail

load

public void load(no.sintef.assetrepository.interfaces.VersionedAssetPK pk,
                 no.sintef.assetrepository.entity.VersionedAssetEJB ejb)
          throws javax.ejb.EJBException
Specified by:
load in interface no.sintef.assetrepository.dao.VersionedAssetDAO
Throws:
javax.ejb.EJBException

store

public void store(no.sintef.assetrepository.entity.VersionedAssetEJB ejb)
           throws javax.ejb.EJBException
Specified by:
store in interface no.sintef.assetrepository.dao.VersionedAssetDAO
Throws:
javax.ejb.EJBException

remove

public void remove(no.sintef.assetrepository.interfaces.VersionedAssetPK pk)
            throws javax.ejb.RemoveException,
                   javax.ejb.EJBException
Specified by:
remove in interface no.sintef.assetrepository.dao.VersionedAssetDAO
Throws:
javax.ejb.RemoveException
javax.ejb.EJBException

create

public no.sintef.assetrepository.interfaces.VersionedAssetPK create(no.sintef.assetrepository.entity.VersionedAssetEJB ejb)
                                                             throws javax.ejb.CreateException,
                                                                    javax.ejb.EJBException
Specified by:
create in interface no.sintef.assetrepository.dao.VersionedAssetDAO
Throws:
javax.ejb.CreateException
javax.ejb.EJBException

findByType

public java.util.Collection findByType(no.sintef.assetrepository.interfaces.AssetTypePK typePk)
                                throws javax.ejb.FinderException
Specified by:
findByType in interface no.sintef.assetrepository.dao.VersionedAssetDAO
Throws:
javax.ejb.FinderException

findByPrimaryKey

public no.sintef.assetrepository.interfaces.VersionedAssetPK findByPrimaryKey(no.sintef.assetrepository.interfaces.VersionedAssetPK pk)
                                                                       throws javax.ejb.FinderException
Specified by:
findByPrimaryKey in interface no.sintef.assetrepository.dao.VersionedAssetDAO
Throws:
javax.ejb.FinderException

findAll

public java.util.Collection findAll()
                             throws javax.ejb.FinderException
Specified by:
findAll in interface no.sintef.assetrepository.dao.VersionedAssetDAO
Throws:
javax.ejb.FinderException

getId

protected java.lang.String getId(java.lang.Object o)
Specified by:
getId in class AbstractDAO
Parameters:
o - The object containing the primary key. May be an Entity bean, primary key or JAXB object.
Returns:

getPrimaryKey

protected java.lang.Object getPrimaryKey(java.lang.String id)
Specified by:
getPrimaryKey in class AbstractDAO
Parameters:
id - The primary key ID, never null.
Returns:

createJaxbObject

protected java.lang.Object createJaxbObject(javax.ejb.EntityBean ejb)
Specified by:
createJaxbObject in class AbstractDAO
Parameters:
ejb -
Returns:

setJaxbObject

protected void setJaxbObject(javax.ejb.EntityBean ejb,
                             java.lang.Object jaxbObject)
Specified by:
setJaxbObject in class AbstractDAO
Parameters:
ejb -
jaxbObject -

getSingleResourceQuery

protected java.lang.String getSingleResourceQuery(java.lang.String id)
Specified by:
getSingleResourceQuery in class AbstractDAO
Parameters:
id -
Returns:


Copyright © 2003-2005 SINTEF. All Rights Reserved.