com.mizar.persistence.jpa.beans
Class AllTablesBean

java.lang.Object
  extended by com.mizar.persistence.jpa.beans.GenericBean
      extended by com.mizar.persistence.jpa.beans.AllTablesBean
All Implemented Interfaces:
JPAInterface, java.io.Serializable, java.lang.Comparable
Direct Known Subclasses:
AllTablesRow

public class AllTablesBean
extends GenericBean

There are a lot more useful columns in ALL_TABLES but these are the ones we need now.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.mizar.persistence.jpa.beans.GenericBean
_logger, DELETE, EDIT, NEW, READ, serialVersionUID
 
Constructor Summary
AllTablesBean()
           
 
Method Summary
 java.lang.Long getAvgRowLen()
           
 java.lang.Long getNumRows()
           
 java.lang.String getOwner()
           
 AllTablesPK getPk()
           
 java.lang.Object getPrimaryKeyValue()
          NOTE: If an implementing bean expects to be extended by a RowInterface in a often-used Table, you should override this method in order to avoid the overheads associated with the reflective code in JPAUtils.getPrimaryKeyValue(this)
 java.lang.String getStatus()
           
 java.lang.String getTableName()
           
 java.lang.String getTablespaceName()
           
 void setAvgRowLen(java.lang.Long avgRowLen)
           
 void setNumRows(java.lang.Long numRows)
           
 void setPk(AllTablesPK pk)
           
 void setStatus(java.lang.String status)
           
 void setTablespaceName(java.lang.String tablespaceName)
           
 
Methods inherited from class com.mizar.persistence.jpa.beans.GenericBean
compareTo, equals, getDELETE, getEDIT, getEntityState, getEntityStateLabel, getLogger, getNEW, getREAD, hashCode, isEditable, isNew, setEditable, setEntityState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllTablesBean

public AllTablesBean()
Method Detail

setPk

public void setPk(AllTablesPK pk)

getPk

public AllTablesPK getPk()

getPrimaryKeyValue

public java.lang.Object getPrimaryKeyValue()
Description copied from class: GenericBean

NOTE: If an implementing bean expects to be extended by a RowInterface in a often-used Table, you should override this method in order to avoid the overheads associated with the reflective code in JPAUtils.getPrimaryKeyValue(this)

 public Object getPrimaryKeyValue(){
   return getProperty();
 }
 

In the absence of an overriding method, this method provides a generic method to get the value of the primary key. This is especially useful for calls to em.find(object) from within abstract classes

Overrides:
getPrimaryKeyValue in class GenericBean
Returns:
JPAUtils#getPrimaryKeyValue(this)
See Also:
RowInterface.getPrimaryKeyValue()

getOwner

public java.lang.String getOwner()

getTableName

public java.lang.String getTableName()

setTablespaceName

public void setTablespaceName(java.lang.String tablespaceName)

getTablespaceName

public java.lang.String getTablespaceName()

setNumRows

public void setNumRows(java.lang.Long numRows)

getNumRows

public java.lang.Long getNumRows()

setAvgRowLen

public void setAvgRowLen(java.lang.Long avgRowLen)

getAvgRowLen

public java.lang.Long getAvgRowLen()

setStatus

public void setStatus(java.lang.String status)

getStatus

public java.lang.String getStatus()