com.redhat.persistence.metadata
Class Adapter

java.lang.Object
  extended bycom.redhat.persistence.metadata.Adapter
Direct Known Subclasses:
com.redhat.persistence.pdl.adapters.SimpleAdapter

public abstract class Adapter
extends Object

Adapter

Version:
$Revision: #5 $ $Date: 2004/04/07 $
Author:
Rafael H. Schloming <rhs@mit.edu>

Field Summary
static String versionId
           
 
Constructor Summary
Adapter()
           
 
Method Summary
 void bind(PreparedStatement ps, int index, Object obj, int type)
           
 int defaultJDBCType()
           
 Object fetch(ResultSet rs, String column)
           
 Object getObject(ObjectType basetype, PropertyMap props)
           
abstract  ObjectType getObjectType(Object obj)
           
abstract  PropertyMap getProperties(Object obj)
           
 Root getRoot()
           
 Object getSessionKey(Object obj)
           
 Object getSessionKey(ObjectType type, PropertyMap props)
           
 boolean isMutation(Object value, int jdbcType)
           
 void mutate(ResultSet rs, String column, Object obj, int type)
           
 void setSession(Object obj, Session ssn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

Adapter

public Adapter()
Method Detail

getRoot

public Root getRoot()

getSessionKey

public Object getSessionKey(Object obj)

getSessionKey

public Object getSessionKey(ObjectType type,
                            PropertyMap props)

fetch

public Object fetch(ResultSet rs,
                    String column)
             throws SQLException
Throws:
SQLException

bind

public void bind(PreparedStatement ps,
                 int index,
                 Object obj,
                 int type)
          throws SQLException
Throws:
SQLException

defaultJDBCType

public int defaultJDBCType()

isMutation

public boolean isMutation(Object value,
                          int jdbcType)

mutate

public void mutate(ResultSet rs,
                   String column,
                   Object obj,
                   int type)
            throws SQLException
Throws:
SQLException

setSession

public void setSession(Object obj,
                       Session ssn)

getObject

public Object getObject(ObjectType basetype,
                        PropertyMap props)

getProperties

public abstract PropertyMap getProperties(Object obj)

getObjectType

public abstract ObjectType getObjectType(Object obj)


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC