Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.ejb.plugins.cmp » jdbc » [javadoc | source]
org.jboss.ejb.plugins.cmp.jdbc
public final class: JDBCTypeComplex [javadoc | source]
java.lang.Object
   org.jboss.ejb.plugins.cmp.jdbc.JDBCTypeComplex

All Implemented Interfaces:
    JDBCType

JDBCTypeComplex provides the mapping between a Java Bean (not an EJB) and a set of columns. This class has a flattened view of the Java Bean, which may contain other Java Beans. This class simply treats the bean as a set of properties, which may be in the a.b.c style. The details of how this mapping is performed can be found in JDBCTypeFactory. This class holds a description of the columns and the properties that map to the columns. Additionally, this class knows how to extract a column value from the Java Bean and how to set a column value info the Java Bean. See JDBCTypeComplexProperty for details on how this is done.
Constructor:
 public JDBCTypeComplex(JDBCTypeComplexProperty[] properties,
    Class fieldType) 
Method from org.jboss.ejb.plugins.cmp.jdbc.JDBCTypeComplex Summary:
getAutoIncrement,   getColumnNames,   getColumnValue,   getJDBCTypes,   getJavaTypes,   getNotNull,   getParameterSetter,   getProperties,   getProperty,   getResultSetReaders,   getSQLTypes,   hasMapper,   isSearchable,   setColumnValue
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.plugins.cmp.jdbc.JDBCTypeComplex Detail:
 public boolean[] getAutoIncrement() 
 public String[] getColumnNames() 
 public Object getColumnValue(int index,
    Object value) 
 public int[] getJDBCTypes() 
 public Class[] getJavaTypes() 
 public boolean[] getNotNull() 
 public JDBCParameterSetter[] getParameterSetter() 
 public JDBCTypeComplexProperty[] getProperties() 
 public JDBCTypeComplexProperty getProperty(String propertyName) 
 public JDBCResultSetReader[] getResultSetReaders() 
 public String[] getSQLTypes() 
 public boolean hasMapper() 
 public boolean isSearchable() 
 public Object setColumnValue(int index,
    Object value,
    Object columnValue)