org.mentawai.bean
Class DBField

java.lang.Object
  extended by org.mentawai.bean.DBField

public class DBField
extends java.lang.Object


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

Constructor Detail

DBField

public DBField(java.lang.String name,
               DBType type)

DBField

public DBField(java.lang.String name,
               DBType type,
               boolean isPK)

DBField

public DBField(java.lang.String name,
               DBType type,
               boolean isPK,
               java.lang.String foreignName)

DBField

public DBField(java.lang.String name,
               java.lang.String dbName,
               DBType type)

DBField

public DBField(java.lang.String name,
               java.lang.String dbName,
               DBType type,
               boolean isPK)

DBField

public DBField(java.lang.String name,
               java.lang.String dbName,
               DBType type,
               boolean isPK,
               java.lang.String foreignName)
Method Detail

setDefaultToNow

public void setDefaultToNow(boolean b)

isDefaultToNow

public boolean isDefaultToNow()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getName

public java.lang.String getName()

getForeignName

public java.lang.String getForeignName()

getType

public DBType getType()

getDbName

public java.lang.String getDbName()

isPK

public boolean isPK()


Copyright © 2005 Mentawai Team. All Rights Reserved.