com.liferay.object.model.ObjectRelationship Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.object.model;
import com.liferay.portal.kernel.annotation.ImplementationClassName;
import com.liferay.portal.kernel.model.PersistedModel;
import com.liferay.portal.kernel.util.Accessor;
import org.osgi.annotation.versioning.ProviderType;
/**
* The extended model interface for the ObjectRelationship service. Represents a row in the "ObjectRelationship" database table, with each column mapped to a property of this class.
*
* @author Marco Leo
* @see ObjectRelationshipModel
* @generated
*/
@ImplementationClassName("com.liferay.object.model.impl.ObjectRelationshipImpl")
@ProviderType
public interface ObjectRelationship
extends ObjectRelationshipModel, PersistedModel {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this interface directly. Add methods to com.liferay.object.model.impl.ObjectRelationshipImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
public static final Accessor
OBJECT_RELATIONSHIP_ID_ACCESSOR =
new Accessor() {
@Override
public Long get(ObjectRelationship objectRelationship) {
return objectRelationship.getObjectRelationshipId();
}
@Override
public Class getAttributeClass() {
return Long.class;
}
@Override
public Class getTypeClass() {
return ObjectRelationship.class;
}
};
public boolean compareType(String type);
public boolean isAllowedObjectRelationshipType(String type);
public boolean isEdgeCandidate()
throws com.liferay.portal.kernel.exception.PortalException;
public boolean isSelf();
}