com.aiyc.server.standalone.db.homes
类 MapHome

java.lang.Object
  继承者 com.aiyc.server.standalone.db.homes.EntityHome<Map>
      继承者 com.aiyc.server.standalone.db.homes.MapHome
所有已实现的接口:
IArea, IEntityHome<Map,Integer>

public class MapHome
extends EntityHome<Map>


字段摘要
static String[] TableCols
           
static String TableName
           
 
从类 com.aiyc.server.standalone.db.homes.EntityHome 继承的字段
area, db, deleteSQL, insertSQL, log, primaryKeyId, selectSQL, TableColNames, updateSQL
 
构造方法摘要
MapHome()
           
 
方法摘要
 int fillInStatement(PreparedStatement ps, Map t, int fromIndex)
          Fills entity values into the PreparedStatement starting at fromIndex
protected  String[] getTableCols()
           
protected  String getTableIdCol()
           
protected  String getTableName()
           
 Map parseResultRow(ResultSet rs, int fromIndex)
          This function restores an entity from a database row
 boolean remove(String constraint)
          Removes entities from database matching a constraint
 
从类 com.aiyc.server.standalone.db.homes.EntityHome 继承的方法
add, add, executeInsertUpdate, fillInStatement, fillInStatement, fillInStatement, get, get, get, getAll, getArea, getById, getById, getByName, getDeleteSQL, getGeneratedKey, getInsertSQL, getOrder, getPreparedStatement, getPrimaryKeyId, getSelectSQL, getTableColNames, getUpdateSQL, implode, parseResultRow, remove, remove, removeAll, setArea, update, update
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

TableCols

public static final String[] TableCols

TableName

public static final String TableName
另请参见:
常量字段值
构造方法详细信息

MapHome

public MapHome()
方法详细信息

getTableName

protected String getTableName()
指定者:
EntityHome<Map> 中的 getTableName
返回:
Table name of entity
另请参见:
EntityHome.getTableName()

getTableIdCol

protected String getTableIdCol()
指定者:
EntityHome<Map> 中的 getTableIdCol
返回:
Primary key column name
另请参见:
EntityHome.getTableIdCol()

getTableCols

protected String[] getTableCols()
指定者:
EntityHome<Map> 中的 getTableCols
返回:
All table columns excluding the primary key column
另请参见:
EntityHome.getTableCols()

parseResultRow

public Map parseResultRow(ResultSet rs,
                          int fromIndex)
                   throws SQLException
从类 EntityHome 复制的描述
This function restores an entity from a database row

指定者:
EntityHome<Map> 中的 parseResultRow
参数:
rs - ResultSet
fromIndex - index from where the parsing starts
返回:
Restored entity from database row
抛出:
SQLException
另请参见:
EntityHome.parseResultRow(ResultSet, int)

remove

public boolean remove(String constraint)
从类 EntityHome 复制的描述
Removes entities from database matching a constraint

覆盖:
EntityHome<Map> 中的 remove
参数:
constraint - SQL WHERE constraint
返回:
True if successful
另请参见:
EntityHome.remove(String)

fillInStatement

public int fillInStatement(PreparedStatement ps,
                           Map t,
                           int fromIndex)
                    throws SQLException
从类 EntityHome 复制的描述
Fills entity values into the PreparedStatement starting at fromIndex

指定者:
EntityHome<Map> 中的 fillInStatement
参数:
ps - PreparedStatement
t - Entity
返回:
number of filled in values
抛出:
SQLException
另请参见:
EntityHome.fillInStatement(PreparedStatement, com.aiyc.server.standalone.db.IEntity, int)


Copyright © 2017. All Rights Reserved.