public class AssetModel extends Object
AssetModel class.
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
AssetModel.MatchingAsset  | 
| Constructor and Description | 
|---|
AssetModel()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
createAsset(Asset asset)
createAsset 
 | 
Asset[] | 
getAllAssets()
getAllAssets 
 | 
Asset | 
getAsset(int nodeId)
getAsset 
 | 
static String[][] | 
getColumns()
getColumns 
 | 
void | 
modifyAsset(Asset asset)
modifyAsset 
 | 
protected static Asset[] | 
rs2Assets(ResultSet rs)
rs2Assets 
 | 
static AssetModel.MatchingAsset[] | 
searchAssets(String columnName,
            String searchText)
searchAssets 
 | 
static AssetModel.MatchingAsset[] | 
searchNodesWithAssets()  | 
public Asset getAsset(int nodeId) throws SQLException
getAsset
nodeId - a int.Asset object.SQLException - if any.public Asset[] getAllAssets() throws SQLException
getAllAssets
Asset objects.SQLException - if any.public void createAsset(Asset asset) throws SQLException
createAsset
asset - a Asset object.SQLException - if any.public void modifyAsset(Asset asset) throws SQLException
modifyAsset
asset - a Asset object.SQLException - if any.public static AssetModel.MatchingAsset[] searchAssets(String columnName, String searchText) throws SQLException
searchAssets
columnName - a String object.searchText - a String object.AssetModel.MatchingAsset objects.SQLException - if any.public static AssetModel.MatchingAsset[] searchNodesWithAssets() throws SQLException
SQLExceptionprotected static Asset[] rs2Assets(ResultSet rs) throws SQLException
rs2Assets
rs - a ResultSet object.Asset objects.SQLException - if any.Copyright © 2021. All rights reserved.