Commit 2199eefa authored by saurabh's avatar saurabh
Browse files

tagData in analysisService

parent e171611b
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library 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 2.1 of the License, or (at your option)
* any later version.
*
* This library 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 Lesser General Public License for more
* details.
*/
package analysisService.exception;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.exception.NoSuchModelException;
/**
* @author Brian Wing Shun Chan
*/
@ProviderType
public class NoSuchTagDataException extends NoSuchModelException {
public NoSuchTagDataException() {
}
public NoSuchTagDataException(String msg) {
super(msg);
}
public NoSuchTagDataException(String msg, Throwable cause) {
super(msg, cause);
}
public NoSuchTagDataException(Throwable cause) {
super(cause);
}
}
\ No newline at end of file
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library 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 2.1 of the License, or (at your option)
* any later version.
*
* This library 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 Lesser General Public License for more
* details.
*/
package analysisService.model;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.annotation.ImplementationClassName;
import com.liferay.portal.kernel.model.PersistedModel;
import com.liferay.portal.kernel.util.Accessor;
/**
* The extended model interface for the TagData service. Represents a row in the "ANALYSIS_TagData" database table, with each column mapped to a property of this class.
*
* @author Brian Wing Shun Chan
* @see TagDataModel
* @see analysisService.model.impl.TagDataImpl
* @see analysisService.model.impl.TagDataModelImpl
* @generated
*/
@ImplementationClassName("analysisService.model.impl.TagDataImpl")
@ProviderType
public interface TagData extends TagDataModel, PersistedModel {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this interface directly. Add methods to {@link analysisService.model.impl.TagDataImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
public static final Accessor<TagData, Long> TAG_ID_ACCESSOR = new Accessor<TagData, Long>() {
@Override
public Long get(TagData tagData) {
return tagData.getTagID();
}
@Override
public Class<Long> getAttributeClass() {
return Long.class;
}
@Override
public Class<TagData> getTypeClass() {
return TagData.class;
}
};
}
\ No newline at end of file
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library 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 2.1 of the License, or (at your option)
* any later version.
*
* This library 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 Lesser General Public License for more
* details.
*/
package analysisService.model;
import aQute.bnd.annotation.ProviderType;
import com.liferay.expando.kernel.model.ExpandoBridge;
import com.liferay.portal.kernel.bean.AutoEscape;
import com.liferay.portal.kernel.model.BaseModel;
import com.liferay.portal.kernel.model.CacheModel;
import com.liferay.portal.kernel.service.ServiceContext;
import java.io.Serializable;
/**
* The base model interface for the TagData service. Represents a row in the &quot;ANALYSIS_TagData&quot; database table, with each column mapped to a property of this class.
*
* <p>
* This interface and its corresponding implementation {@link analysisService.model.impl.TagDataModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link analysisService.model.impl.TagDataImpl}.
* </p>
*
* @author Brian Wing Shun Chan
* @see TagData
* @see analysisService.model.impl.TagDataImpl
* @see analysisService.model.impl.TagDataModelImpl
* @generated
*/
@ProviderType
public interface TagDataModel extends BaseModel<TagData> {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. All methods that expect a tag data model instance should use the {@link TagData} interface instead.
*/
/**
* Returns the primary key of this tag data.
*
* @return the primary key of this tag data
*/
public long getPrimaryKey();
/**
* Sets the primary key of this tag data.
*
* @param primaryKey the primary key of this tag data
*/
public void setPrimaryKey(long primaryKey);
/**
* Returns the tag ID of this tag data.
*
* @return the tag ID of this tag data
*/
public long getTagID();
/**
* Sets the tag ID of this tag data.
*
* @param TagID the tag ID of this tag data
*/
public void setTagID(long TagID);
/**
* Returns the tag of this tag data.
*
* @return the tag of this tag data
*/
@AutoEscape
public String getTag();
/**
* Sets the tag of this tag data.
*
* @param Tag the tag of this tag data
*/
public void setTag(String Tag);
@Override
public boolean isNew();
@Override
public void setNew(boolean n);
@Override
public boolean isCachedModel();
@Override
public void setCachedModel(boolean cachedModel);
@Override
public boolean isEscapedModel();
@Override
public Serializable getPrimaryKeyObj();
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj);
@Override
public ExpandoBridge getExpandoBridge();
@Override
public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext);
@Override
public Object clone();
@Override
public int compareTo(analysisService.model.TagData tagData);
@Override
public int hashCode();
@Override
public CacheModel<analysisService.model.TagData> toCacheModel();
@Override
public analysisService.model.TagData toEscapedModel();
@Override
public analysisService.model.TagData toUnescapedModel();
@Override
public String toString();
@Override
public String toXmlString();
}
\ No newline at end of file
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library 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 2.1 of the License, or (at your option)
* any later version.
*
* This library 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 Lesser General Public License for more
* details.
*/
package analysisService.model;
import aQute.bnd.annotation.ProviderType;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* This class is used by SOAP remote services, specifically {@link analysisService.service.http.TagDataServiceSoap}.
*
* @author Brian Wing Shun Chan
* @see analysisService.service.http.TagDataServiceSoap
* @generated
*/
@ProviderType
public class TagDataSoap implements Serializable {
public static TagDataSoap toSoapModel(TagData model) {
TagDataSoap soapModel = new TagDataSoap();
soapModel.setTagID(model.getTagID());
soapModel.setTag(model.getTag());
return soapModel;
}
public static TagDataSoap[] toSoapModels(TagData[] models) {
TagDataSoap[] soapModels = new TagDataSoap[models.length];
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModel(models[i]);
}
return soapModels;
}
public static TagDataSoap[][] toSoapModels(TagData[][] models) {
TagDataSoap[][] soapModels = null;
if (models.length > 0) {
soapModels = new TagDataSoap[models.length][models[0].length];
}
else {
soapModels = new TagDataSoap[0][0];
}
for (int i = 0; i < models.length; i++) {
soapModels[i] = toSoapModels(models[i]);
}
return soapModels;
}
public static TagDataSoap[] toSoapModels(List<TagData> models) {
List<TagDataSoap> soapModels = new ArrayList<TagDataSoap>(models.size());
for (TagData model : models) {
soapModels.add(toSoapModel(model));
}
return soapModels.toArray(new TagDataSoap[soapModels.size()]);
}
public TagDataSoap() {
}
public long getPrimaryKey() {
return _TagID;
}
public void setPrimaryKey(long pk) {
setTagID(pk);
}
public long getTagID() {
return _TagID;
}
public void setTagID(long TagID) {
_TagID = TagID;
}
public String getTag() {
return _Tag;
}
public void setTag(String Tag) {
_Tag = Tag;
}
private long _TagID;
private String _Tag;
}
\ No newline at end of file
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library 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 2.1 of the License, or (at your option)
* any later version.
*
* This library 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 Lesser General Public License for more
* details.
*/
package analysisService.model;
import aQute.bnd.annotation.ProviderType;
import com.liferay.expando.kernel.model.ExpandoBridge;
import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.service.ServiceContext;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* <p>
* This class is a wrapper for {@link TagData}.
* </p>
*
* @author Brian Wing Shun Chan
* @see TagData
* @generated
*/
@ProviderType
public class TagDataWrapper implements TagData, ModelWrapper<TagData> {
public TagDataWrapper(TagData tagData) {
_tagData = tagData;
}
@Override
public Class<?> getModelClass() {
return TagData.class;
}
@Override
public String getModelClassName() {
return TagData.class.getName();
}
@Override
public Map<String, Object> getModelAttributes() {
Map<String, Object> attributes = new HashMap<String, Object>();
attributes.put("TagID", getTagID());
attributes.put("Tag", getTag());
return attributes;
}
@Override
public void setModelAttributes(Map<String, Object> attributes) {
Long TagID = (Long)attributes.get("TagID");
if (TagID != null) {
setTagID(TagID);
}
String Tag = (String)attributes.get("Tag");
if (Tag != null) {
setTag(Tag);
}
}
@Override
public analysisService.model.TagData toEscapedModel() {
return new TagDataWrapper(_tagData.toEscapedModel());
}
@Override
public analysisService.model.TagData toUnescapedModel() {
return new TagDataWrapper(_tagData.toUnescapedModel());
}
@Override
public boolean isCachedModel() {
return _tagData.isCachedModel();
}
@Override
public boolean isEscapedModel() {
return _tagData.isEscapedModel();
}
@Override
public boolean isNew() {
return _tagData.isNew();
}
@Override
public ExpandoBridge getExpandoBridge() {
return _tagData.getExpandoBridge();
}
@Override
public com.liferay.portal.kernel.model.CacheModel<analysisService.model.TagData> toCacheModel() {
return _tagData.toCacheModel();
}
@Override
public int compareTo(analysisService.model.TagData tagData) {
return _tagData.compareTo(tagData);
}
@Override
public int hashCode() {
return _tagData.hashCode();
}
@Override
public Serializable getPrimaryKeyObj() {
return _tagData.getPrimaryKeyObj();
}
@Override
public java.lang.Object clone() {
return new TagDataWrapper((TagData)_tagData.clone());
}
/**
* Returns the tag of this tag data.
*
* @return the tag of this tag data
*/
@Override
public java.lang.String getTag() {
return _tagData.getTag();
}
@Override
public java.lang.String toString() {
return _tagData.toString();
}
@Override
public java.lang.String toXmlString() {
return _tagData.toXmlString();
}
/**
* Returns the primary key of this tag data.
*
* @return the primary key of this tag data
*/
@Override
public long getPrimaryKey() {
return _tagData.getPrimaryKey();
}
/**
* Returns the tag ID of this tag data.
*
* @return the tag ID of this tag data
*/
@Override
public long getTagID() {
return _tagData.getTagID();
}
@Override
public void persist() {
_tagData.persist();
}
@Override
public void setCachedModel(boolean cachedModel) {
_tagData.setCachedModel(cachedModel);
}
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
_tagData.setExpandoBridgeAttributes(expandoBridge);
}
@Override
public void setExpandoBridgeAttributes(
com.liferay.portal.kernel.model.BaseModel<?> baseModel) {
_tagData.setExpandoBridgeAttributes(baseModel);
}
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
_tagData.setExpandoBridgeAttributes(serviceContext);
}
@Override
public void setNew(boolean n) {
_tagData.setNew(n);
}
/**
* Sets the primary key of this tag data.
*
* @param primaryKey the primary key of this tag data
*/
@Override
public void setPrimaryKey(long primaryKey) {