org.jboss.ejb.plugins.cmp.jdbc
Class JDBCTypeSimple
java.lang.Object
org.jboss.ejb.plugins.cmp.jdbc.JDBCTypeSimple
- All Implemented Interfaces:
- JDBCType
public final class JDBCTypeSimple
- extends Object
- implements JDBCType
This class provides a simple mapping of a Java type type to a single column.
- Version:
- $Revision: 1.9.4.2 $
- Author:
- Dain Sundstrom, Alexey Loubyansky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCTypeSimple
public JDBCTypeSimple(String columnName,
Class javaType,
int jdbcType,
String sqlType,
boolean notNull,
boolean autoIncrement,
Mapper mapper,
JDBCParameterSetter paramSetter,
JDBCResultSetReader resultReader)
getColumnNames
public final String[] getColumnNames()
- Specified by:
getColumnNames
in interface JDBCType
getJavaTypes
public final Class[] getJavaTypes()
- Specified by:
getJavaTypes
in interface JDBCType
getJDBCTypes
public final int[] getJDBCTypes()
- Specified by:
getJDBCTypes
in interface JDBCType
getSQLTypes
public final String[] getSQLTypes()
- Specified by:
getSQLTypes
in interface JDBCType
getNotNull
public final boolean[] getNotNull()
- Specified by:
getNotNull
in interface JDBCType
getAutoIncrement
public final boolean[] getAutoIncrement()
- Specified by:
getAutoIncrement
in interface JDBCType
getColumnValue
public final Object getColumnValue(int index,
Object value)
- Specified by:
getColumnValue
in interface JDBCType
setColumnValue
public final Object setColumnValue(int index,
Object value,
Object columnValue)
- Specified by:
setColumnValue
in interface JDBCType
hasMapper
public boolean hasMapper()
- Specified by:
hasMapper
in interface JDBCType
getResultSetReaders
public final JDBCResultSetReader[] getResultSetReaders()
- Specified by:
getResultSetReaders
in interface JDBCType
getParameterSetter
public JDBCParameterSetter[] getParameterSetter()
- Specified by:
getParameterSetter
in interface JDBCType
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.