net.comtor.dao
Class GenericJDBCDaoDescriptor

java.lang.Object
  extended by net.comtor.dao.ComtorDaoDescriptor
      extended by net.comtor.dao.ComtorJDBCDaoDescriptor
          extended by net.comtor.dao.GenericJDBCDaoDescriptor

public class GenericJDBCDaoDescriptor
extends ComtorJDBCDaoDescriptor


Constructor Summary
GenericJDBCDaoDescriptor(java.lang.String tableName, java.lang.Class clazz)
           
 
Method Summary
 ComtorDaoKey getKey(java.lang.Object obj)
          Returns object key
 java.lang.String getSequenceQuery()
           
 void setForeignKeyValueField(java.lang.String fieldName)
          Establece que un campo es Llave Foranea del Elemento.
 void setPrimaryKey(java.lang.String fieldName)
          Establece que un campo es la Llave Primaria del Elemento.
 void setSequenceQuery(java.lang.String sql)
           
 
Methods inherited from class net.comtor.dao.ComtorJDBCDaoDescriptor
addField, getField, getFieldValue, getFieldValue, getFindFields, getSelectableFields, getTableName, getUpdatebleFields, removeField
 
Methods inherited from class net.comtor.dao.ComtorDaoDescriptor
getObjectClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericJDBCDaoDescriptor

public GenericJDBCDaoDescriptor(java.lang.String tableName,
                                java.lang.Class clazz)
Method Detail

getKey

public ComtorDaoKey getKey(java.lang.Object obj)
Description copied from class: ComtorDaoDescriptor
Returns object key

Specified by:
getKey in class ComtorDaoDescriptor

getSequenceQuery

public java.lang.String getSequenceQuery()
Specified by:
getSequenceQuery in class ComtorJDBCDaoDescriptor

setSequenceQuery

public void setSequenceQuery(java.lang.String sql)

setForeignKeyValueField

public void setForeignKeyValueField(java.lang.String fieldName)
Establece que un campo es Llave Foranea del Elemento.

Parameters:
fieldName - Nombre del Campo.

setPrimaryKey

public void setPrimaryKey(java.lang.String fieldName)
Establece que un campo es la Llave Primaria del Elemento.

Parameters:
fieldName - Nombre del Campo.