org.opennms.web.asset
Class AssetModel
java.lang.Object
org.opennms.web.asset.AssetModel
- public class AssetModel
- extends java.lang.Object
Field Summary |
protected java.lang.String[][] |
columns
Hard-coded (for now) list of human-readable asset columns and the
corresponding database column. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
columns
protected java.lang.String[][] columns
- Hard-coded (for now) list of human-readable asset columns and the
corresponding database column.
AssetModel
public AssetModel()
getAsset
public Asset getAsset(int nodeId)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getAllAssets
public Asset[] getAllAssets()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
createAsset
public void createAsset(Asset asset)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
modifyAsset
public void modifyAsset(Asset asset)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
searchAssets
public static AssetModel.MatchingAsset[] searchAssets(java.lang.String columnName,
java.lang.String searchText)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
rs2Assets
protected static Asset[] rs2Assets(java.sql.ResultSet rs)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getColumns
public java.lang.String[][] getColumns()
Generated by eevans on May 29 2005 2015.