OpenNMS API 1.2.3

org.opennms.web.asset
Class AssetModel

java.lang.Object
  extended byorg.opennms.web.asset.AssetModel

public class AssetModel
extends java.lang.Object


Nested Class Summary
static class AssetModel.MatchingAsset
           
 
Field Summary
protected  java.lang.String[][] columns
          Hard-coded (for now) list of human-readable asset columns and the corresponding database column.
 
Constructor Summary
AssetModel()
           
 
Method Summary
 void createAsset(Asset asset)
           
 Asset[] getAllAssets()
           
 Asset getAsset(int nodeId)
           
 java.lang.String[][] getColumns()
           
 void modifyAsset(Asset asset)
           
protected static Asset[] rs2Assets(java.sql.ResultSet rs)
           
static AssetModel.MatchingAsset[] searchAssets(java.lang.String columnName, java.lang.String searchText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columns

protected java.lang.String[][] columns
Hard-coded (for now) list of human-readable asset columns and the corresponding database column.

Constructor Detail

AssetModel

public AssetModel()
Method Detail

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()

OpenNMS API 1.2.3

Generated by eevans on May 29 2005 2015.