no.sintef.assetrepository.dao
Class AssetVersionDAOImpl

java.lang.Object
  extended byno.sintef.assetrepository.dao.AbstractDAO
      extended byno.sintef.assetrepository.dao.AssetVersionDAOImpl
All Implemented Interfaces:
no.sintef.assetrepository.dao.AssetVersionDAO

public class AssetVersionDAOImpl
extends AbstractDAO
implements no.sintef.assetrepository.dao.AssetVersionDAO

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

Constructor Summary
AssetVersionDAOImpl()
           
 
Method Summary
 no.sintef.assetrepository.interfaces.AssetVersionPK create(no.sintef.assetrepository.entity.AssetVersionEJB ejb)
           
protected  java.lang.Object createJaxbObject(javax.ejb.EntityBean ejb)
           
 java.util.Collection findAll()
           
 no.sintef.assetrepository.interfaces.AssetVersionPK findByAssetAndLabel(no.sintef.assetrepository.interfaces.VersionedAssetPK assetPk, java.lang.String label)
           
 no.sintef.assetrepository.interfaces.AssetVersionPK findByPrimaryKey(no.sintef.assetrepository.interfaces.AssetVersionPK pk)
           
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.AssetVersionPK pk, no.sintef.assetrepository.entity.AssetVersionEJB ejb)
           
 void remove(no.sintef.assetrepository.interfaces.AssetVersionPK pk)
           
protected  void setJaxbObject(javax.ejb.EntityBean ejb, java.lang.Object jaxbObject)
           
 void store(no.sintef.assetrepository.entity.AssetVersionEJB 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.AssetVersionDAO
init
 

Constructor Detail

AssetVersionDAOImpl

public AssetVersionDAOImpl()
Method Detail

load

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

store

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

remove

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

create

public no.sintef.assetrepository.interfaces.AssetVersionPK create(no.sintef.assetrepository.entity.AssetVersionEJB ejb)
                                                           throws javax.ejb.CreateException,
                                                                  javax.ejb.EJBException
Specified by:
create in interface no.sintef.assetrepository.dao.AssetVersionDAO
Throws:
javax.ejb.CreateException
javax.ejb.EJBException

findByPrimaryKey

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

findAll

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

findByAssetAndLabel

public no.sintef.assetrepository.interfaces.AssetVersionPK findByAssetAndLabel(no.sintef.assetrepository.interfaces.VersionedAssetPK assetPk,
                                                                               java.lang.String label)
                                                                        throws javax.ejb.FinderException
Specified by:
findByAssetAndLabel in interface no.sintef.assetrepository.dao.AssetVersionDAO
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.