no.sintef.assetrepository.dao
Class AssetRepresentationDAOImpl

java.lang.Object
  extended byno.sintef.assetrepository.dao.AbstractDAO
      extended byno.sintef.assetrepository.dao.AssetRepresentationDAOImpl
All Implemented Interfaces:
no.sintef.assetrepository.dao.AssetRepresentationDAO

public class AssetRepresentationDAOImpl
extends AbstractDAO
implements no.sintef.assetrepository.dao.AssetRepresentationDAO

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

Constructor Summary
AssetRepresentationDAOImpl()
           
 
Method Summary
 no.sintef.assetrepository.interfaces.AssetRepresentationPK create(no.sintef.assetrepository.entity.AssetRepresentationEJB ejb)
           
protected  java.lang.Object createJaxbObject(javax.ejb.EntityBean ejb)
           
 java.util.Collection findAll()
           
 no.sintef.assetrepository.interfaces.AssetRepresentationPK findByPrimaryKey(no.sintef.assetrepository.interfaces.AssetRepresentationPK 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.AssetRepresentationPK pk, no.sintef.assetrepository.entity.AssetRepresentationEJB ejb)
           
 void remove(no.sintef.assetrepository.interfaces.AssetRepresentationPK pk)
           
protected  void setJaxbObject(javax.ejb.EntityBean ejb, java.lang.Object jaxbObject)
           
 void store(no.sintef.assetrepository.entity.AssetRepresentationEJB 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.AssetRepresentationDAO
init
 

Constructor Detail

AssetRepresentationDAOImpl

public AssetRepresentationDAOImpl()
Method Detail

load

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

store

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

remove

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

create

public no.sintef.assetrepository.interfaces.AssetRepresentationPK create(no.sintef.assetrepository.entity.AssetRepresentationEJB ejb)
                                                                  throws javax.ejb.CreateException,
                                                                         javax.ejb.EJBException
Specified by:
create in interface no.sintef.assetrepository.dao.AssetRepresentationDAO
Throws:
javax.ejb.CreateException
javax.ejb.EJBException

findByPrimaryKey

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

findAll

public java.util.Collection findAll()
                             throws javax.ejb.FinderException
Specified by:
findAll in interface no.sintef.assetrepository.dao.AssetRepresentationDAO
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.