models.entity.layer
Class Layer

java.lang.Object
  extended by play.db.ebean.Model
      extended by models.entity.layer.Layer
All Implemented Interfaces:
com.avaje.ebean.bean.EntityBean, java.io.Serializable

@Entity
public class Layer
extends play.db.ebean.Model

Class of the layer

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class play.db.ebean.Model
play.db.ebean.Model.Finder<I,T>
 
Field Summary
static play.db.ebean.Model.Finder<java.lang.Long,Layer> find
           
 
Fields inherited from class play.db.ebean.Model
_ebean_identity, _ebean_intercept
 
Constructor Summary
Layer(java.lang.String name, java.lang.Long itemsCount, java.lang.Boolean enabled)
          Constructor of class
 
Method Summary
static Layer findByTypeName(java.lang.String typeName)
          Find layer by substring of TypeName.
static Layer findByTypeNameFull(java.lang.String typeName)
          Find layer by TypeName.
static Layer findByTypeNameStyle(java.lang.String typeName, java.lang.String style)
          Find layer by typeName and style.
 java.lang.Boolean getEnabled()
           
 java.util.List<LayerField> getFields()
           
 java.lang.Long getId()
           
 LayerInfo getInfo()
           
 java.lang.Boolean getIsKosmosnimok()
           
 java.lang.Long getItemsCount()
           
 java.lang.String getName()
           
 LayerInternal layerInternal()
           
 LayerServer layerServer()
           
 void setEnabled(java.lang.Boolean enabled)
          set enabled
 void setId(java.lang.Long id)
          set layer id.
 void setItemsCount(java.lang.Long itemsCount)
          set number of objects
 void setName(java.lang.String name)
          set layer name.
static Layer unique(java.lang.Long id)
          Find layer by id.
static Layer uniqueWithServer(java.lang.Long id)
          Find layer with information about the server.
 
Methods inherited from class play.db.ebean.Model
_ebean_createCopy, _ebean_get__idGetSet, _ebean_getField, _ebean_getFieldIntercept, _ebean_getFieldNames, _ebean_getIntercept, _ebean_getMarker, _ebean_getni__idGetSet, _ebean_intercept, _ebean_isEmbeddedNewOrDirty, _ebean_newInstance, _ebean_set__idGetSet, _ebean_setEmbeddedLoaded, _ebean_setField, _ebean_setFieldIntercept, _ebean_setni__idGetSet, addPropertyChangeListener, addPropertyChangeListener, delete, delete, deleteManyToManyAssociations, equals, hashCode, refresh, refresh, removePropertyChangeListener, removePropertyChangeListener, save, save, saveManyToManyAssociations, saveManyToManyAssociations, update, update, update, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

find

public static play.db.ebean.Model.Finder<java.lang.Long,Layer> find
See Also:
Finder
Constructor Detail

Layer

public Layer(java.lang.String name,
             java.lang.Long itemsCount,
             java.lang.Boolean enabled)
Constructor of class

Parameters:
name - layer name.
itemsCount - number of objects
enabled - if true, the layer is turned on by default
Method Detail

getInfo

public LayerInfo getInfo()
Returns:
Layer information.
See Also:
LayerInfo

getId

public java.lang.Long getId()
Returns:
layer id.

setId

public void setId(java.lang.Long id)
set layer id.

Parameters:
id - layer id.

getName

public java.lang.String getName()
Returns:
layer name.

setName

public void setName(java.lang.String name)
set layer name.

Parameters:
name - layer name.

getItemsCount

public java.lang.Long getItemsCount()
Returns:
number of objects

setItemsCount

public void setItemsCount(java.lang.Long itemsCount)
set number of objects

Parameters:
itemsCount - number of objects

getEnabled

public java.lang.Boolean getEnabled()
Returns:
if true, the layer is turned on by default

setEnabled

public void setEnabled(java.lang.Boolean enabled)
set enabled

Parameters:
enabled - if true, the layer is turned on by default

getFields

public java.util.List<LayerField> getFields()
Returns:
List of fields of the Layer.
See Also:
LayerField

getIsKosmosnimok

public java.lang.Boolean getIsKosmosnimok()
Returns:
true, if layer is the Kosmosnimok.

layerServer

public LayerServer layerServer()
Returns:
Server layer.
See Also:
LayerServer

layerInternal

public LayerInternal layerInternal()
Returns:
geometric information about the layer.
See Also:
LayerInternal

unique

public static Layer unique(java.lang.Long id)
Find layer by id.

Parameters:
id - layer id
Returns:
layer

uniqueWithServer

public static Layer uniqueWithServer(java.lang.Long id)
Find layer with information about the server.

Parameters:
id - layer id
Returns:
layer

findByTypeName

public static Layer findByTypeName(java.lang.String typeName)
Find layer by substring of TypeName.

Parameters:
typeName - layer typeName.
Returns:
layer

findByTypeNameFull

public static Layer findByTypeNameFull(java.lang.String typeName)
Find layer by TypeName.

Parameters:
typeName - layer typeName.
Returns:
layer

findByTypeNameStyle

public static Layer findByTypeNameStyle(java.lang.String typeName,
                                        java.lang.String style)
Find layer by typeName and style.

Parameters:
typeName - layer typeName.
style - layer style.
Returns:
layer