|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object models.stores.DataBase
public class DataBase
class for working with databases
Constructor Summary | |
---|---|
DataBase()
Constructor. |
|
DataBase(java.lang.String host,
java.lang.String dataBaseName,
java.lang.String user,
java.lang.String password)
Constructor |
|
DataBase(java.lang.String host,
java.lang.String port,
java.lang.String dataBaseName,
java.lang.String user,
java.lang.String password)
Constructor |
Method Summary | |
---|---|
void |
closeConnection()
close connection and statement |
java.sql.Connection |
getConnection()
|
java.sql.ResultSet |
getEisData(java.lang.String objectsTable,
java.lang.String objectDataField,
java.lang.String objectFileNameField,
java.lang.String objectPkField,
java.lang.String objectId)
get data of eis file |
java.sql.ResultSet |
getEisObjectsSet(java.lang.String objectsTable,
java.lang.String objectPkField,
java.lang.String objectFkField,
java.lang.String objectFileNameField,
java.lang.String itemId,
java.lang.Boolean asUrl,
java.lang.String objectDataField)
get list of eis data for the layer`s object |
java.sql.ResultSet |
layerData(java.lang.String schema,
java.lang.String table,
java.util.List<LayerField> fields)
data of layer |
java.sql.ResultSet |
metaDataFromTableOfType(java.lang.String table,
java.lang.String layerId)
metadata for current type |
java.sql.ResultSet |
metaDataLibrary(java.lang.String table,
java.lang.String pkField,
java.lang.String dataField)
get metadata library value |
java.sql.ResultSet |
metaDataValue(java.lang.String table,
java.lang.String pkField,
java.lang.String dataField,
java.lang.String pkValue)
get layer`s metadata value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataBase()
public DataBase(java.lang.String host, java.lang.String dataBaseName, java.lang.String user, java.lang.String password) throws java.lang.Exception
host
- host of databasedataBaseName
- database nameuser
- user of database for authorizationpassword
- password for authorization
java.lang.Exception
- if it can`t connect to postgre storepublic DataBase(java.lang.String host, java.lang.String port, java.lang.String dataBaseName, java.lang.String user, java.lang.String password) throws java.lang.Exception
host
- host of databaseport
- portdataBaseName
- database nameuser
- user of database for authorizationpassword
- password for authorization
java.lang.Exception
- if it can`t connect to postgre storeMethod Detail |
---|
public java.sql.Connection getConnection()
public void closeConnection()
public java.sql.ResultSet getEisObjectsSet(java.lang.String objectsTable, java.lang.String objectPkField, java.lang.String objectFkField, java.lang.String objectFileNameField, java.lang.String itemId, java.lang.Boolean asUrl, java.lang.String objectDataField)
objectsTable
- table nameobjectPkField
- primary key fieldobjectFkField
- field witch is store for primary key of objectobjectFileNameField
- field witch is store for file nameitemId
- id obf objectasUrl
- is file an urlobjectDataField
- field with file data
ResultSet
public java.sql.ResultSet getEisData(java.lang.String objectsTable, java.lang.String objectDataField, java.lang.String objectFileNameField, java.lang.String objectPkField, java.lang.String objectId)
objectsTable
- table nameobjectDataField
- field with data of fileobjectFileNameField
- field with file nameobjectPkField
- field with primary keyobjectId
- file id
ResultSet
public java.sql.ResultSet metaDataValue(java.lang.String table, java.lang.String pkField, java.lang.String dataField, java.lang.String pkValue)
table
- table namepkField
- field with primary keydataField
- field with datapkValue
- primary key value
ResultSet
public java.sql.ResultSet metaDataLibrary(java.lang.String table, java.lang.String pkField, java.lang.String dataField)
table
- table namepkField
- field with primary keydataField
- field with data
ResultSet
public java.sql.ResultSet metaDataFromTableOfType(java.lang.String table, java.lang.String layerId)
table
- table of type namelayerId
- layer id
ResultSet
public java.sql.ResultSet layerData(java.lang.String schema, java.lang.String table, java.util.List<LayerField> fields)
schema
- schema nametable
- table namefields
- list of fields
ResultSet
,
LayerField
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |