edu.uoc.pfc.lcamps.persistenciaFW.generator.provider.mysql
Class TableDBMysqlImpl

java.lang.Object
  extended by edu.uoc.pfc.lcamps.persistenciaFW.generator.impl.GeneratorTableDBFWImpl
      extended by edu.uoc.pfc.lcamps.persistenciaFW.generator.provider.mysql.TableDBMysqlImpl
All Implemented Interfaces:
GeneratorTableDBFW

public class TableDBMysqlImpl
extends GeneratorTableDBFWImpl

Classe que fa els mappings entre la taula de BBDD i la classe java

Author:
Llorenç Camps 14/12/2013

Field Summary
 
Fields inherited from class edu.uoc.pfc.lcamps.persistenciaFW.generator.impl.GeneratorTableDBFWImpl
connection
 
Constructor Summary
TableDBMysqlImpl()
           
 
Method Summary
 void addColumnData()
          Afegim la informació de la columna
 void addPKey()
          Afegim la Primary Key
 java.lang.String getPK()
           
 
Methods inherited from class edu.uoc.pfc.lcamps.persistenciaFW.generator.impl.GeneratorTableDBFWImpl
getBaseDirectory, getClassName, getColumns, getConnection, getFileName, getKeys, getMetadataDB, getMetadataDriverName, getMetadataVersion, getNumFields, getPackageName, getTableAlias, getTableName, hasPK, main, setBaseDirectory, setClassName, setColumns, setConnection, setFileName, setKeys, setMetadataDB, setMetadataDriverName, setMetadataVersion, setNumFields, setPackageName, setTableAlias, setTableName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableDBMysqlImpl

public TableDBMysqlImpl()
                 throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getPK

public java.lang.String getPK()
Specified by:
getPK in class GeneratorTableDBFWImpl

addPKey

public void addPKey()
             throws DBException
Description copied from interface: GeneratorTableDBFW
Afegim la Primary Key

Specified by:
addPKey in interface GeneratorTableDBFW
Specified by:
addPKey in class GeneratorTableDBFWImpl
Throws:
DBException

addColumnData

public void addColumnData()
                   throws DBException
Description copied from interface: GeneratorTableDBFW
Afegim la informació de la columna

Specified by:
addColumnData in interface GeneratorTableDBFW
Specified by:
addColumnData in class GeneratorTableDBFWImpl
Throws:
DBException