com.aiyc.server.standalone.db.homes
类 LocationHome
java.lang.Object
com.aiyc.server.standalone.db.homes.EntityHome<Location>
com.aiyc.server.standalone.db.homes.LocationHome
- 所有已实现的接口:
- IArea, IEntityHome<Location,Integer>
public class LocationHome
- extends EntityHome<Location>
| 从类 com.aiyc.server.standalone.db.homes.EntityHome 继承的方法 |
add, add, executeInsertUpdate, fillInStatement, fillInStatement, fillInStatement, get, get, get, getArea, getById, getById, getByName, getDeleteSQL, getGeneratedKey, getInsertSQL, getOrder, getPreparedStatement, getPrimaryKeyId, getTableColNames, getUpdateSQL, implode, parseResultRow, remove, remove, removeAll, setArea, update, update |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationHome
public LocationHome()
getTableIdCol
protected String getTableIdCol()
- 指定者:
- 类
EntityHome<Location> 中的 getTableIdCol
- 返回:
- Primary key column name
- 另请参见:
EntityHome.getTableIdCol()
getTableCols
protected String[] getTableCols()
- 指定者:
- 类
EntityHome<Location> 中的 getTableCols
- 返回:
- All table columns excluding the primary key column
- 另请参见:
EntityHome.getTableCols()
getTableName
protected String getTableName()
- 指定者:
- 类
EntityHome<Location> 中的 getTableName
- 返回:
- Table name of entity
- 另请参见:
EntityHome.getTableName()
parseResultRow
public Location parseResultRow(ResultSet rs,
int fromIndex)
throws SQLException
- 从类
EntityHome 复制的描述
- This function restores an entity from a database row
- 指定者:
- 类
EntityHome<Location> 中的 parseResultRow
- 参数:
rs - ResultSetfromIndex - index from where the parsing starts
- 返回:
- Restored entity from database row
- 抛出:
SQLException- 另请参见:
EntityHome.parseResultRow(ResultSet, int)
getListByMapId
public List<Location> getListByMapId(Integer id)
- 参数:
id - Map primary key
- 返回:
List of Location for the Map with id; or all locations if map id is -1
getListByMap
public List<Location> getListByMap(Map m)
- 参数:
m - Map
- 返回:
List of Location for the Map- 另请参见:
getListByMapId(Integer)
getAll
public List<Location> getAll()
- 从类
EntityHome 复制的描述
- Get all entities
- 指定者:
- 接口
IEntityHome<Location,Integer> 中的 getAll - 覆盖:
- 类
EntityHome<Location> 中的 getAll
- 返回:
List of all entities- 另请参见:
EntityHome.getAll()
getLocation
public Location getLocation(Integer locationId,
String symbolicId)
- get fingerprints depending on different contraints.
-1 is used for no constraint
- 参数:
locationId - Location primary keysymbolicId - Symbolic ID of Location
- 返回:
Location either by primary key or by symbolicId
fillInStatement
public int fillInStatement(PreparedStatement ps,
Location t,
int fromIndex)
throws SQLException
- 从类
EntityHome 复制的描述
- Fills entity values into the
PreparedStatement starting at
fromIndex
- 指定者:
- 类
EntityHome<Location> 中的 fillInStatement
- 参数:
ps - PreparedStatementt - Entity
- 返回:
- number of filled in values
- 抛出:
SQLException- 另请参见:
EntityHome.fillInStatement(PreparedStatement, com.aiyc.server.standalone.db.IEntity, int)
getSelectSQL
protected String getSelectSQL()
- 覆盖:
- 类
EntityHome<Location> 中的 getSelectSQL
- 返回:
- prepared SELECT sql string
- 另请参见:
EntityHome.getSelectSQL()
remove
public boolean remove(String constrain)
- 从类
EntityHome 复制的描述
- Removes entities from database matching a constraint
- 覆盖:
- 类
EntityHome<Location> 中的 remove
- 参数:
constrain - SQL WHERE constraint
- 返回:
- True if successful
- 另请参见:
EntityHome.remove(String)
Copyright © 2017. All Rights Reserved.