cn.paxos.rabbitsnail
Class Entity

java.lang.Object
  extended by cn.paxos.rabbitsnail.ColumnContainer
      extended by cn.paxos.rabbitsnail.Entity

public class Entity
extends ColumnContainer


Constructor Summary
Entity(Class<?> type)
           
 
Method Summary
 byte[] getId(Object entity)
           
 Column getIdColumn()
           
 String getTableName()
           
 Column getVersionColumn()
           
protected  void onField(Column column, Field field)
           
protected  void onGetter(Column column, Method getter)
           
 
Methods inherited from class cn.paxos.rabbitsnail.ColumnContainer
getColumn, getColumns, getType, iterateColumns, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Entity

public Entity(Class<?> type)
Method Detail

getId

public byte[] getId(Object entity)

getTableName

public String getTableName()

getIdColumn

public Column getIdColumn()

getVersionColumn

public Column getVersionColumn()

onGetter

protected void onGetter(Column column,
                        Method getter)
Specified by:
onGetter in class ColumnContainer

onField

protected void onField(Column column,
                       Field field)
Specified by:
onField in class ColumnContainer


Copyright © 2014. All rights reserved.