org.mentabean
Class DBField

java.lang.Object
  extended by org.mentabean.DBField

public class DBField
extends Object

A class representing a database field. It has the name of the bean property, the name of the column in the database, the database type, whether it is a PK or not and whether it default to now.

Author:
sergio.oliveira.jr@gmail.com

Constructor Summary
DBField(String name, String dbName, DBType<?> type, boolean isPK)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDbName()
           
 String getName()
           
 DBType getType()
           
 int hashCode()
           
 boolean isPK()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBField

public DBField(String name,
               String dbName,
               DBType<?> type,
               boolean isPK)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getName

public String getName()

getType

public DBType getType()

getDbName

public String getDbName()

isPK

public boolean isPK()


Copyright © 2013. All Rights Reserved.