org.opennms.web.asset
Class AssetModel

java.lang.Object
  extended by org.opennms.web.asset.AssetModel

public class AssetModel
extends Object


Nested Class Summary
static class AssetModel.MatchingAsset
           
 
Constructor Summary
AssetModel()
           
 
Method Summary
 void createAsset(Asset asset)
           
 Asset[] getAllAssets()
           
 Asset getAsset(int nodeId)
           
static String[][] getColumns()
           
 void modifyAsset(Asset asset)
           
protected static Asset[] rs2Assets(ResultSet rs)
           
static AssetModel.MatchingAsset[] searchAssets(String columnName, String searchText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetModel

public AssetModel()
Method Detail

getAsset

public Asset getAsset(int nodeId)
               throws SQLException
Throws:
SQLException

getAllAssets

public Asset[] getAllAssets()
                     throws SQLException
Throws:
SQLException

createAsset

public void createAsset(Asset asset)
                 throws SQLException
Throws:
SQLException

modifyAsset

public void modifyAsset(Asset asset)
                 throws SQLException
Throws:
SQLException

searchAssets

public static AssetModel.MatchingAsset[] searchAssets(String columnName,
                                                      String searchText)
                                               throws SQLException
Throws:
SQLException

rs2Assets

protected static Asset[] rs2Assets(ResultSet rs)
                            throws SQLException
Throws:
SQLException

getColumns

public static String[][] getColumns()


Copyright © 2009. All Rights Reserved.