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

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

public class FingerprintHome
extends EntityHome<Fingerprint>


字段摘要
 
从类 com.aiyc.server.standalone.db.homes.EntityHome 继承的字段
area, db, deleteSQL, insertSQL, log, primaryKeyId, selectSQL, TableColNames, updateSQL
 
构造方法摘要
FingerprintHome()
           
 
方法摘要
 Fingerprint add(Fingerprint fprint)
          Add an entity to the database.
 int fillInStatement(PreparedStatement ps, Fingerprint t, int fromIndex)
          Fills entity values into the PreparedStatement starting at fromIndex
protected  List<Fingerprint> get(String constraint)
          Gets entities from database matching a constraint
 List<Fingerprint> getAll()
          Get all entities
 List<Fingerprint> getAll(String mapId)
           
 Fingerprint getById(Integer id)
          get the fingerprint by its Fingerprint primary key
 List<Fingerprint> getByLocationId(Integer id)
          get the fingerprints by its Fingerprint location id
 Fingerprint getByMeasurementId(Integer id)
          get the fingerprint by its Fingerprint measurement id
 int getCount()
          get the total number of Fingerprints
 int getCount(Integer locationId)
          Gets the number of fingerprints for a Location id
 int getCount(Location location)
          Gets the number of fingerprints for a Location
protected  int getCount(String constraint)
          Gets the total number of fingerprints matching a constraint
protected  String getOrder()
           
protected  String getSelectSQL()
           
protected  String[] getTableCols()
           
protected  String getTableIdCol()
           
protected  String getTableName()
           
protected  Fingerprint parseResultRow(ResultSet rs)
           
 Fingerprint parseResultRow(ResultSet rs, int fromIndex)
          fromIndex has no effect
protected  boolean remove(String constraint)
          Removes entities from database matching a constraint
 
从类 com.aiyc.server.standalone.db.homes.EntityHome 继承的方法
add, executeInsertUpdate, fillInStatement, fillInStatement, fillInStatement, get, get, getArea, getById, getByName, getDeleteSQL, getGeneratedKey, getInsertSQL, getPreparedStatement, getPrimaryKeyId, getTableColNames, getUpdateSQL, implode, remove, remove, removeAll, setArea, update, update
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

FingerprintHome

public FingerprintHome()
方法详细信息

getTableIdCol

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

getTableCols

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

getTableName

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

parseResultRow

protected Fingerprint parseResultRow(ResultSet rs)
                              throws SQLException
覆盖:
EntityHome<Fingerprint> 中的 parseResultRow
参数:
rs - ResultSet
返回:
Restored entity from database row
抛出:
SQLException
另请参见:
EntityHome.parseResultRow(ResultSet)

parseResultRow

public Fingerprint parseResultRow(ResultSet rs,
                                  int fromIndex)
                           throws SQLException
fromIndex has no effect

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

getAll

public List<Fingerprint> getAll()
从类 EntityHome 复制的描述
Get all entities

指定者:
接口 IEntityHome<Fingerprint,Integer> 中的 getAll
覆盖:
EntityHome<Fingerprint> 中的 getAll
返回:
List of all entities
另请参见:
EntityHome.getAll()

getAll

public List<Fingerprint> getAll(String mapId)
另请参见:
EntityHome.getAll()

getSelectSQL

protected String getSelectSQL()
覆盖:
EntityHome<Fingerprint> 中的 getSelectSQL
返回:
prepared SELECT sql string
另请参见:
EntityHome.getSelectSQL()

get

protected List<Fingerprint> get(String constraint)
从类 EntityHome 复制的描述
Gets entities from database matching a constraint

覆盖:
EntityHome<Fingerprint> 中的 get
参数:
constraint - SQL WHERE constraint
返回:
List of entities matching the constraint

getOrder

protected String getOrder()
覆盖:
EntityHome<Fingerprint> 中的 getOrder
返回:
SQL ORDER BY string
另请参见:
EntityHome.getOrder()

getCount

public int getCount(Integer locationId)
Gets the number of fingerprints for a Location id

参数:
constraint - SQL WHERE constraint
返回:
the number of Fingerprints

getCount

public int getCount(Location location)
Gets the number of fingerprints for a Location

参数:
constraint - SQL WHERE constraint
返回:
the number of Fingerprints

getCount

protected int getCount(String constraint)
Gets the total number of fingerprints matching a constraint

参数:
constraint - SQL WHERE constraint
返回:
the number of Fingerprints

getCount

public int getCount()
get the total number of Fingerprints

返回:
the number of Fingerprints

add

public Fingerprint add(Fingerprint fprint)
从类 EntityHome 复制的描述
Add an entity to the database.

指定者:
接口 IEntityHome<Fingerprint,Integer> 中的 add
覆盖:
EntityHome<Fingerprint> 中的 add
参数:
fprint - Entity
返回:
Entity with its generated primary key
另请参见:
EntityHome.add(com.aiyc.server.standalone.db.IEntity)

getById

public Fingerprint getById(Integer id)
get the fingerprint by its Fingerprint primary key

指定者:
接口 IEntityHome<Fingerprint,Integer> 中的 getById
覆盖:
EntityHome<Fingerprint> 中的 getById
参数:
id - primary key
返回:
Fingerprint

getByLocationId

public List<Fingerprint> getByLocationId(Integer id)
get the fingerprints by its Fingerprint location id

参数:
id - primary key
返回:
Fingerprint

getByMeasurementId

public Fingerprint getByMeasurementId(Integer id)
get the fingerprint by its Fingerprint measurement id

参数:
id - primary key
返回:
Fingerprint

fillInStatement

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

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

remove

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

覆盖:
EntityHome<Fingerprint> 中的 remove
参数:
constraint - SQL WHERE constraint
返回:
True if successful
另请参见:
EntityHome.remove(com.aiyc.server.standalone.db.IEntity)


Copyright © 2017. All Rights Reserved.