Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * #%L
   * Wikitty :: api
   * %%
   * Copyright (C) 2009 - 2010 CodeLutin, Benjamin Poussin
   * %%
   * This program is free software: you can redistribute it and/or modify
   * it under the terms of the GNU Lesser General Public License as 
   * published by the Free Software Foundation, either version 3 of the 
  * License, or (at your option) any later version.
  * 
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Lesser Public License for more details.
  * 
  * You should have received a copy of the GNU General Lesser Public 
  * License along with this program.  If not, see
  * <http://www.gnu.org/licenses/lgpl-3.0.html>.
  * #L%
  */
 
 package org.nuiton.wikitty.entities;
 
Used as parent interface to all Business class. getWikitty and setWikitty is not in interface because this objet for some implementation (GWT) is to complexe

Author(s):
poussin
Version:
$Revision$ Last update: $Date$ by : $Author$
 
 public interface BusinessEntity extends SerializableCloneable {

    
Return wikitty id (uuid).

Returns:
wikitty id
 
     public String getWikittyId();

    
Return wikitty version (x.y).

Returns:
wikitty version
 
     public String getWikittyVersion();

    
Only framework can use this method.

Parameters:
version version to set
 
     public void setWikittyVersion(String version);

    
Return list of all extension name that this entity has by definition (design time) and not extension added during execution time

Returns:
static extension name
Since:
3.10
 
     public Collection<StringgetStaticExtensionNames();

    
Return list of all extension for this object.

Returns:
extension names
 
     public Collection<StringgetExtensionNames();
    
    
Return list of all field for this object.

Parameters:
ext extension to get fields
Returns:
fields collections
 
     public Collection<StringgetExtensionFields(String ext);

    
Return field value for the specific extension and field.

Parameters:
ext extension
fieldName field name
Returns:
field value
 
     public Object getFieldAsObject(String extString fieldName);

    
Return field value for the specific extension and field.

Deprecated:
use getFieldAsObject
Parameters:
ext extension
fieldName field name
Returns:
field value
    @Deprecated
    public Object getField(String extString fieldName);

    
Set field value for the specific extension and field. This method don't check the type of value for this field.

Parameters:
ext extension
fieldName field name
value value to set
    public void setField(String extString fieldNameObject value);

    
Copy all field version included from source to current bean (only id is not copied, but must be the same)

Parameters:
source
    public void copyFrom(BusinessEntity source);

    
Return the field type.

Parameters:
ext extension
fieldName field name
Returns:
feild type
    //public FieldType getFieldType(String ext, String fieldName);
    
    
Add java.beans.PropertyChangeListener.

Parameters:
listener listener to add
    void addPropertyChangeListener(PropertyChangeListener listener);

    
Remove java.beans.PropertyChangeListener.

Parameters:
listener listener to remove
Add java.beans.PropertyChangeListener on propertyName.

Parameters:
propertyName property name
listener listener to add
    void addPropertyChangeListener(String propertyNamePropertyChangeListener listener);

    
Remove java.beans.PropertyChangeListener on propertyName

Parameters:
propertyName property name
listener listener listener to remove
    void removePropertyChangeListener(String propertyNamePropertyChangeListener listener);
New to GrepCode? Check out our FAQ X