org.opennms.web.asset
Class AssetModel

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

public class AssetModel
extends java.lang.Object


Nested Class Summary
static class AssetModel.MatchingAsset
           
 
Constructor Summary
AssetModel()
           
 
Method Summary
 void createAsset(Asset asset)
           
 Asset[] getAllAssets()
           
 Asset getAsset(int nodeId)
           
static 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
 

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 static java.lang.String[][] getColumns()


Copyright © 2007. All Rights Reserved.